pkgsrc/games/powwow/patches/patch-ab
2012-05-23 06:23:02 +00:00

29 lines
909 B
Text

$NetBSD: patch-ab,v 1.6 2012/05/23 06:23:02 dholland Exp $
- support NetBSD, MacOS, DragonFly
- honor pkgsrc CFLAGS and LDFLAGS
--- make_it.orig 2002-06-01 10:33:35.000000000 +0000
+++ make_it
@@ -52,11 +52,18 @@ case $OS in
CC='gcc'
CF='-O2 -fomit-frame-pointer -DUSE_RANDOM -DUSE_VT100 -DLINES=25'
LF='';;
-
+ NetBSD|Darwin|DragonFly)
+ echo "Making Powwow for $OS"
+ CC='gcc'
+ CF='-O2 -pipe -DUSE_SGTTY -DBSD_LIKE -DUSE_RANDOM -DUSE_REGEXP'
+ if [ ! -z "$POWWOW_DIR" ]; then
+ CF="$CF -DPOWWOW_DIR=\\\"$POWWOW_DIR\\\""
+ fi
+ ;;
*)
echo 'UNSUPPORTED OS!!! Trying with defaults.';;
esac
-echo "make" $* "CC='$CC' CDEFS='$CF' LDFLAGS='$LF' "
+echo "make" $* "CC='$CC' CDEFS='$CF $CFLAGS' LDFLAGS='$LF $LDFLAGS' "
-make $* CC="${CC}" CDEFS="${CF}" LDFLAGS="${LF}"
+make $* CC="${CC}" CDEFS="${CF} ${CFLAGS}" LDFLAGS="${LF} ${LDFLAGS}"