From 72a412414f5133726e255d4ec348906dc692de12 Mon Sep 17 00:00:00 2001 From: Martin Wilke Date: Wed, 2 Sep 2009 16:43:37 +0000 Subject: - Update to 0.7.6b PR: 138452 Submitted by: Ports Fury --- games/freedoko/Makefile | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'games/freedoko/Makefile') 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} -- cgit v1.2.3