| @@ -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 | |
4 | DISTNAME= dungeon-3.2b | | 4 | DISTNAME= dungeon-3.2b |
5 | DISTFILES= dungeon-gdt-glk.tar.gz \ | | 5 | DISTFILES= dungeon-gdt-glk.tar.gz \ |
6 | glkterm-080.tar.gz | | 6 | glkterm-080.tar.gz |
7 | CATEGORIES= games | | 7 | CATEGORIES= games |
8 | MASTER_SITES= http://eblong.com/zarf/glk/ | | 8 | MASTER_SITES= http://eblong.com/zarf/glk/ |
9 | | | 9 | |
10 | MAINTAINER= pkgsrc-users@NetBSD.org | | 10 | MAINTAINER= pkgsrc-users@NetBSD.org |
11 | HOMEPAGE= http://eblong.com/zarf/glk/ | | 11 | HOMEPAGE= http://eblong.com/zarf/glk/ |
12 | COMMENT= Classic game of Dungeon | | 12 | COMMENT= Classic game of Dungeon |
13 | | | 13 | |
| | | 14 | PKG_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 | |
21 | LICENSE= dungeon-license | | 23 | LICENSE= dungeon-license |
22 | RESTRICTED= No license to redistribute | | 24 | RESTRICTED= No license to redistribute |
23 | NO_BIN_ON_CDROM= ${RESTRICTED} | | 25 | NO_BIN_ON_CDROM= ${RESTRICTED} |
24 | NO_BIN_ON_FTP= ${RESTRICTED} | | 26 | NO_BIN_ON_FTP= ${RESTRICTED} |
25 | NO_SRC_ON_CDROM= ${RESTRICTED} | | 27 | NO_SRC_ON_CDROM= ${RESTRICTED} |
26 | NO_SRC_ON_FTP= ${RESTRICTED} | | 28 | NO_SRC_ON_FTP= ${RESTRICTED} |
| @@ -34,20 +36,21 @@ PKG_OPTIONS_VAR= PKG_OPTIONS.dungeon | | | @@ -34,20 +36,21 @@ PKG_OPTIONS_VAR= PKG_OPTIONS.dungeon |
34 | PKG_SUPPORTED_OPTIONS= dungeon-gdt | | 36 | PKG_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) |
39 | MAKE_ENV+= GDT_FLAG=-DHAVE_GDT | | 41 | MAKE_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 | |
44 | pre-build: | | 46 | pre-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 | |
| | | 49 | INSTALLATION_DIRS+= bin ${DATADIR} |
| | | 50 | |
47 | do-install: | | 51 | do-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" |