diff options
author | Alexey Dokuchaev <danfe@FreeBSD.org> | 2008-07-23 08:41:40 +0000 |
---|---|---|
committer | Alexey Dokuchaev <danfe@FreeBSD.org> | 2008-07-23 08:41:40 +0000 |
commit | 439887f2e763c46d43ccfb17f9c8ee91a3141cd8 (patch) | |
tree | a09a4365f1ce277eb6c4ef95f1e24f17f3aab6be /games/cake | |
parent | 9270884d0daef73726888a38bdc0824c1ee7c5d0 (diff) | |
download | ports-439887f2e763c46d43ccfb17f9c8ee91a3141cd8.tar.gz ports-439887f2e763c46d43ccfb17f9c8ee91a3141cd8.zip |
- Convert to OPTIONS
- Patch things in post-patch target, not in post-extract
- Wrap one overly long line
Notes
Notes:
svn path=/head/; revision=217357
Diffstat (limited to 'games/cake')
-rw-r--r-- | games/cake/Makefile | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/games/cake/Makefile b/games/cake/Makefile index f940b718fb2d..b6ec34866145 100644 --- a/games/cake/Makefile +++ b/games/cake/Makefile @@ -17,13 +17,6 @@ DISTNAME= ${PORTNAME}_src_${PORTVERSION:S/.//g} MAINTAINER= danfe@FreeBSD.org COMMENT= Quake3 map viewer -.if defined(WITH_FREEGLUT) -LIB_DEPENDS= glut.11:${PORTSDIR}/graphics/freeglut -.else -LIB_DEPENDS= glut.4:${PORTSDIR}/graphics/libglut -.endif -LIB_DEPENDS+= jpeg.9:${PORTSDIR}/graphics/jpeg - # Need to pass `-l', but PATCH_ARGS+= won't work because of PATCH_ARGS?= # in bsd.port.mk. PATCH_ARGS= -d ${PATCH_WRKSRC} -N -s -E ${PATCH_STRIP} -l @@ -36,13 +29,20 @@ WRKSRC= ${WRKDIR}/cake_src PLIST_FILES= bin/cake -pre-everything:: -.if !defined(WITH_FREEGLUT) - @${ECHO_MSG} "Define WITH_FREEGLUT to build against FreeGLUT" +OPTIONS= FREEGLUT "Build with alternative GLUT library, FreeGLUT" off + +.include <bsd.port.pre.mk> + +.if defined(WITH_FREEGLUT) +LIB_DEPENDS= glut.11:${PORTSDIR}/graphics/freeglut +.else +LIB_DEPENDS= glut.4:${PORTSDIR}/graphics/libglut .endif +LIB_DEPENDS+= jpeg.9:${PORTSDIR}/graphics/jpeg -post-extract: .SILENT - ${FIND} -E ${WRKDIR} -type f \( -iregex ".*\.(cpp|h)" -or -name Makefile \) \ +post-patch: .SILENT + ${FIND} -E ${WRKDIR} -type f \( -iregex ".*\.(cpp|h)" -or \ + -name Makefile \) \ -exec ${REINPLACE_CMD} -E -e 's/[[:cntrl:]]*$$//' \ -e 's/#pragma[[:blank:]]+pack[[:blank:]]*\([[:blank:]]*push[[:blank:]]*,[[:blank:]]*1[[:blank:]]*\)/#pragma pack(1)/g' \ -e 's/#pragma[[:blank:]]+pack[[:blank:]]*\([[:blank:]]*pop[[:blank:]]*\)/#pragma pack()/g' '{}' \; @@ -60,4 +60,4 @@ post-install: @${CAT} ${PKGMESSAGE} @${ECHO_MSG} -.include <bsd.port.mk> +.include <bsd.port.post.mk> |