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