Mon Feb 1 02:23:45 2010 UTC ()
DESTDIR support


(joerg)
diff -r1.17 -r1.18 pkgsrc/emulators/p11/Makefile

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

--- pkgsrc/emulators/p11/Makefile 2008/04/12 22:43:00 1.17
+++ pkgsrc/emulators/p11/Makefile 2010/02/01 02:23:45 1.18
@@ -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
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
 12PKG_DESTDIR_SUPPORT= user-destdir
 13
12GNU_CONFIGURE= yes 14GNU_CONFIGURE= yes
13CONFIGURE_ARGS+= --with-begemot=${PREFIX:Q} 15CONFIGURE_ARGS+= --with-begemot=${PREFIX:Q}
14USE_LIBTOOL= yes 16USE_LIBTOOL= yes
15USE_TOOLS+= gmake 17USE_TOOLS+= gmake
16 18
17.include "../../mk/bsd.prefs.mk" 19.include "../../mk/bsd.prefs.mk"
18 20
19PLIST_VARS+= bpf tap tun 21PLIST_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)
23PLIST.bpf= yes 25PLIST.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"
34PLIST.tap= yes 36PLIST.tap= yes
35PLIST.tun= yes 37PLIST.tun= yes
36CONFIGURE_ENV+= ac_cv_epp_bpf=yes ac_cv_epp_tun=yes ac_cv_epp_tap=yes 38CONFIGURE_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
40do-build: 42do-build:
41 cd ${WRKSRC} && ${GMAKE} ${BUILD_TARGET} MAKEFLAGS= 43 cd ${WRKSRC} && ${GMAKE} ${BUILD_TARGET} MAKEFLAGS=
42 44
43do-install: 45do-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"