Add missing symbol type
[openwrt.git] / openwrt / 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,QUAGGA_OSPFD,quagga-ospfd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
25 $(eval $(call PKG_template,QUAGGA_OSPF6D,quagga-ospf6d,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
26 $(eval $(call PKG_template,QUAGGA_RIPD,quagga-ripd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
27 $(eval $(call PKG_template,QUAGGA_RIPNGD,quagga-ripngd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
28 $(eval $(call PKG_template,QUAGGA_ZEBRA,quagga-zebra,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
29
30 $(PKG_BUILD_DIR)/.configured:
31 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status}; \
32 $(TARGET_CONFIGURE_OPTS) \
33 CFLAGS="$(TARGET_CFLAGS)" \
34 ./configure \
35 --target=$(GNU_TARGET_NAME) \
36 --host=$(GNU_TARGET_NAME) \
37 --build=$(GNU_HOST_NAME) \
38 --program-prefix="" \
39 --program-suffix="" \
40 --prefix=/usr \
41 --exec-prefix=/usr \
42 --bindir=/usr/bin \
43 --sbindir=/usr/sbin \
44 --libexecdir=/usr/lib \
45 --datadir=/usr/share \
46 --includedir=/usr/include \
47 --infodir=/usr/share/info \
48 --libdir=/usr/lib \
49 --libexecdir=/usr/lib \
50 --localstatedir=/var \
51 --mandir=/usr/share/man \
52 --sbindir=/usr/sbin \
53 --sysconfdir=/etc \
54 $(DISABLE_NLS) \
55 $(DISABLE_LARGEFILE) \
56 --enable-shared \
57 --disable-static \
58 --enable-ipv6 \
59 --disable-vtysh \
60 --enable-user=quagga \
61 --enable-group=quagga \
62 --sysconfdir=/etc/quagga \
63 );
64 touch $@
65
66 $(PKG_BUILD_DIR)/.built:
67 $(MAKE) -C $(PKG_BUILD_DIR) \
68 DESTDIR=$(PKG_INSTALL_DIR) \
69 all install
70 touch $@
71
72 $(IPKG_QUAGGA):
73 install -d -m0755 $(IDIR_QUAGGA)/usr/lib
74 cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libzebra.so.* $(IDIR_QUAGGA)/usr/lib/
75 $(RSTRIP) $(IDIR_QUAGGA)
76 $(IPKG_BUILD) $(IDIR_QUAGGA) $(PACKAGE_DIR)
77
78 $(IPKG_QUAGGA_BGPD):
79 install -d -m0755 $(IDIR_QUAGGA_BGPD)/usr/sbin
80 cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/bgpd $(IDIR_QUAGGA_BGPD)/usr/sbin/
81 $(RSTRIP) $(IDIR_QUAGGA_BGPD)
82 $(IPKG_BUILD) $(IDIR_QUAGGA_BGPD) $(PACKAGE_DIR)
83
84 $(IPKG_QUAGGA_OSPFD):
85 install -d -m0755 $(IDIR_QUAGGA_OSPFD)/usr/lib
86 cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libospf.so.* $(IDIR_QUAGGA_OSPFD)/usr/lib/
87 install -d -m0755 $(IDIR_QUAGGA_OSPFD)/usr/sbin
88 cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/ospfd $(IDIR_QUAGGA_OSPFD)/usr/sbin/
89 $(RSTRIP) $(IDIR_QUAGGA_OSPFD)
90 $(IPKG_BUILD) $(IDIR_QUAGGA_OSPFD) $(PACKAGE_DIR)
91
92 $(IPKG_QUAGGA_OSPF6D):
93 install -d -m0755 $(IDIR_QUAGGA_OSPF6D)/usr/lib
94 cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libospf.so.* $(IDIR_QUAGGA_OSPF6D)/usr/lib/
95 install -d -m0755 $(IDIR_QUAGGA_OSPF6D)/usr/sbin
96 cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/ospfd $(IDIR_QUAGGA_OSPF6D)/usr/sbin/
97 $(RSTRIP) $(IDIR_QUAGGA_OSPF6D)
98 $(IPKG_BUILD) $(IDIR_QUAGGA_OSPF6D) $(PACKAGE_DIR)
99
100 $(IPKG_QUAGGA_RIPD):
101 install -d -m0755 $(IDIR_QUAGGA_RIPD)/usr/sbin
102 cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/ripd $(IDIR_QUAGGA_RIPD)/usr/sbin/
103 $(RSTRIP) $(IDIR_QUAGGA_RIPD)
104 $(IPKG_BUILD) $(IDIR_QUAGGA_RIPD) $(PACKAGE_DIR)
105
106 $(IPKG_QUAGGA_RIPNGD):
107 install -d -m0755 $(IDIR_QUAGGA_RIPNGD)/usr/sbin
108 cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/ripngd $(IDIR_QUAGGA_RIPNGD)/usr/sbin/
109 $(RSTRIP) $(IDIR_QUAGGA_RIPNGD)
110 $(IPKG_BUILD) $(IDIR_QUAGGA_RIPNGD) $(PACKAGE_DIR)
111
112 $(IPKG_QUAGGA_ZEBRA):
113 install -d -m0755 $(IDIR_QUAGGA_ZEBRA)/usr/sbin
114 cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/zebra $(IDIR_QUAGGA_ZEBRA)/usr/sbin/
115 $(RSTRIP) $(IDIR_QUAGGA_ZEBRA)
116 $(IPKG_BUILD) $(IDIR_QUAGGA_ZEBRA) $(PACKAGE_DIR)
117
This page took 0.041894 seconds and 5 git commands to generate.