the 32 ports that still use it. Bump PORTREVISION on their dependent ports except the ones that depend on these: audio/libogg audio/libvorbis devel/pcre ftp/curl graphics/jpeg graphics/libart_lgpl graphics/tiff textproc/expat2 textproc/libxslt In these cases the same trick as in the recent gettext update is used. The ports install a symlink with the old library version. When enough of their dependent ports have had regular updates the remaining ones can get a PORTREVISION bump and the links can be removed. Also remove the devel/pcre dependency from USE_GNOME=glib20. It causes over 2200 packages to depend on devel/pcre while less than 200 actually link with it. The glib20 package still depends on devel/pcre so this should not make a difference for ports with USE_GNOME=glib20. Also, libdata/pkgconfig/glib-2.0.pc lists pcre as a private library so USE_GNOME=glib20 should not propagate it. PR: 195724 Exp-run by: antoine Approved by: portmgr (antoine)
74 lines
2.1 KiB
Makefile
74 lines
2.1 KiB
Makefile
# Created by: Dmitry Marakasov <amdmi3@amdmi3.ru>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= allacrost
|
|
PORTVERSION= 1.0.2
|
|
PORTREVISION= 10
|
|
CATEGORIES= games
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-demo/${PORTVERSION}
|
|
DISTNAME= ${PORTNAME}_demo_source_${PORTVERSION}
|
|
|
|
MAINTAINER= amdmi3@FreeBSD.org
|
|
COMMENT= Single player 2D role-playing game
|
|
|
|
LIB_DEPENDS= libjpeg.so:${PORTSDIR}/graphics/jpeg \
|
|
libpng.so:${PORTSDIR}/graphics/png \
|
|
libogg.so:${PORTSDIR}/audio/libogg \
|
|
libvorbis.so:${PORTSDIR}/audio/libvorbis \
|
|
libboost_thread.so:${PORTSDIR}/devel/boost-libs
|
|
|
|
LICENSE= GPLv2
|
|
|
|
GNU_CONFIGURE= yes
|
|
USES= gettext gmake openal:al lua:51
|
|
USE_SDL= sdl ttf net
|
|
USE_GL= yes
|
|
USE_GCC= any # problems in luabind
|
|
|
|
CONFIGURE_ARGS= --datadir=${DATADIR}
|
|
CPPFLAGS+= -I${LOCALBASE}/include -I${LUA_INCDIR} -I${LOCALBASE}/include/libpng15
|
|
LDFLAGS+= -L${LOCALBASE}/lib -L${LUA_LIBDIR}
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
|
|
PORTDOCS= *
|
|
PORTDATA= *
|
|
|
|
OPTIONS_DEFINE= EDITOR DOCS
|
|
EDITOR_DESC= Enable editor
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MEDITOR}
|
|
QT_NONSTANDARD= yes
|
|
USE_QT4+= corelib gui opengl moc_build qt3support
|
|
CONFIGURE_ARGS+=--enable-editor=yes
|
|
PLIST_SUB= EDITOR=""
|
|
.else
|
|
CONFIGURE_ARGS+=--enable-editor=no
|
|
PLIST_SUB= EDITOR="@comment "
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|-I/usr/include/|-I${LOCALBASE}/include/|g' \
|
|
${WRKSRC}/Makefile.in
|
|
@${REINPLACE_CMD} -e 's|exit -1|exit 1|; /CXXFLAGS=/ d; \
|
|
s|-lSDL |`${SDL_CONFIG} --libs` |' ${WRKSRC}/configure
|
|
@${REINPLACE_CMD} -e '/^LIBS =/ s|$$| @INTLLIBS@|' ${WRKSRC}/Makefile.in
|
|
@${REINPLACE_CMD} -e '/^bindir = / s|games|bin|' ${WRKSRC}/Makefile.in
|
|
@${REINPLACE_CMD} -e '/qt4_incdirs/ s|".*"|"${QT_INCDIR}"|; \
|
|
/qt4_libdirs/ s|".*"|"${QT_LIBDIR}"|; /test/ s|==|=| ; \
|
|
s/-llua /-llua-${LUA_VER} /g;' \
|
|
${WRKSRC}/configure
|
|
.if ${PORT_OPTIONS:MEDITOR}
|
|
@${REINPLACE_CMD} -e '/^INCLUDES = / s|=|= -I${QT_INCDIR}/QtGui \
|
|
-I${QT_INCDIR}/QtOpenGL -I${QT_INCDIR}/Qt3Support \
|
|
-I${QT_INCDIR}/QtCore -I${QT_INCDIR}|' \
|
|
${WRKSRC}/Makefile.in
|
|
.endif
|
|
|
|
post-install:
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/MANUAL ${STAGEDIR}${DOCSDIR}/
|
|
|
|
.include <bsd.port.mk>
|