aboutsummaryrefslogtreecommitdiff
path: root/games/jag/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'games/jag/Makefile')
-rw-r--r--games/jag/Makefile13
1 files changed, 8 insertions, 5 deletions
diff --git a/games/jag/Makefile b/games/jag/Makefile
index 6ebe70cc2a8e..ea51e3cf26ce 100644
--- a/games/jag/Makefile
+++ b/games/jag/Makefile
@@ -6,12 +6,13 @@
#
PORTNAME= jag
-PORTVERSION= 0.2.6
-PORTREVISION= 3
+PORTVERSION= 0.3.2
CATEGORIES= games
MASTER_SITES= http://jag.xlabsoft.com/files/ \
http://mirror.amdmi3.ru/distfiles/
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
+ ${DISTNAME:C/src/data/}${EXTRACT_SUFX}
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= 2d arcade-puzzle game like KDiamonds
@@ -24,15 +25,17 @@ QT_COMPONENTS= qmake_build uic_build moc_build rcc_build \
corelib svg xml opengl network
MAKE_JOBS_SAFE= yes
-WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}-src/jag
-
post-patch:
@${REINPLACE_CMD} -e 's|/usr/local/games/jag|${DATADIR}|' \
- ${WRKSRC}/gamewidget.cpp ${WRKSRC}/Game.pro
+ ${WRKSRC}/main.cpp ${WRKSRC}/Game.pro
@${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|' ${WRKSRC}/Game.pro
do-configure:
@cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
${QMAKE} ${QMAKEFLAGS} Game.pro
+post-install:
+ ${MKDIR} ${DATADIR}
+ cd ${WRKDIR}/${DISTNAME:C/src/data/} && ${COPYTREE_SHARE} data ${DATADIR}/
+
.include <bsd.port.mk>