diff options
author | bsam <bsam@FreeBSD.org> | 2012-09-23 03:52:31 +0800 |
---|---|---|
committer | bsam <bsam@FreeBSD.org> | 2012-09-23 03:52:31 +0800 |
commit | 2d52fc001b6a4f687b561ed068045280ce38d6d9 (patch) | |
tree | 3c49a4770c66878e9e8c5d35ada4fcb8ad38ead0 | |
parent | 0007f55862528c7c13f0416ede710113a03f4346 (diff) | |
download | freebsd-ports-gnome-2d52fc001b6a4f687b561ed068045280ce38d6d9.tar.gz freebsd-ports-gnome-2d52fc001b6a4f687b561ed068045280ce38d6d9.tar.zst freebsd-ports-gnome-2d52fc001b6a4f687b561ed068045280ce38d6d9.zip |
. remove options (the port should not be used without DATA);
. simplify DOC installation.
Submitted by: nemysis@gmx.ch (maintainer, via e-mail)
-rw-r--r-- | games/patapizza-tetris/Makefile | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/games/patapizza-tetris/Makefile b/games/patapizza-tetris/Makefile index 69fe04823af3..1037c5b29829 100644 --- a/games/patapizza-tetris/Makefile +++ b/games/patapizza-tetris/Makefile @@ -12,9 +12,6 @@ COMMENT= Unofficial clone of the original Tetris game LICENSE= GPLv3 -OPTIONS_DEFINE= DATA -OPTIONS_DEFAULT=DATA - FETCH_ARGS?= -Fpr USE_GMAKE= yes USE_SDL= sdl image gfx ttf @@ -27,11 +24,11 @@ PORTDOCS= README.md SUB_FILES= ${PORTNAME}.sh -post-patch: - ${REINPLACE_CMD} -e 's:%%PREFIX%%:${PREFIX}:g' ${WRKSRC}/Makefile - .include <bsd.port.options.mk> +post-patch: + ${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/Makefile + do-build: cd ${WRKSRC} && ${CC} -o ${PORTNAME} ${CFLAGS} \ -DDATA_PREFIX=\"${DATADIR}/\" \ @@ -46,9 +43,7 @@ do-install: ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${DATADIR} # Data -.if ${PORT_OPTIONS:MDATA} @(cd ${WRKSRC} && ${COPYTREE_SHARE} images ${DATADIR}) -.endif # Pixmaps ${INSTALL_DATA} ${WRKSRC}/images/logo.png ${PREFIX}/share/pixmaps/${PORTNAME}.png @@ -56,9 +51,7 @@ do-install: # Documentation .if ${PORT_OPTIONS:MDOCS} ${MKDIR} ${DOCSDIR} -. for f in ${PORTDOCS} - ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR} -. endfor + ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR} .endif .include <bsd.port.mk> |