Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / emulators / p11 / Makefile
blob088590ee69e529afda7d81548fb79e89a5259dbf
1 # $NetBSD: Makefile,v 1.18 2010/02/01 02:23:45 joerg Exp $
4 DISTNAME= p11-2.10i
5 CATEGORIES= emulators
6 MASTER_SITES= http://people.freebsd.org/~harti/p11/
7 EXTRACT_SUFX= .tar.bz2
9 MAINTAINER= packages@grumpf.hope-2000.org
10 COMMENT= PDP11 emulator
12 GNU_CONFIGURE= yes
13 CONFIGURE_ARGS+= --with-begemot=${PREFIX:Q}
14 USE_LIBTOOL= yes
15 USE_TOOLS+= gmake
17 .include "../../mk/bsd.prefs.mk"
19 PLIST_VARS+= bpf tap tun
21 # bfp, tap, and tun tests taken from p11 configure script
22 .if exists(/dev/bpf0)
23 PLIST.bpf= yes
24 .endif
25 .if exists(/dev/tap0) || exists(/dev/net/tun)
26 PLIST.tap= yes
27 .endif
28 .if exists(/dev/tun) || exists(/dev/tun0) || exists(/dev/net/tun)
29 PLIST.tun= yes
30 .endif
32 # Force the bpf, tun, and tap epp backends to be built on DragonFly.
33 .if ${OPSYS} == "DragonFly"
34 PLIST.tap= yes
35 PLIST.tun= yes
36 CONFIGURE_ENV+= ac_cv_epp_bpf=yes ac_cv_epp_tun=yes ac_cv_epp_tap=yes
37 .endif
39 # override MAKEFLAGS in the build and install stages
40 do-build:
41 cd ${WRKSRC} && ${GMAKE} ${BUILD_TARGET} MAKEFLAGS=
43 do-install:
44 cd ${WRKSRC} && ${GMAKE} ${INSTALL_TARGET} MAKEFLAGS= DESTDIR=${DESTDIR}
46 .include "../../devel/libbegemot/buildlink3.mk"
47 .include "../../mk/bsd.pkg.mk"