Fri Jan 3 04:30:26 2014 UTC ()
Handle FreeBSD like Dragonfly.


(dholland)
diff -r1.19 -r1.20 pkgsrc/emulators/p11/Makefile

cvs diff -r1.19 -r1.20 pkgsrc/emulators/p11/Makefile (expand / switch to unified diff)

--- pkgsrc/emulators/p11/Makefile 2012/10/03 12:55:16 1.19
+++ pkgsrc/emulators/p11/Makefile 2014/01/03 04:30:26 1.20
@@ -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
4DISTNAME= p11-2.10i 4DISTNAME= p11-2.10i
5CATEGORIES= emulators 5CATEGORIES= emulators
6MASTER_SITES= http://people.freebsd.org/~harti/p11/ 6MASTER_SITES= http://people.freebsd.org/~harti/p11/
7EXTRACT_SUFX= .tar.bz2 7EXTRACT_SUFX= .tar.bz2
8 8
9MAINTAINER= packages@grumpf.hope-2000.org 9MAINTAINER= packages@grumpf.hope-2000.org
10COMMENT= PDP11 emulator 10COMMENT= PDP11 emulator
11 11
12GNU_CONFIGURE= yes 12GNU_CONFIGURE= yes
13CONFIGURE_ARGS+= --with-begemot=${PREFIX:Q} 13CONFIGURE_ARGS+= --with-begemot=${PREFIX:Q}
14USE_LIBTOOL= yes 14USE_LIBTOOL= yes
@@ -19,28 +19,28 @@ USE_TOOLS+= gmake @@ -19,28 +19,28 @@ USE_TOOLS+= gmake
19PLIST_VARS+= bpf tap tun 19PLIST_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)
23PLIST.bpf= yes 23PLIST.bpf= yes
24.endif 24.endif
25.if exists(/dev/tap0) || exists(/dev/net/tun) 25.if exists(/dev/tap0) || exists(/dev/net/tun)
26PLIST.tap= yes 26PLIST.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)
29PLIST.tun= yes 29PLIST.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"
34PLIST.tap= yes 34PLIST.tap= yes
35PLIST.tun= yes 35PLIST.tun= yes
36CONFIGURE_ENV+= ac_cv_epp_bpf=yes ac_cv_epp_tun=yes ac_cv_epp_tap=yes 36CONFIGURE_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
40do-build: 40do-build:
41 cd ${WRKSRC} && ${GMAKE} ${BUILD_TARGET} MAKEFLAGS= 41 cd ${WRKSRC} && ${GMAKE} ${BUILD_TARGET} MAKEFLAGS=
42 42
43do-install: 43do-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"