diff options
author | Alexey Dokuchaev <danfe@FreeBSD.org> | 2013-09-05 07:45:28 +0000 |
---|---|---|
committer | Alexey Dokuchaev <danfe@FreeBSD.org> | 2013-09-05 07:45:28 +0000 |
commit | 23fc3a60cc288847da6aa0ee039393ad6095cb16 (patch) | |
tree | 3cfb7fb77b1846cee2d9e68e57a4f84aaa4587a8 /games/egl | |
parent | 8d172abc06d558491c5d5b507ad4f96be2d62fb7 (diff) | |
download | ports-23fc3a60cc288847da6aa0ee039393ad6095cb16.tar.gz ports-23fc3a60cc288847da6aa0ee039393ad6095cb16.zip |
Notes
Diffstat (limited to 'games/egl')
-rw-r--r-- | games/egl/Makefile | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/games/egl/Makefile b/games/egl/Makefile index cd579ed61305..e5e6312cf55c 100644 --- a/games/egl/Makefile +++ b/games/egl/Makefile @@ -13,9 +13,11 @@ EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} MAINTAINER= danfe@FreeBSD.org COMMENT= Enhanced OpenGL-only Quake II engine +LICENSE= GPLv2 + +USES= gmake USE_ZIP= yes USE_DOS2UNIX= yes -USE_GMAKE= yes MAKEFILE= makefile NO_WRKSUBDIR= yes @@ -33,11 +35,10 @@ GAME_DESC= Build main game (default mod) .include <bsd.port.options.mk> .if ${PORT_OPTIONS:MCLIENT} -LIB_DEPENDS= jpeg:${PORTSDIR}/graphics/jpeg \ - png15:${PORTSDIR}/graphics/png +LIB_DEPENDS= libjpeg.so:${PORTSDIR}/graphics/jpeg \ + libpng15.so:${PORTSDIR}/graphics/png USE_GL= gl CFLAGS+= -I${LOCALBASE}/include/libpng15 -MAKE_ENV*= CFLAGS="${CFLAGS}" PLIST_SUB+= CLIENT="" EGL_BIN+= egl .else @@ -65,10 +66,13 @@ PLIST_SUB+= GAME="@comment " MAKE_ENV+= WITH_OPT_CFLAGS=NO .endif +# Fix the build against Clang +post-patch: + @${REINPLACE_CMD} -e '145s/return qFalse/return/' \ + ${WRKSRC}/unix/unix_snd_main.c + do-install: -.for f in ${EGL_BIN} - ${INSTALL_PROGRAM} ${WRKSRC}/release/${f} ${PREFIX}/bin -.endfor + ${INSTALL_PROGRAM} ${EGL_BIN:S,^,${WRKSRC}/release/,} ${PREFIX}/bin @${MKDIR} ${LIBDIR}/baseq2 ${INSTALL_PROGRAM} ${WRKSRC}/release/baseq2/*.so ${LIBDIR}/baseq2 ${INSTALL_DATA} ${DISTDIR}/egl.pkz ${LIBDIR}/baseq2 |