summaryrefslogtreecommitdiff
path: root/games/fltk-sudoku
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2008-03-04 06:59:03 +0000
committerjlam <jlam@pkgsrc.org>2008-03-04 06:59:03 +0000
commit0c6a3253fe7d652e4d744555cc7352fffd4d103a (patch)
tree85dcef76c01a75047f6f6e519e34539fa17ae348 /games/fltk-sudoku
parent4e56d99acab2b215405ccc900e56d697c30ae727 (diff)
downloadpkgsrc-0c6a3253fe7d652e4d744555cc7352fffd4d103a.tar.gz
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'games/fltk-sudoku')
-rw-r--r--games/fltk-sudoku/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/games/fltk-sudoku/Makefile b/games/fltk-sudoku/Makefile
index cec5111f5b4..406dbf9016a 100644
--- a/games/fltk-sudoku/Makefile
+++ b/games/fltk-sudoku/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.3 2007/03/23 22:10:50 joerg Exp $
+# $NetBSD: Makefile,v 1.4 2008/03/04 06:59:04 jlam Exp $
DISTNAME= fltk-1.1.7-source
PKGNAME= fltk-sudoku-1.1.7
+PKGREVISION= 1
VERS= ${DISTNAME:S/fltk-//:S/-source//}
CATEGORIES= x11
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=fltk/} \
@@ -17,6 +18,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.easysw.com/~mike/sudoku/index.html
COMMENT= FLTK example Sudoku game creator and solver
+PKG_DESTDIR_SUPPORT= user-destdir
+
WRKSRC= ${WRKDIR}/${DISTNAME:S/-source//}
USE_LANGUAGES= c c++
USE_TOOLS+= gmake
@@ -42,8 +45,11 @@ SUBST_SED.config2= -e "s|../lib/||g"
BUILD_DIRS= test
BUILD_TARGET= sudoku
+SETGIDGAME= yes
+SPECIAL_PERMS= bin/fltk-sudoku ${SETGID_GAMES_PERMS}
+
do-install:
- ${INSTALL_GAME} ${WRKSRC}/test/sudoku ${PREFIX}/bin/fltk-sudoku
+ ${INSTALL_PROGRAM} ${WRKSRC}/test/sudoku ${DESTDIR}${PREFIX}/bin/fltk-sudoku
BUILDLINK_DEPMETHOD.libXt?= build