diff --git a/devel/clanlib/Makefile b/devel/clanlib/Makefile index 83343a2d6486..a4ba82a76065 100644 --- a/devel/clanlib/Makefile +++ b/devel/clanlib/Makefile @@ -1,61 +1,64 @@ # Created by: Maxim Sobolev PORTNAME= clanlib PORTVERSION= 2.3.7 PORTREVISION= 19 PORTEPOCH= 1 CATEGORIES= devel MASTER_SITES= http://www.clanlib.org/download/releases-2.0/ DISTNAME= ClanLib-${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= Cross-platform game SDK LICENSE= ZLIB LICENSE_FILE= ${WRKSRC}/COPYING BROKEN_i386= typedef redefinition with different types ('ptrdiff_t' (aka 'int') vs 'khronos_intptr_t' (aka 'long')) BROKEN_powerpc= typedef redefinition with different types ('ptrdiff_t' (aka 'int') vs 'khronos_intptr_t' (aka 'long')) +DEPRECATED= Upstream no longer maintained +EXPIRATION_DATE= 2021-10-31 + LIB_DEPENDS= libpng.so:graphics/png \ libmikmod.so:audio/libmikmod \ libvorbis.so:audio/libvorbis \ libogg.so:audio/libogg \ libfontconfig.so:x11-fonts/fontconfig \ libpcre.so:devel/pcre \ libfreetype.so:print/freetype2 USES= compiler:c++11-lib gl gmake jpeg libtool localbase:ldflags \ pathfix pkgconfig sqlite tar:tgz xorg USE_XORG= x11 xrender USE_LDCONFIG= yes USE_GL= gl GNU_CONFIGURE= yes CONFIGURE_ARGS= --disable-docs \ --enable-clanDisplay \ --enable-clanGL \ --enable-clanGL1 \ --enable-clanSound \ --enable-clanDatabase \ --enable-clanSqlite \ --enable-clanRegExp \ --enable-clanNetwork \ --enable-clanGUI \ --enable-clanCSSLayout \ --enable-clanSWRender \ --enable-clanMikMod \ --enable-clanVorbis \ --enable-getaddr INSTALL_TARGET= install-strip PLIST_SUB+= VER=${PORTVERSION:R} \ SHORT_VER=${PORTVERSION:R:R}${PORTVERSION:R:E} post-patch: @${REINPLACE_CMD} -e 's|LIBS="-lsqlite3 -ldl"|LIBS="-lsqlite3"|g' \ ${WRKSRC}/configure @${REINPLACE_CMD} -e '114 s|/proc/self/exe|/proc/curproc/file|g' \ ${WRKSRC}/Sources/Core/System/Unix/init_linux.cpp .include diff --git a/devel/clanlib/files/patch-configure b/devel/clanlib/files/patch-configure new file mode 100644 index 000000000000..a2847092b988 --- /dev/null +++ b/devel/clanlib/files/patch-configure @@ -0,0 +1,16 @@ +Freetype no longer ships freetype-config -- use pkg-config directly. + +--- configure.orig 2021-08-06 10:05:39 UTC ++++ configure +@@ -15925,9 +15925,9 @@ fi + LIBS="$OLDLIBS" + fi + if test "$enable_clanDisplay" != "no"; then +- OLDLIBS="$LIBS"; LIBS="`freetype-config --libs` "; { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ttf" >&5 ++ OLDLIBS="$LIBS"; LIBS="`pkg-config freetype2 --libs` "; { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ttf" >&5 + $as_echo_n "checking for ttf... " >&6; } +- OLD_CXXFLAGS="$CXXFLAGS"; CXXFLAGS=" `freetype-config --cflags`"; ++ OLD_CXXFLAGS="$CXXFLAGS"; CXXFLAGS=" `pkg-config freetype2 --cflags`"; + if test "$cross_compiling" = yes; then : + cat confdefs.h - <<_ACEOF >conftest.$ac_ext + /* end confdefs.h. */