Fri Jan 29 20:27:03 2010 UTC ()
DESTDIR support


(joerg)
diff -r1.1 -r1.2 pkgsrc/games/dungeon/Makefile

cvs diff -r1.1 -r1.2 pkgsrc/games/dungeon/Makefile (expand / switch to unified diff)

--- pkgsrc/games/dungeon/Makefile 2009/11/28 20:25:40 1.1
+++ pkgsrc/games/dungeon/Makefile 2010/01/29 20:27:03 1.2
@@ -1,26 +1,28 @@ @@ -1,26 +1,28 @@
1# $NetBSD: Makefile,v 1.1 2009/11/28 20:25:40 pgoyette Exp $ 1# $NetBSD: Makefile,v 1.2 2010/01/29 20:27:03 joerg Exp $
2# 2#
3 3
4DISTNAME= dungeon-3.2b 4DISTNAME= dungeon-3.2b
5DISTFILES= dungeon-gdt-glk.tar.gz \ 5DISTFILES= dungeon-gdt-glk.tar.gz \
6 glkterm-080.tar.gz 6 glkterm-080.tar.gz
7CATEGORIES= games 7CATEGORIES= games
8MASTER_SITES= http://eblong.com/zarf/glk/ 8MASTER_SITES= http://eblong.com/zarf/glk/
9 9
10MAINTAINER= pkgsrc-users@NetBSD.org 10MAINTAINER= pkgsrc-users@NetBSD.org
11HOMEPAGE= http://eblong.com/zarf/glk/ 11HOMEPAGE= http://eblong.com/zarf/glk/
12COMMENT= Classic game of Dungeon 12COMMENT= Classic game of Dungeon
13 13
 14PKG_DESTDIR_SUPPORT= user-destdir
 15
14# There really isn't any license in any of the source code or in the 16# There really isn't any license in any of the source code or in the
15# accompanying documentation, but the sources of many versions have 17# accompanying documentation, but the sources of many versions have
16# been freely made available for many years with the assumption that 18# been freely made available for many years with the assumption that
17# the "No commercial use" comment following the copyright statement 19# the "No commercial use" comment following the copyright statement
18# implies a license to use in non-commercial applications. We'll adopt 20# implies a license to use in non-commercial applications. We'll adopt
19# that implication here. 21# that implication here.
20 22
21LICENSE= dungeon-license 23LICENSE= dungeon-license
22RESTRICTED= No license to redistribute 24RESTRICTED= No license to redistribute
23NO_BIN_ON_CDROM= ${RESTRICTED} 25NO_BIN_ON_CDROM= ${RESTRICTED}
24NO_BIN_ON_FTP= ${RESTRICTED} 26NO_BIN_ON_FTP= ${RESTRICTED}
25NO_SRC_ON_CDROM= ${RESTRICTED} 27NO_SRC_ON_CDROM= ${RESTRICTED}
26NO_SRC_ON_FTP= ${RESTRICTED} 28NO_SRC_ON_FTP= ${RESTRICTED}
@@ -34,20 +36,21 @@ PKG_OPTIONS_VAR= PKG_OPTIONS.dungeon @@ -34,20 +36,21 @@ PKG_OPTIONS_VAR= PKG_OPTIONS.dungeon
34PKG_SUPPORTED_OPTIONS= dungeon-gdt 36PKG_SUPPORTED_OPTIONS= dungeon-gdt
35 37
36.include "../../mk/bsd.options.mk" 38.include "../../mk/bsd.options.mk"
37 39
38.if !empty(PKG_OPTIONS:Mdungeon-gdt) 40.if !empty(PKG_OPTIONS:Mdungeon-gdt)
39MAKE_ENV+= GDT_FLAG=-DHAVE_GDT 41MAKE_ENV+= GDT_FLAG=-DHAVE_GDT
40.endif 42.endif
41 43
42# Before we build the game itself, we need to build the glkterm library 44# Before we build the game itself, we need to build the glkterm library
43 45
44pre-build: 46pre-build:
45 cd ${WRKDIR}/glkterm && env ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS} 47 cd ${WRKDIR}/glkterm && env ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS}
46 48
 49INSTALLATION_DIRS+= bin ${DATADIR}
 50
47do-install: 51do-install:
48 ${INSTALL_PROGRAM} ${WRKSRC}/dungeon ${DESTDIR}${PREFIX}/bin 52 ${INSTALL_PROGRAM} ${WRKSRC}/dungeon ${DESTDIR}${PREFIX}/bin
49 ${INSTALL_DATA_DIR} ${DESTDIR}${DATADIR} 
50 ${INSTALL_DATA} ${WRKSRC}/dundat ${DESTDIR}${DATADIR}/ 53 ${INSTALL_DATA} ${WRKSRC}/dundat ${DESTDIR}${DATADIR}/
51 54
52.include "../../devel/ncurses/buildlink3.mk" 55.include "../../devel/ncurses/buildlink3.mk"
53.include "../../mk/bsd.pkg.mk" 56.include "../../mk/bsd.pkg.mk"