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.
This commit is contained in:
marino 2012-05-26 14:21:11 +00:00
parent 40ed717aa1
commit 40280d7ece

12
sysutils/pfstat/hacks.mk Normal file
View file

@ -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