summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Troxel <gdt@ir.bbn.com>2010-04-20 12:44:21 -0400
committerGreg Troxel <gdt@ir.bbn.com>2010-04-20 12:44:21 -0400
commit85c4968bb1432ddc7c059893fdee2c976bbee937 (patch)
tree26f1f89a3ea9b91a32d7a1c5a86821dbf89f9d50
parent46154fe3675df5417a712285b66fd12bd1b4fc6d (diff)
build/extra: Enhance README.NetBSD make/gmake decision.
-rwxr-xr-xREADME.NetBSD18
1 files changed, 11 insertions, 7 deletions
diff --git a/README.NetBSD b/README.NetBSD
index 70ca2970..9aac4c35 100755
--- a/README.NetBSD
+++ b/README.NetBSD
@@ -6,6 +6,7 @@
# probably on any system using pkgsrc.
# One should have readline installed already (pkgsrc/devel/readline).
+MAKE=make
# Quagga is currently documented not to require GNU make, but sometimes
# BSD make fails. Enable this if statement as a workaround.
if false; then
@@ -13,29 +14,32 @@ if false; then
echo "WARNING: using gmake to work around nonportable makefiles"
fi
+# Use /usr/quagga to be independent, and /usr/pkg to overwrite pkgsrc.
+PREFIX=/usr/pkg
+
case $1 in
build)
./bootstrap.sh
LDFLAGS="-L/usr/pkg/lib -R/usr/pkg/lib" CPPFLAGS="-I/usr/pkg/include" \
- ./configure --prefix=/usr/quagga \
+ ./configure --prefix=${PREFIX} \
--sysconfdir=/etc/zebra --localstatedir=/var/run/zebra \
- --enable-exampledir=/usr/quagga/share/examples/zebra \
- --enable-pkgsrcrcdir=/usr/quagga/etc/rc.d \
+ --enable-exampledir=${PREFIX}/share/examples/zebra \
+ --enable-pkgsrcrcdir=${PREFIX}/etc/rc.d \
--enable-opaque-lsa --enable-vtysh
- make
+ ${MAKE}
;;
install)
- make install
+ ${MAKE} install
;;
clean)
- make clean
+ ${MAKE} clean
;;
*)
- echo "Illegal command $1"
+ echo "Usage: README.NetBSD (build|install|clean)"
exit 1
;;