emulators/advancemame: prepare for freetype2 update

- 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.

- while here, mark as abandonware
	- port has version 1.4 is from 09-08-2015
	- upstream version 3.9 is from 08-09-2018
This commit is contained in:
Tobias C. Berner 2021-08-06 13:02:54 +02:00
parent b2b4dca94a
commit 6b139f669d
2 changed files with 20 additions and 0 deletions

View file

@ -38,12 +38,19 @@ 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
SLANG_LIB_DEPENDS= libslang.so:devel/libslang2
SLANG_CONFIGURE_ENABLE= slang
SLANG_LDFLAGS= -lncurses
BINARY_ALIAS= freetype-config=true
DEPRECATED= Heavily outdated and unmaintained
EXPIRATION_DATE= 2021-10-31
.include <bsd.port.options.mk>
.if ${ARCH} == powerpc

View file

@ -0,0 +1,13 @@
--- configure.orig 2021-08-06 10:56:54 UTC
+++ configure
@@ -8359,8 +8359,8 @@ done
else
ac_save_CFLAGS="$CFLAGS"
ac_save_LIBS="$LIBS"
- FREETYPECFLAGS=`$ac_lib_freetype_config $ac_lib_freetype_args --cflags`
- FREETYPELIBS=`$ac_lib_freetype_config $ac_lib_freetype_args --libs`
+ FREETYPECFLAGS=`pkg-config freetype2 --cflags`
+ FREETYPELIBS=`pkg-config freetype2 --libs`
CFLAGS="$FREETYPECFLAGS $CFLAGS"
LIBS="$FREETYPELIBS $LIBS"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType2" >&5