pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/games/xrick Use bl3. Fix the default path to data.zip...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0b5a90f1ee6b
branches:  trunk
changeset: 470163:0b5a90f1ee6b
user:      snj <snj%pkgsrc.org@localhost>
date:      Sun Mar 07 02:59:42 2004 +0000

description:
Use bl3.  Fix the default path to data.zip so that xrick works without
any arguments.  Bump PKGREVISION to 3.

diffstat:

 games/xrick/Makefile |  14 ++++++++++----
 1 files changed, 10 insertions(+), 4 deletions(-)

diffs (38 lines):

diff -r d42c65f2da93 -r 0b5a90f1ee6b games/xrick/Makefile
--- a/games/xrick/Makefile      Sun Mar 07 02:37:51 2004 +0000
+++ b/games/xrick/Makefile      Sun Mar 07 02:59:42 2004 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.6 2004/01/24 13:30:57 grant Exp $
+# $NetBSD: Makefile,v 1.7 2004/03/07 02:59:42 snj Exp $
 #
 
 DISTNAME=      xrick-021212
-PKGREVISION=   2
+PKGREVISION=   3
 CATEGORIES=    games
 MASTER_SITES=  http://www.bigorno.net/xrick/
 EXTRACT_SUFX=  .tgz
@@ -18,9 +18,15 @@
 NO_SRC_ON_FTP=     ${RESTRICTED}
 
 USE_GNU_TOOLS+=                make
-USE_BUILDLINK2=                YES
+USE_BUILDLINK3=                YES
 USE_X11=               YES
 
+SUBST_CLASSES+=                data
+SUBST_STAGE.data=      post-patch
+SUBST_MESSAGE.data=    Adjusting path to data.zip
+SUBST_FILES.data=      src/xrick.c
+SUBST_SED.data=                -e "s|data.zip|${PREFIX}/share/xrick/&1|"
+
 post-extract:
        cd ${WRKSRC} && ${GUNZIP_CMD} xrick.6.gz
 
@@ -30,5 +36,5 @@
        ${INSTALL_DATA_DIR} ${PREFIX}/share/xrick
        ${INSTALL_DATA} ${WRKSRC}/data.zip ${PREFIX}/share/xrick
 
-.include "../../devel/SDL/buildlink2.mk"
+.include "../../devel/SDL/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index