diff options
author | danilo <danilo@FreeBSD.org> | 2013-11-01 22:10:23 +0800 |
---|---|---|
committer | danilo <danilo@FreeBSD.org> | 2013-11-01 22:10:23 +0800 |
commit | 9e85f31db3c4ec552b8746187cf66b762bbeb985 (patch) | |
tree | ee9ef7e4d6deccceb50145d26ae5a31d5177d0f4 /games | |
parent | 6fc87fa53b3114478bd391fe1e4f6f2b113a0339 (diff) | |
download | freebsd-ports-graphics-9e85f31db3c4ec552b8746187cf66b762bbeb985.tar.gz freebsd-ports-graphics-9e85f31db3c4ec552b8746187cf66b762bbeb985.tar.zst freebsd-ports-graphics-9e85f31db3c4ec552b8746187cf66b762bbeb985.zip |
- Add stage support
- Add DOCS option
- Convert LIB_DEPENDS to new syntax
Diffstat (limited to 'games')
-rw-r--r-- | games/freedoko/Makefile | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/games/freedoko/Makefile b/games/freedoko/Makefile index ca878993563..bee3468c13a 100644 --- a/games/freedoko/Makefile +++ b/games/freedoko/Makefile @@ -14,8 +14,8 @@ COMMENT= Play the card game Doppelkopf LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/../COPYING -LIB_DEPENDS= gnet-2.0.0:${PORTSDIR}/net/gnet2 \ - gtkmm-2.4.1:${PORTSDIR}/x11-toolkits/gtkmm24 +LIB_DEPENDS= libgnet-2.0.so:${PORTSDIR}/net/gnet2 \ + libgtkmm-2.4.so:${PORTSDIR}/x11-toolkits/gtkmm24 WRKSRC= ${WRKDIR}/${DISTNAME:C/\.src$//}/src @@ -23,7 +23,8 @@ USE_ZIP= yes USES= gmake pkgconfig MAKE_ENV= OS="${OPSYS}" DATADIR="${DATADIR}" DOCSDIR="${DOCSDIR}" -NO_STAGE= yes +OPTIONS_DEFINE= DOCS + post-patch: @${FIND} ${WRKSRC} -name "*Makefile*" | ${XARGS} ${REINPLACE_CMD} -e \ 's|\.\./data|$$(DATADIR)|g ; \ @@ -35,20 +36,18 @@ post-patch: s|/usr/local/|${LOCALBASE}/|g' ${WRKSRC}/misc/setting.cpp do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/FreeDoko ${PREFIX}/bin - ${LN} -sf FreeDoko ${PREFIX}/bin/freedoko - @${MKDIR} ${DATADIR} + ${INSTALL_PROGRAM} ${WRKSRC}/FreeDoko ${STAGEDIR}${PREFIX}/bin + ${LN} -sf FreeDoko ${STAGEDIR}${PREFIX}/bin/freedoko + @${MKDIR} ${STAGEDIR}${DATADIR} .for file in icon.png logo.png - ${INSTALL_DATA} ${WRKSRC}/${file} ${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DATADIR} .endfor .for dir in backgrounds cardsets rules translations - @cd ${WRKSRC}/../data && ${FIND} ${dir} ! -name "*Makefile*" | \ - ${CPIO} --quiet -pdum -R ${SHAREOWN}:${SHAREGRP} ${DATADIR} + cd ${WRKSRC}/../data && ${FIND} ${dir} ! -name "*Makefile*" | \ + ${CPIO} --quiet -pdum ${STAGEDIR}${DATADIR} .endfor -.if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} - @cd ${WRKSRC}/../doc/manual && ${FIND} . | \ - ${CPIO} --quiet -pdum -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR} -.endif + @${MKDIR} ${STAGEDIR}${DOCSDIR} + cd ${WRKSRC}/../doc/manual && ${FIND} . | \ + ${CPIO} --quiet -pdum ${STAGEDIR}${DOCSDIR} .include <bsd.port.mk> |