| @@ -1,24 +1,26 @@ | | | @@ -1,24 +1,26 @@ |
1 | # $NetBSD: Makefile,v 1.17 2008/04/12 22:43:00 jlam Exp $ | | 1 | # $NetBSD: Makefile,v 1.18 2010/02/01 02:23:45 joerg Exp $ |
2 | # | | 2 | # |
3 | | | 3 | |
4 | DISTNAME= p11-2.10i | | 4 | DISTNAME= p11-2.10i |
5 | CATEGORIES= emulators | | 5 | CATEGORIES= emulators |
6 | MASTER_SITES= http://people.freebsd.org/~harti/p11/ | | 6 | MASTER_SITES= http://people.freebsd.org/~harti/p11/ |
7 | EXTRACT_SUFX= .tar.bz2 | | 7 | EXTRACT_SUFX= .tar.bz2 |
8 | | | 8 | |
9 | MAINTAINER= packages@grumpf.hope-2000.org | | 9 | MAINTAINER= packages@grumpf.hope-2000.org |
10 | COMMENT= PDP11 emulator | | 10 | COMMENT= PDP11 emulator |
11 | | | 11 | |
| | | 12 | PKG_DESTDIR_SUPPORT= user-destdir |
| | | 13 | |
12 | GNU_CONFIGURE= yes | | 14 | GNU_CONFIGURE= yes |
13 | CONFIGURE_ARGS+= --with-begemot=${PREFIX:Q} | | 15 | CONFIGURE_ARGS+= --with-begemot=${PREFIX:Q} |
14 | USE_LIBTOOL= yes | | 16 | USE_LIBTOOL= yes |
15 | USE_TOOLS+= gmake | | 17 | USE_TOOLS+= gmake |
16 | | | 18 | |
17 | .include "../../mk/bsd.prefs.mk" | | 19 | .include "../../mk/bsd.prefs.mk" |
18 | | | 20 | |
19 | PLIST_VARS+= bpf tap tun | | 21 | PLIST_VARS+= bpf tap tun |
20 | | | 22 | |
21 | # bfp, tap, and tun tests taken from p11 configure script | | 23 | # bfp, tap, and tun tests taken from p11 configure script |
22 | .if exists(/dev/bpf0) | | 24 | .if exists(/dev/bpf0) |
23 | PLIST.bpf= yes | | 25 | PLIST.bpf= yes |
24 | .endif | | 26 | .endif |
| @@ -31,17 +33,17 @@ PLIST.tun= yes | | | @@ -31,17 +33,17 @@ PLIST.tun= yes |
31 | | | 33 | |
32 | # Force the bpf, tun, and tap epp backends to be built on DragonFly. | | 34 | # Force the bpf, tun, and tap epp backends to be built on DragonFly. |
33 | .if ${OPSYS} == "DragonFly" | | 35 | .if ${OPSYS} == "DragonFly" |
34 | PLIST.tap= yes | | 36 | PLIST.tap= yes |
35 | PLIST.tun= yes | | 37 | PLIST.tun= yes |
36 | CONFIGURE_ENV+= ac_cv_epp_bpf=yes ac_cv_epp_tun=yes ac_cv_epp_tap=yes | | 38 | CONFIGURE_ENV+= ac_cv_epp_bpf=yes ac_cv_epp_tun=yes ac_cv_epp_tap=yes |
37 | .endif | | 39 | .endif |
38 | | | 40 | |
39 | # override MAKEFLAGS in the build and install stages | | 41 | # override MAKEFLAGS in the build and install stages |
40 | do-build: | | 42 | do-build: |
41 | cd ${WRKSRC} && ${GMAKE} ${BUILD_TARGET} MAKEFLAGS= | | 43 | cd ${WRKSRC} && ${GMAKE} ${BUILD_TARGET} MAKEFLAGS= |
42 | | | 44 | |
43 | do-install: | | 45 | do-install: |
44 | cd ${WRKSRC} && ${GMAKE} ${INSTALL_TARGET} MAKEFLAGS= | | 46 | cd ${WRKSRC} && ${GMAKE} ${INSTALL_TARGET} MAKEFLAGS= DESTDIR=${DESTDIR} |
45 | | | 47 | |
46 | .include "../../devel/libbegemot/buildlink3.mk" | | 48 | .include "../../devel/libbegemot/buildlink3.mk" |
47 | .include "../../mk/bsd.pkg.mk" | | 49 | .include "../../mk/bsd.pkg.mk" |