Skip to content

Commit

Permalink
emulators/advancemenu: prepare for freetype2 update
Browse files Browse the repository at this point in the history
- freetype2 will no longer ship freetype-config (which was a pkg-config
wrapper) in the near future -- use pkg-config to gather the required
flags by mocking freetype-config.

- while here, mark as abandonware
    - port has version 2.8 is from 07-08-2015
    - upstream version 3.0 is from 04-12-2016
  • Loading branch information
tcberner committed Aug 6, 2021
1 parent 6b139f6 commit 2f28d70
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions emulators/advancemenu/Makefile
Expand Up @@ -33,14 +33,23 @@ OPTIONS_DEFAULT_i386= ASM
ASM_BUILD_DEPENDS= nasm:devel/nasm
ASM_USE= gcc=any
ASM_CONFIGURE_ENABLE= asm
FREETYPE_USES= pkgconfig
FREETYPE_LIB_DEPENDS= libfreetype.so:print/freetype2
FREETYPE_CONFIGURE_ENABLE= freetype

DEPRECATED= Heavily outdated and unmaintained
EXPIRATION_DATE= 2021-10-31

BINARY_ALIAS= freetype-config=${WRKSRC}/freetype-config-dummy

post-patch:
@${REINPLACE_CMD} -e \
's|-lpthread|-pthread|' ${WRKSRC}/configure
@${REINPLACE_CMD} -e \
's|@@|@|' ${WRKSRC}/Makefile.in
# Mock freetype-config script
echo -e '#!/bin/sh\npkg-config freetype2 $$*' >> ${WRKSRC}/freetype-config-dummy
chmod +x ${WRKSRC}/freetype-config-dummy

do-install:
${INSTALL_PROGRAM} ${WRKSRC}/advmenu ${STAGEDIR}${PREFIX}/bin
Expand Down

0 comments on commit 2f28d70

Please sign in to comment.