diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2013-10-30 22:15:06 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2013-10-30 22:15:06 +0800 |
commit | 5fa3119e3d4578fbfe154fbfa1ea7a4ed26cd900 (patch) | |
tree | ed25071eee1f8192809d2de03a58b042c9b01f21 /games/caph | |
parent | 83eed02452d46ca34d0df3befa8af8f0117f7218 (diff) | |
download | freebsd-ports-gnome-5fa3119e3d4578fbfe154fbfa1ea7a4ed26cd900.tar.gz freebsd-ports-gnome-5fa3119e3d4578fbfe154fbfa1ea7a4ed26cd900.tar.zst freebsd-ports-gnome-5fa3119e3d4578fbfe154fbfa1ea7a4ed26cd900.zip |
- Support staging
- Use new LIB_DEPENDS syntax
Diffstat (limited to 'games/caph')
-rw-r--r-- | games/caph/Makefile | 25 | ||||
-rw-r--r-- | games/caph/pkg-plist | 33 |
2 files changed, 11 insertions, 47 deletions
diff --git a/games/caph/Makefile b/games/caph/Makefile index 1d1038068039..5da949dd3802 100644 --- a/games/caph/Makefile +++ b/games/caph/Makefile @@ -10,10 +10,9 @@ MASTER_SITES= SF/caphgame/${PORTNAME}/caphgame-${PORTVERSION}/ MAINTAINER= amdmi3@FreeBSD.org COMMENT= Physics-based sandbox game -LIB_DEPENDS= png15:${PORTSDIR}/graphics/png - LICENSE= GPLv3 -LICENSE_FILE= ${WRKSRC}/doc/caph/COPYING + +LIB_DEPENDS= libpng.so:${PORTSDIR}/graphics/png USES= iconv USE_BZIP2= yes @@ -22,7 +21,9 @@ USE_GL= gl BUILD_WRKSRC= ${WRKSRC}/src -PORTDOCS= README CHANGELOG +PLIST_FILES= bin/${PORTNAME} +PORTDATA= * +PORTDOCS= * DESKTOP_ENTRIES="Caph" \ "Physics-based sandbox game" \ @@ -31,10 +32,9 @@ DESKTOP_ENTRIES="Caph" \ "Game;LogicGame;" \ false -OPTIONS_DEFINE= OPTIMIZED_CFLAGS -OPTIONS_DEFAULT=OPTIMIZED_CFLAGS +OPTIONS_DEFINE= DOCS OPTIMIZED_CFLAGS +OPTIONS_DEFAULT=DOCS OPTIMIZED_CFLAGS -NO_STAGE= yes .include <bsd.port.options.mk> .if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS} @@ -49,12 +49,9 @@ post-patch: @${REINPLACE_CMD} -e 's|../share/caph|${DATADIR}|' ${BUILD_WRKSRC}/caph.c do-install: - ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/${PORTNAME} ${PREFIX}/bin/ - ${MKDIR} ${DATADIR} - cd ${WRKSRC}/share/caph && ${COPYTREE_SHARE} '*' ${DATADIR} -.if ${PORT_OPTIONS:MDOCS} - ${MKDIR} ${DOCSDIR} - cd ${WRKSRC}/doc/caph && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}/ -.endif + ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/ + cd ${WRKSRC}/share/caph && ${COPYTREE_SHARE} '*' ${STAGEDIR}${DATADIR}/ + ${MKDIR} ${STAGEDIR}${DOCSDIR} + cd ${WRKSRC}/doc/caph && ${INSTALL_DATA} README CHANGELOG ${STAGEDIR}${DOCSDIR}/ .include <bsd.port.mk> diff --git a/games/caph/pkg-plist b/games/caph/pkg-plist deleted file mode 100644 index ac8c03233c2e..000000000000 --- a/games/caph/pkg-plist +++ /dev/null @@ -1,33 +0,0 @@ -bin/caph -%%DATADIR%%/brush.png -%%DATADIR%%/caph.conf -%%DATADIR%%/icon.png -%%DATADIR%%/maps/bend.map -%%DATADIR%%/maps/car.map -%%DATADIR%%/maps/cave.map -%%DATADIR%%/maps/cave2.map -%%DATADIR%%/maps/door.map -%%DATADIR%%/maps/downfall.map -%%DATADIR%%/maps/fire.map -%%DATADIR%%/maps/infinity.map -%%DATADIR%%/maps/jump.map -%%DATADIR%%/maps/loop.map -%%DATADIR%%/maps/loop2.map -%%DATADIR%%/maps/maps.list -%%DATADIR%%/maps/move.map -%%DATADIR%%/maps/push.map -%%DATADIR%%/maps/roll.map -%%DATADIR%%/maps/start.map -%%DATADIR%%/maps/supermassive.map -%%DATADIR%%/maps/tear.map -%%DATADIR%%/maps/tech.map -%%DATADIR%%/maps/temple.map -%%DATADIR%%/maps/tube.map -%%DATADIR%%/maps/up.map -%%DATADIR%%/maps/wall.map -%%DATADIR%%/maps/wind.map -%%DATADIR%%/maps/winter.map -%%DATADIR%%/maps/wire.map -%%DATADIR%%/paper.png -@dirrm %%DATADIR%%/maps -@dirrm %%DATADIR%% |