diff options
author | jmcneill <jmcneill@pkgsrc.org> | 2008-11-25 23:40:59 +0000 |
---|---|---|
committer | jmcneill <jmcneill@pkgsrc.org> | 2008-11-25 23:40:59 +0000 |
commit | 36d0fd4164a28efc1419bf20ed33f32daff48cec (patch) | |
tree | 01ffab287da1284f4980a83f02433f6389d504cc /sysutils/hal | |
parent | 486a05310504a06818649ff6918df156b2567847 (diff) | |
download | pkgsrc-36d0fd4164a28efc1419bf20ed33f32daff48cec.tar.gz |
Add a HAL_DEVELOPER knob where if enabled, creates a symlink to the NetBSD
hal backend sources instead of copying from FILESDIR (HAL_DEVELOPER=yes).
Defaults to no.
Diffstat (limited to 'sysutils/hal')
-rw-r--r-- | sysutils/hal/Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sysutils/hal/Makefile b/sysutils/hal/Makefile index 49304e8325f..df470075de4 100644 --- a/sysutils/hal/Makefile +++ b/sysutils/hal/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.5 2008/11/25 23:10:23 jmcneill Exp $ +# $NetBSD: Makefile,v 1.6 2008/11/25 23:40:59 jmcneill Exp $ # DISTNAME= hal-0.5.11 @@ -13,6 +13,8 @@ COMMENT= FreeDesktop hardware abstraction layer BUILD_DEFS+= VARBASE +HAL_DEVELOPER?= no + HAL_USER?= haldaemon HAL_GROUP?= haldaemon @@ -72,7 +74,11 @@ FILES_SUBST+= HAL_USER=${HAL_USER} FILES_SUBST+= HAL_GROUP=${HAL_GROUP} post-extract: +.if !empty(HAL_DEVELOPER:Myes) + ${LN} -sf ${FILESDIR}/hald-netbsd ${WRKSRC}/hald/netbsd +.else ${CP} -r ${FILESDIR}/hald-netbsd ${WRKSRC}/hald/netbsd +.endif pre-configure: cd ${WRKSRC} && autoreconf -vi |