aboutsummaryrefslogtreecommitdiffstats
path: root/net/quagga
diff options
context:
space:
mode:
authortijl <tijl@FreeBSD.org>2014-09-14 20:21:39 +0800
committertijl <tijl@FreeBSD.org>2014-09-14 20:21:39 +0800
commit8d49ebd5f3ca003cb09411c29bed4f79660dd879 (patch)
tree191e8a81659e50f7953945132c48a96b950f4f5a /net/quagga
parent0427e1682b7848bbca95b23596f647fb97f19f10 (diff)
downloadfreebsd-ports-gnome-8d49ebd5f3ca003cb09411c29bed4f79660dd879.tar.gz
freebsd-ports-gnome-8d49ebd5f3ca003cb09411c29bed4f79660dd879.tar.zst
freebsd-ports-gnome-8d49ebd5f3ca003cb09411c29bed4f79660dd879.zip
- Convert to INSTALL_TARGET=install-strip
- Remove USE_AUTOTOOLS - Let user decide about stack protector
Diffstat (limited to 'net/quagga')
-rw-r--r--net/quagga/Makefile29
1 files changed, 9 insertions, 20 deletions
diff --git a/net/quagga/Makefile b/net/quagga/Makefile
index 57ecbd0ac29c..20798a6203d2 100644
--- a/net/quagga/Makefile
+++ b/net/quagga/Makefile
@@ -15,12 +15,14 @@ COMMENT= Free RIPv1, RIPv2, OSPFv2, BGP4, IS-IS route software
LICENSE= GPLv2
+BUILD_DEPENDS= gawk:${PORTSDIR}/lang/gawk
+
CONFLICTS= openbgpd-[0-9]* openospfd-[0-9]* zebra-0* quagga-re-[0-9]*
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS= --enable-exampledir=${PREFIX}/share/examples/quagga
+INSTALL_TARGET= install-strip
USES= gmake libtool makeinfo perl5 readline
-USE_AUTOTOOLS= autoheader aclocal
-ACLOCAL_ARGS= -I${LOCALBASE}/share/aclocal
-BUILD_DEPENDS+= gawk:${PORTSDIR}/lang/gawk
USE_LDCONFIG= yes
USE_PERL5= build
@@ -38,16 +40,6 @@ DLMALLOC_DESC= Use dlmalloc (makes bgpd much faster)
NO_BGP_ANNOUNCE_DESC= Turn off BGP route announcement
OSPF_NEXTHOP_DESC= Set ip next-hop in OSPF route maps
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} >= 800000
-LDFLAGS+= -fstack-protector
-.endif
-CONFIGURE_ARGS+=--includedir=${PREFIX}/include --enable-exampledir=${PREFIX}/share/examples/quagga
-CONFIGURE_ENV+= LIBTOOL=${LIBTOOL} LIBTOOLIZE=${LIBTOOLIZE} \
- LIBTOOL_VERSION=${LIBTOOL_VERSION}
-LDFLAGS+= -L${LOCALBASE}/lib
-
ENABLE_USER?= quagga
ENABLE_GROUP?= quagga
@@ -73,6 +65,8 @@ SCRIPTS_ENV= PREFIX=${PREFIX} PKG_PREFIX=${PREFIX} \
SYSCONF_DIR=${SYSCONF_DIR} SYSSTATE_DIR=${SYSSTATE_DIR} \
ENABLE_USER=${ENABLE_USER} ENABLE_GROUP=${ENABLE_GROUP}
+.include <bsd.port.options.mk>
+
.if ${PORT_OPTIONS:MISISD}
CONFIGURE_ARGS+=--enable-isisd
MAN8+= isisd.8
@@ -145,12 +139,7 @@ pre-everything::
@${ECHO} "SYSCONF_DIR Specify directory for Quagga configuration files"
@${ECHO} "LOCALSTATE_DIR Specify directory for Quagga runtime files"
-post-stage:
- ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libospf.so.0.0.0
- ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libzebra.so.0.0.0
-.if ${PORT_OPTIONS:MOSPF_OPAQUE_LSA}
- ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libospfapiclient.so.0.0.0
-.endif
+post-install:
${MKDIR} ${STAGEDIR}${LOCALSTATE_DIR}
${MKDIR} ${STAGEDIR}${SYSCONF_DIR}
@@ -159,4 +148,4 @@ post-clean:
@${RM} -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>