diff options
author | obache <obache> | 2011-06-25 11:32:09 +0000 |
---|---|---|
committer | obache <obache> | 2011-06-25 11:32:09 +0000 |
commit | 75a4cd65e27ffa98b192ecce2f8c8809040d2542 (patch) | |
tree | d4c222070d505f896aea24050c20c53862ad454e /games/xblockout | |
parent | bf0e9f6aeb94f5d79e16f04bd9fdd1c28f0715aa (diff) | |
download | pkgsrc-75a4cd65e27ffa98b192ecce2f8c8809040d2542.tar.gz |
Add user-destdir installation support.
Diffstat (limited to 'games/xblockout')
-rw-r--r-- | games/xblockout/Makefile | 16 | ||||
-rw-r--r-- | games/xblockout/distinfo | 4 | ||||
-rw-r--r-- | games/xblockout/patches/patch-aa | 46 |
3 files changed, 57 insertions, 9 deletions
diff --git a/games/xblockout/Makefile b/games/xblockout/Makefile index b84bac20f5b..2ed21e37d3b 100644 --- a/games/xblockout/Makefile +++ b/games/xblockout/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.5 2011/05/25 05:54:38 obache Exp $ +# $NetBSD: Makefile,v 1.6 2011/06/25 11:32:09 obache Exp $ # DISTNAME= xbl-1.1.6 @@ -10,11 +10,25 @@ HOMEPAGE= http://www710.univ-lyon1.fr/ftp/xbl/xbl.html COMMENT= 3D-tetris-like game LICENSE= gnu-gpl-v1 +PKG_DESTDIR_SUPPORT= user-destdir + USE_TOOLS+= imake GNU_CONFIGURE= yes +USE_GAMESGROUP= yes + # libXext is not needed BUILDLINK_TRANSFORM+= rm:-lXext INSTALLATION_DIRS= bin lib/X11/app-defaults +USERGROUP_PHASE= configure + +SUBST_CLASSES+= gamegid +SUBST_STAGE.gamegid= pre-configure +SUBST_FILES.gamegid= Makefile.in +SUBST_SED.gamegid= -e 's/@GROUP_GID@/GROUP_GID=${PKG_GID.${GAMES_GROUP}}/g' + +SPECIAL_PERMS+= bin/xbl ${SETGID_GAMES_PERMS} +OWN_DIRS_PERMS+= ${PREFIX}/lib/X11/xbl ${GAMEDIR_PERMS} + .include "../../x11/libX11/buildlink3.mk" .include "../../mk/bsd.pkg.mk" diff --git a/games/xblockout/distinfo b/games/xblockout/distinfo index 66d0514c238..b7615056cf8 100644 --- a/games/xblockout/distinfo +++ b/games/xblockout/distinfo @@ -1,8 +1,8 @@ -$NetBSD: distinfo,v 1.3 2009/02/19 12:36:15 drochner Exp $ +$NetBSD: distinfo,v 1.4 2011/06/25 11:32:10 obache Exp $ SHA1 (xbl-1.1.6.tar.gz) = 05b368c20fd16a99346540a5352a011b56926ef3 RMD160 (xbl-1.1.6.tar.gz) = 4e726544b0e9f2b9481e1e216658fc4412dfbd1c Size (xbl-1.1.6.tar.gz) = 136504 bytes -SHA1 (patch-aa) = f53468bfbc23a7c0085bc2b15cce044cddf2338a +SHA1 (patch-aa) = cc0984980d8a5a5baeac7442e8f9a54f6909b4d8 SHA1 (patch-ab) = c006a72d511f01011666e1caf5173ba1f03b3494 SHA1 (patch-ac) = 5ff43d789bec5d98dc88352c57ae0f40378b0427 diff --git a/games/xblockout/patches/patch-aa b/games/xblockout/patches/patch-aa index 340a2cb6729..7d9eb5684f8 100644 --- a/games/xblockout/patches/patch-aa +++ b/games/xblockout/patches/patch-aa @@ -1,6 +1,6 @@ -$NetBSD: patch-aa,v 1.2 2007/02/06 17:08:19 joerg Exp $ +$NetBSD: patch-aa,v 1.3 2011/06/25 11:32:10 obache Exp $ ---- Makefile.in.orig 2007-01-28 18:22:32.000000000 +0000 +--- Makefile.in.orig 2009-02-14 14:23:05.000000000 +0000 +++ Makefile.in @@ -128,9 +128,6 @@ install:bl @-if [ "" != "$(USE_SETGID)" ] ; then \ @@ -12,7 +12,39 @@ $NetBSD: patch-aa,v 1.2 2007/02/06 17:08:19 joerg Exp $ # # Remove old score file # -@@ -173,14 +170,8 @@ install:bl +@@ -146,42 +143,20 @@ install:bl + # + # Install executable + # +- $(CP) bl $(BINDIR)/xbl +- -if [ "" = "$(USE_SETGID)" ] ; then \ +- chmod 755 $(BINDIR)/xbl ;\ +- else \ +- chmod 2755 $(BINDIR)/xbl ;\ +- chown root $(BINDIR)/xbl ;\ +- chgrp $(GROUP_GID) $(BINDIR)/xbl ;\ +- fi ++ $(BSD_INSTALL_PROGRAM) bl $(DESTDIR)$(BINDIR)/xbl + # + # Install executable + # +- -mkdir $(SCOREDIR) 2>/dev/null +- $(CP) Xbl.ad $(RESOURCEDIR)/Xbl ; chmod 644 $(RESOURCEDIR)/Xbl +- $(CP) Xbl.ad $(SCOREDIR)/Xbl ; chmod 644 $(SCOREDIR)/Xbl +- $(CP) COPYING $(SCOREDIR) ; chmod 444 $(SCOREDIR)/COPYING +- -if [ "" = "$(USE_SETGID)" ] ; then \ +- chmod 777 $(SCOREDIR) ;\ +- chmod 666 $(SCOREDIR)/[1-9]* ;\ +- else \ +- chmod 775 $(SCOREDIR) ;\ +- chmod 664 $(SCOREDIR)/[1-9]* ;\ +- chown root $(SCOREDIR) $(SCOREDIR)/[1-9]* ;\ +- chgrp $(GROUP_GID) $(SCOREDIR) $(SCOREDIR)/[1-9]* ;\ +- fi ++ -mkdir $(DESTDIR)$(SCOREDIR) 2>/dev/null ++ $(BSD_INSTALL_DATA) Xbl.ad $(DESTDIR)$(RESOURCEDIR)/Xbl ; ++ $(BSD_INSTALL_DATA) Xbl.ad $(DESTDIR)$(SCOREDIR)/Xbl ; ++ $(BSD_INSTALL_DATA) COPYING $(DESTDIR)$(SCOREDIR) ; # # Install manual pages # @@ -24,8 +56,10 @@ $NetBSD: patch-aa,v 1.2 2007/02/06 17:08:19 joerg Exp $ - $(CP) xbl.man $(MANPATH)/man1/xbl.1 ;\ - chmod 444 $(MANPATH)/man1/xbl.1 ; \ - fi -+ ${BSD_INSTALL_MAN_DIR} ${MANPATH}/man1 -+ ${BSD_INSTALL_MAN} xbl.man $(MANPATH)/man1/xbl.1 - cp *.gif *.html $(SCOREDIR) +- cp *.gif *.html $(SCOREDIR) ++ ${BSD_INSTALL_MAN_DIR} $(DESTDIR)${MANPATH}/man1 ++ ${BSD_INSTALL_MAN} xbl.man $(DESTDIR)$(MANPATH)/man1/xbl.1 ++ ${BSD_INSTALL_DATA} *.gif *.html $(DESTDIR)$(SCOREDIR) # -ls -lsa $(SCOREDIR) $(BINDIR)/xbl $(MANPATH)/man[1n]/xbl.[1n] + @echo "Type xbl to play" |