diff options
author | Ganael LAPLANCHE <martymac@FreeBSD.org> | 2013-11-21 13:20:15 +0000 |
---|---|---|
committer | Ganael LAPLANCHE <martymac@FreeBSD.org> | 2013-11-21 13:20:15 +0000 |
commit | 65c5d451a3769a89e55b0fe3f6a6e3029c306f7f (patch) | |
tree | 80ef6b70a42e3b0db8797777073d146358c90767 /games/openjazz/Makefile | |
parent | fbbe800146990c3be4bda753443f419042b01cac (diff) |
- Enable staging
- Work in a subdir of WRKDIR
- Update USES
- Strip binary
Notes
Notes:
svn path=/head/; revision=334484
Diffstat (limited to 'games/openjazz/Makefile')
-rw-r--r-- | games/openjazz/Makefile | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/games/openjazz/Makefile b/games/openjazz/Makefile index de89b427b85f..2d525166ff9e 100644 --- a/games/openjazz/Makefile +++ b/games/openjazz/Makefile @@ -3,6 +3,7 @@ PORTNAME= openjazz PORTVERSION= 20120819 +PORTREVISION= 1 CATEGORIES= games MASTER_SITES= http://alister.eu/jazz/oj/ \ LOCAL/martymac @@ -13,27 +14,34 @@ COMMENT= Free re-implementation of the Jazz Jackrabbit(tm) game engine LICENSE= GPLv2 -NO_WRKSUBDIR= yes USE_ZIP= yes -USE_GMAKE= yes -ALL_TARGET= OpenJazz -USE_XORG= x11 xext xrandr xrender xau xdmcp -USE_SDL= sdl +WRKSRC= ${WRKDIR}/${PORTNAME} +EXTRACT_AFTER_ARGS= -d ${WRKSRC} USE_DOS2UNIX= yes DOS2UNIX_REGEX= .*\.(h|cpp) +USES= gmake +ALL_TARGET= OpenJazz +USE_XORG= x11 xext xrandr xrender xau xdmcp +USE_SDL= sdl + CPPFLAGS+= -I${LOCALBASE}/include `${SDL_CONFIG} --cflags` \ -DDATAPATH=\\\"${DATADIR}/\\\" -DHOMEDIR LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS} `${SDL_CONFIG} --libs` SUB_FILES= pkg-message -NO_STAGE= yes +pre-extract: + @${MKDIR} ${WRKSRC} + do-install: - @${MKDIR} ${DATADIR} - @${INSTALL_DATA} ${WRKSRC}/openjazz.000 ${DATADIR}/ - @${INSTALL_SCRIPT} ${WRKDIR}/OpenJazz ${PREFIX}/bin/openjazz + @${MKDIR} ${STAGEDIR}${DATADIR} + @${INSTALL_DATA} ${WRKSRC}/openjazz.000 ${STAGEDIR}${DATADIR} + @${INSTALL_SCRIPT} ${WRKSRC}/OpenJazz ${STAGEDIR}${PREFIX}/bin/openjazz @${CAT} ${PKGMESSAGE} +post-install: + @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/openjazz + .include <bsd.port.mk> |