1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00
freebsd-ports/games/allacrost/Makefile
Tobias Kortkamp 29a23b8db4 Clean up LLD_UNSAFE from openal-soft ports
After FreeBSD 12.0 EOL we no longer have to worry about LLD 6 and
can drop LLD_UNSAFE from openal-soft ports.  LLD can link them fine
now but some ports needs a little help on i386 (-Wl,-znotext).

PR:		226980
Reviewed by:	jbeich (earlier version)
Differential Revision:	https://reviews.freebsd.org/D23030
2020-03-19 23:02:30 +00:00

59 lines
1.6 KiB
Makefile

# Created by: Dmitry Marakasov <amdmi3@amdmi3.ru>
# $FreeBSD$
PORTNAME= allacrost
PORTVERSION= 1.0.2
PORTREVISION= 29
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
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libpng.so:graphics/png \
libogg.so:audio/libogg \
libvorbis.so:audio/libvorbis \
libboost_thread.so:devel/boost-libs
GNU_CONFIGURE= yes
USES= gettext gl gmake iconv jpeg localbase lua:51 openal:al sdl xorg
USE_SDL= sdl ttf net
USE_GL= gl glu
USE_XORG= x11
USE_CXXSTD= c++98
CONFIGURE_ARGS= --datadir=${DATADIR} --enable-editor=no
CPPFLAGS+= -isystem${LUA_INCDIR}
LDFLAGS+= -L${LUA_LIBDIR}
LDFLAGS_i386= -Wl,-znotext
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
PORTDOCS= *
PORTDATA= *
OPTIONS_DEFINE= DOCS
OPTIONS_SUB= yes
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
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/MANUAL ${STAGEDIR}${DOCSDIR}/
.include <bsd.port.mk>