1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-12 07:27:57 +00:00
freebsd-ports/games/ggz-sdl-games/Makefile
John Marino bf302e919b games/ggz-sdl-games: Fix for modern binutils
Needs explicit linking to libexpat and libggzcore.
2014-02-19 16:33:46 +00:00

35 lines
876 B
Makefile

# Created by: yinjieh
# $FreeBSD$
PORTNAME= ggz-sdl-games
PORTVERSION= ${GGZ_VERSION}
PORTREVISION= 8
CATEGORIES= games
MAINTAINER= ports@FreeBSD.org
COMMENT= The GGZ Gaming Zone - SDL-based games
USE_GL= gl
USE_SDL= image mixer sdl ttf
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-debug
USE_GGZ= client
INSTALL_TARGET= install-strip
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib -pthread -lexpat
post-patch:
@${REINPLACE_CMD} -e 's|_LDADD =|_LDADD = -lggzcore -lggz|' \
${WRKSRC}/ttt3d/Makefile.in
@${REINPLACE_CMD} -e 's|_LDADD =|_LDADD = -lggzcore|' \
${WRKSRC}/geekgame/Makefile.in
post-install:
${INSTALL_DATA} ${WRKSRC}/geekgame/module.dsc ${STAGEDIR}/${PREFIX}/share/ggz/geekgame.dsc
${INSTALL_DATA} ${WRKSRC}/ttt3d/module.dsc ${STAGEDIR}/${PREFIX}/share/ggz/ttt3d.dsc
.include "${.CURDIR}/../libggz/bsd.ggz.mk"
.include <bsd.port.mk>