summaryrefslogtreecommitdiff
path: root/net/zebra/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'net/zebra/Makefile')
-rw-r--r--net/zebra/Makefile31
1 files changed, 23 insertions, 8 deletions
diff --git a/net/zebra/Makefile b/net/zebra/Makefile
index e9fd38df5b4..9e76840499b 100644
--- a/net/zebra/Makefile
+++ b/net/zebra/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.24 2000/08/24 01:25:36 kim Exp $
+# $NetBSD: Makefile,v 1.25 2000/08/27 08:32:55 itojun Exp $
# Based on KAME Id: Makefile,v 1.1.2.1.2.1.10.2 1999/01/05 11:03:50 itojun Exp
#
@@ -8,32 +8,47 @@ MASTER_SITES= ftp://ftp.zebra.org/pub/zebra/
# you might need debugging, it's a developer release !
#CFLAGS+= -g
-BUILD_DEPENDS+= automake:../../devel/automake
-
MAINTAINER= itojun@itojun.org
HOMEPAGE= http://www.zebra.org/
+BUILD_DEPENDS+= automake:../../devel/automake
+BUILD_DEPENDS+= autoreconf:../../devel/autoconf
+
+# libedit does not work due to missing functions.
+.if defined(USE_ZEBRA_VTYSH) && ${USE_ZEBRA_VTYSH} == "YES"
+DEPENDS+= readline-*:../../devel/readline
+CONFIGURE_ARGS+=--enable-vtysh
+CONFIGURE_ENV+= LIBS=-L${LOCALBASE}/lib CFLAGS=-I${LOCALBASE}/include
+.else
+CONFIGURE_ARGS+=--disable-vtysh
+.endif
+
GNU_CONFIGURE= yes
CONFIGURE_ARGS+=--sysconfdir=/etc/zebra
USE_GTEXINFO= yes
+USE_GMAKE= yes
BUILD_DEFS+= USE_INET6
.include "../../mk/bsd.prefs.mk"
.if defined(USE_INET6) && ${USE_INET6} == YES
-PLIST_SRC= ${WRKSRC}/PLIST
.else
CONFIGURE_ARGS+=--disable-ospf6d --disable-ripngd
-PLIST_SRC= ${PKGDIR}/PLIST
.endif
+PLIST_SRC= ${WRKDIR}/PLIST
-.if defined(USE_INET6) && ${USE_INET6} == YES
post-patch:
- ${CAT} ${PKGDIR}/PLIST.v6 ${PKGDIR}/PLIST > ${PLIST_SRC}
+ ${CP} ${PKGDIR}/PLIST ${PLIST_SRC}
+.if defined(USE_INET6) && ${USE_INET6} == YES
+ ${CAT} ${PKGDIR}/PLIST.v6 >> ${PLIST_SRC}
+.endif
+.if defined(USE_ZEBRA_VTYSH) && ${USE_ZEBRA_VTYSH} == "YES"
+ ${CAT} ${PKGDIR}/PLIST.vtysh >> ${PLIST_SRC}
.endif
-#pre-configure:
+pre-configure:
+ cd ${WRKSRC} && autoreconf
# cd ${WRKSRC} && automake
#post-build: