aboutsummaryrefslogtreecommitdiff
path: root/games/freedoko/Makefile
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2009-09-02 16:43:37 +0000
committerMartin Wilke <miwi@FreeBSD.org>2009-09-02 16:43:37 +0000
commit72a412414f5133726e255d4ec348906dc692de12 (patch)
tree6363c4af74185785a15a1de59e29900210e29cec /games/freedoko/Makefile
parent02ede7134ab231cda83fff97e8fe23ba99514a68 (diff)
downloadports-72a412414f5133726e255d4ec348906dc692de12.tar.gz
ports-72a412414f5133726e255d4ec348906dc692de12.zip
Notes
Diffstat (limited to 'games/freedoko/Makefile')
-rw-r--r--games/freedoko/Makefile13
1 files changed, 8 insertions, 5 deletions
diff --git a/games/freedoko/Makefile b/games/freedoko/Makefile
index aca40206cbb8..25ea40472217 100644
--- a/games/freedoko/Makefile
+++ b/games/freedoko/Makefile
@@ -6,8 +6,7 @@
#
PORTNAME= freedoko
-PORTVERSION= 0.7.5
-PORTREVISION= 1
+PORTVERSION= 0.7.6b
CATEGORIES= games
MASTER_SITES= SF/free-doko/FreeDoko%20source/${PORTVERSION}
DISTNAME= FreeDoko_${PORTVERSION}.src
@@ -22,21 +21,25 @@ WRKSRC= ${WRKDIR}/${DISTNAME:C/\.src$//}/src
USE_ZIP= yes
USE_GMAKE= yes
-MAKE_ENV= OS="${OPSYS}" DATADIR="${DATADIR}"
+MAKE_ENV= OS="${OPSYS}" DATADIR="${DATADIR}" DOCSDIR="${DOCSDIR}"
post-patch:
@${FIND} ${WRKSRC} -name "*Makefile*" | ${XARGS} ${REINPLACE_CMD} -e \
's|\.\./data|$$(DATADIR)|g ; \
+ s|\.\./doc/manual|$$(DOCSDIR)/manual|g ; \
s|@echo $$(CXX)|@true $$(CXX)|g ; \
s|@$$(CXX)|$$(CXX)|g ; \
s|make -C|$$(MAKE) -C|g'
- @${RM} -rf ${WRKSRC}/../data/translations/fr/bak
+ @${REINPLACE_CMD} -e '/\/X11\//d ; \
+ 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_DATA} ${WRKSRC}/icon.png ${WRKSRC}/logo.png ${DATADIR}
+.for file in icon.png logo.png
+ ${INSTALL_DATA} ${WRKSRC}/${file} ${DATADIR}
+.endfor
.for dir in backgrounds cardsets rules translations
@cd ${WRKSRC}/../data && ${FIND} ${dir} ! -name "*Makefile*" | \
${CPIO} --quiet -pdum -R ${SHAREOWN}:${SHAREGRP} ${DATADIR}