diff options
author | marino <marino@pkgsrc.org> | 2012-05-26 14:21:11 +0000 |
---|---|---|
committer | marino <marino@pkgsrc.org> | 2012-05-26 14:21:11 +0000 |
commit | 6af104e20113bd23cf08bfadb34ac3f1b0d0f0bc (patch) | |
tree | f7c1e1fa0bb7cba14b0e4afabb94519f7bc9d8ff /sysutils | |
parent | e06b34d7309a8f2e04a89a4421d056e6c437dfea (diff) | |
download | pkgsrc-6af104e20113bd23cf08bfadb34ac3f1b0d0f0bc.tar.gz |
sysutils/pfstat: Add DragonFly hack
After spending more time on this this trying to patch it properly than I
care to admit, I concede defeat and add a hack.mk for DragonFly.
I'm not exactly sure what the problem is, other than "make" works on the
subdir makefile and "bmake" doesn't. And that's only true if executed
outside of the package -- hardcoding "make" inside the do-build phase
doesn't work. Weird problem, but the hack works.
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/pfstat/hacks.mk | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sysutils/pfstat/hacks.mk b/sysutils/pfstat/hacks.mk new file mode 100644 index 00000000000..b625ff08ec6 --- /dev/null +++ b/sysutils/pfstat/hacks.mk @@ -0,0 +1,12 @@ +# $NetBSD: hacks.mk,v 1.1 2012/05/26 14:21:11 marino Exp $ +# +# Makefiles are defaulting to /usr/pkg/bin/bmake which doesn't link the +# pfstatd executable on DragonFly. /usr/bin/make works outside of the +# build environment but not inside it, so some environment variable seems +# to be interfering. +# +.if ${OPSYS} == "DragonFly" +post-build: + cd ${WRKSRC}/pfstatd && \ + ${CC} -O -pipe -Wall -I.. -g -std=gnu99 -o pfstatd pfstatd.o pf.o +.endif |