- Add stage support

- Add DOCS option
- Convert LIB_DEPENDS to new syntax
This commit is contained in:
Danilo Egea Gondolfo 2013-11-01 14:10:23 +00:00
parent 0ddfc8fb76
commit a51cef90c0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=332377

View File

@ -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>