split off libospf from quagga-ospf(6)d
[openwrt.git] / package / quagga / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=quagga
6 PKG_VERSION:=0.98.3
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=68be5e911e4d604c0f5959338263356e
9
10 PKG_SOURCE_URL:=http://www.quagga.net/download/ \
11 http://www.de.quagga.net/download/ \
12 http://www.uk.quagga.net/download/
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15 PKG_CAT:=zcat
16
17 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
18 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
19
20 include $(TOPDIR)/package/rules.mk
21
22 $(eval $(call PKG_template,QUAGGA,quagga,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
23 $(eval $(call PKG_template,QUAGGA_BGPD,quagga-bgpd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
24 $(eval $(call PKG_template,LIBOSPF,libospf,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
25 $(eval $(call PKG_template,QUAGGA_OSPFD,quagga-ospfd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
26 $(eval $(call PKG_template,QUAGGA_OSPF6D,quagga-ospf6d,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
27 $(eval $(call PKG_template,QUAGGA_RIPD,quagga-ripd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
28 $(eval $(call PKG_template,QUAGGA_RIPNGD,quagga-ripngd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
29 $(eval $(call PKG_template,QUAGGA_ZEBRA,quagga-zebra,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
30
31 $(PKG_BUILD_DIR)/.configured:
32 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status}; \
33 $(TARGET_CONFIGURE_OPTS) \
34 CFLAGS="$(TARGET_CFLAGS)" \
35 ./configure \
36 --target=$(GNU_TARGET_NAME) \
37 --host=$(GNU_TARGET_NAME) \
38 --build=$(GNU_HOST_NAME) \
39 --program-prefix="" \
40 --program-suffix="" \
41 --prefix=/usr \
42 --exec-prefix=/usr \
43 --bindir=/usr/bin \
44 --sbindir=/usr/sbin \
45 --libexecdir=/usr/lib \
46 --datadir=/usr/share \
47 --includedir=/usr/include \
48 --infodir=/usr/share/info \
49 --libdir=/usr/lib \
50 --libexecdir=/usr/lib \
51 --localstatedir=/var \
52 --mandir=/usr/share/man \
53 --sbindir=/usr/sbin \
54 --sysconfdir=/etc \
55 $(DISABLE_NLS) \
56 $(DISABLE_LARGEFILE) \
57 --enable-shared \
58 --disable-static \
59 --enable-ipv6 \
60 --disable-vtysh \
61 --enable-user=quagga \
62 --enable-group=quagga \
63 --sysconfdir=/etc/quagga \
64 );
65 touch $@
66
67 $(PKG_BUILD_DIR)/.built:
68 $(MAKE) -C $(PKG_BUILD_DIR) \
69 DESTDIR=$(PKG_INSTALL_DIR) \
70 all install
71 touch $@
72
73 $(IPKG_QUAGGA):
74 install -d -m0755 $(IDIR_QUAGGA)/usr/lib
75 cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libzebra.so.* $(IDIR_QUAGGA)/usr/lib/
76 $(RSTRIP) $(IDIR_QUAGGA)
77 $(IPKG_BUILD) $(IDIR_QUAGGA) $(PACKAGE_DIR)
78
79 $(IPKG_QUAGGA_BGPD):
80 install -d -m0755 $(IDIR_QUAGGA_BGPD)/usr/sbin
81 cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/bgpd $(IDIR_QUAGGA_BGPD)/usr/sbin/
82 $(RSTRIP) $(IDIR_QUAGGA_BGPD)
83 $(IPKG_BUILD) $(IDIR_QUAGGA_BGPD) $(PACKAGE_DIR)
84
85 $(IPKG_LIBOSPF):
86 install -d -m0755 $(IDIR_LIBOSPF)/usr/lib
87 cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libospf.so.* $(IDIR_LIBOSPF)/usr/lib/
88 $(RSTRIP) $(IDIR_LIBOSPF)
89 $(IPKG_BUILD) $(IDIR_LIBOSPF) $(PACKAGE_DIR)
90
91 $(IPKG_QUAGGA_OSPFD):
92 install -d -m0755 $(IDIR_QUAGGA_OSPFD)/usr/sbin
93 cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/ospfd $(IDIR_QUAGGA_OSPFD)/usr/sbin/
94 $(RSTRIP) $(IDIR_QUAGGA_OSPFD)
95 $(IPKG_BUILD) $(IDIR_QUAGGA_OSPFD) $(PACKAGE_DIR)
96
97 $(IPKG_QUAGGA_OSPF6D):
98 install -d -m0755 $(IDIR_QUAGGA_OSPF6D)/usr/sbin
99 cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/ospfd $(IDIR_QUAGGA_OSPF6D)/usr/sbin/
100 $(RSTRIP) $(IDIR_QUAGGA_OSPF6D)
101 $(IPKG_BUILD) $(IDIR_QUAGGA_OSPF6D) $(PACKAGE_DIR)
102
103 $(IPKG_QUAGGA_RIPD):
104 install -d -m0755 $(IDIR_QUAGGA_RIPD)/usr/sbin
105 cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/ripd $(IDIR_QUAGGA_RIPD)/usr/sbin/
106 $(RSTRIP) $(IDIR_QUAGGA_RIPD)
107 $(IPKG_BUILD) $(IDIR_QUAGGA_RIPD) $(PACKAGE_DIR)
108
109 $(IPKG_QUAGGA_RIPNGD):
110 install -d -m0755 $(IDIR_QUAGGA_RIPNGD)/usr/sbin
111 cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/ripngd $(IDIR_QUAGGA_RIPNGD)/usr/sbin/
112 $(RSTRIP) $(IDIR_QUAGGA_RIPNGD)
113 $(IPKG_BUILD) $(IDIR_QUAGGA_RIPNGD) $(PACKAGE_DIR)
114
115 $(IPKG_QUAGGA_ZEBRA):
116 install -d -m0755 $(IDIR_QUAGGA_ZEBRA)/usr/sbin
117 cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/zebra $(IDIR_QUAGGA_ZEBRA)/usr/sbin/
118 $(RSTRIP) $(IDIR_QUAGGA_ZEBRA)
119 $(IPKG_BUILD) $(IDIR_QUAGGA_ZEBRA) $(PACKAGE_DIR)
120
This page took 0.046196 seconds and 5 git commands to generate.