| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.19 2012/10/03 12:55:16 asau Exp $ | | 1 | # $NetBSD: Makefile,v 1.20 2014/01/03 04:30:26 dholland 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 | GNU_CONFIGURE= yes | | 12 | GNU_CONFIGURE= yes |
13 | CONFIGURE_ARGS+= --with-begemot=${PREFIX:Q} | | 13 | CONFIGURE_ARGS+= --with-begemot=${PREFIX:Q} |
14 | USE_LIBTOOL= yes | | 14 | USE_LIBTOOL= yes |
| @@ -19,28 +19,28 @@ USE_TOOLS+= gmake | | | @@ -19,28 +19,28 @@ USE_TOOLS+= gmake |
19 | PLIST_VARS+= bpf tap tun | | 19 | PLIST_VARS+= bpf tap tun |
20 | | | 20 | |
21 | # bfp, tap, and tun tests taken from p11 configure script | | 21 | # bfp, tap, and tun tests taken from p11 configure script |
22 | .if exists(/dev/bpf0) | | 22 | .if exists(/dev/bpf0) |
23 | PLIST.bpf= yes | | 23 | PLIST.bpf= yes |
24 | .endif | | 24 | .endif |
25 | .if exists(/dev/tap0) || exists(/dev/net/tun) | | 25 | .if exists(/dev/tap0) || exists(/dev/net/tun) |
26 | PLIST.tap= yes | | 26 | PLIST.tap= yes |
27 | .endif | | 27 | .endif |
28 | .if exists(/dev/tun) || exists(/dev/tun0) || exists(/dev/net/tun) | | 28 | .if exists(/dev/tun) || exists(/dev/tun0) || exists(/dev/net/tun) |
29 | PLIST.tun= yes | | 29 | PLIST.tun= yes |
30 | .endif | | 30 | .endif |
31 | | | 31 | |
32 | # Force the bpf, tun, and tap epp backends to be built on DragonFly. | | 32 | # Force the bpf, tun, and tap epp backends to be built on DragonFly and fbsd. |
33 | .if ${OPSYS} == "DragonFly" | | 33 | .if ${OPSYS} == "DragonFly" || ${OPSYS} == "FreeBSD" |
34 | PLIST.tap= yes | | 34 | PLIST.tap= yes |
35 | PLIST.tun= yes | | 35 | PLIST.tun= yes |
36 | CONFIGURE_ENV+= ac_cv_epp_bpf=yes ac_cv_epp_tun=yes ac_cv_epp_tap=yes | | 36 | CONFIGURE_ENV+= ac_cv_epp_bpf=yes ac_cv_epp_tun=yes ac_cv_epp_tap=yes |
37 | .endif | | 37 | .endif |
38 | | | 38 | |
39 | # override MAKEFLAGS in the build and install stages | | 39 | # override MAKEFLAGS in the build and install stages |
40 | do-build: | | 40 | do-build: |
41 | cd ${WRKSRC} && ${GMAKE} ${BUILD_TARGET} MAKEFLAGS= | | 41 | cd ${WRKSRC} && ${GMAKE} ${BUILD_TARGET} MAKEFLAGS= |
42 | | | 42 | |
43 | do-install: | | 43 | do-install: |
44 | cd ${WRKSRC} && ${GMAKE} ${INSTALL_TARGET} MAKEFLAGS= DESTDIR=${DESTDIR} | | 44 | cd ${WRKSRC} && ${GMAKE} ${INSTALL_TARGET} MAKEFLAGS= DESTDIR=${DESTDIR} |
45 | | | 45 | |
46 | .include "../../devel/libbegemot/buildlink3.mk" | | 46 | .include "../../devel/libbegemot/buildlink3.mk" |