[au1000] add missing symbol
[openwrt.git] / package / linux-atm / Makefile
1 #
2 # Copyright (C) 2006-2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9 include $(INCLUDE_DIR)/kernel.mk
10
11 PKG_NAME:=linux-atm
12 PKG_VERSION:=2.5.2
13 PKG_RELEASE:=2
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/$(PKG_NAME)
17 PKG_MD5SUM:=d49499368c3cf15f73a05d9bce8824a8
18
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/linux-atm
24 SECTION:=libs
25 CATEGORY:=Libraries
26 TITLE:=Linux ATM library
27 URL:=http://linux-atm.sourceforge.net/
28 endef
29
30 define Package/linux-atm/description
31 This package contains a library for accessing the Linux ATM subsystem.
32 endef
33
34 define Package/atm-tools
35 SECTION:=net
36 CATEGORY:=Network
37 DEPENDS:=linux-atm
38 TITLE:=Linux ATM tools
39 URL:=http://linux-atm.sourceforge.net/
40 endef
41
42 define Package/atm-tools/description
43 This package contains the Linux ATM tools.
44 endef
45
46 define Package/br2684ctl
47 SECTION:=net
48 CATEGORY:=Network
49 DEPENDS:=linux-atm
50 TITLE:=ATM Ethernet bridging configuration utility
51 URL:=http://linux-atm.sourceforge.net/
52 endef
53
54 define Package/br2684ctl/description
55 Support for AAL5 encapsulation (RFC-1483/RFC-2684) over ATM.
56 endef
57
58 define Build/Configure
59 $(call Build/Configure/Default)
60 # prevent autoheader invocation
61 touch $(PKG_BUILD_DIR)/stamp-h.in
62 endef
63
64 TARGET_CFLAGS += -I$(LINUX_DIR)/include -I$(LINUX_DIR)/arch/$(LINUX_KARCH)/include
65
66 define Build/Compile
67 # src/qgen is built with HOSTCC, which does not really like our LDFLAGS
68 $(MAKE) -C $(PKG_BUILD_DIR)/src/qgen \
69 LDFLAGS="" \
70 all
71 $(MAKE) -C $(PKG_BUILD_DIR) OBJCOPY=$(TARGET_CROSS)objcopy all
72 endef
73
74 define Build/InstallDev
75 $(INSTALL_DIR) $(1)/usr
76 $(CP) \
77 $(PKG_INSTALL_DIR)/usr/include \
78 $(PKG_INSTALL_DIR)/usr/lib \
79 $(1)/usr/
80 endef
81
82 define Package/linux-atm/install
83 $(INSTALL_DIR) $(1)/usr/lib
84 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libatm.so* $(1)/usr/lib/
85 endef
86
87 define Package/atm-tools/install
88 $(INSTALL_DIR) $(1)/usr/sbin/
89 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/arpd/atmarp{,d} $(1)/usr/sbin/
90 $(INSTALL_DIR) $(1)/lib/network
91 $(INSTALL_BIN) ./files/ipoa.sh $(1)/lib/network/
92 $(INSTALL_DIR) $(1)/usr/bin/
93
94 #
95 #The following is disabled by default but still useful for some debugging
96 #
97 # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/atmaddr $(1)/usr/sbin/
98 # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/atmloop $(1)/usr/sbin/
99 # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/atmtcp $(1)/usr/sbin/
100 # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/esi $(1)/usr/sbin/
101 # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/aread $(1)/usr/bin/
102 # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/awrite $(1)/usr/bin/
103 # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/atmdiag $(1)/usr/bin/
104 # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/atmdump $(1)/usr/bin/
105 #
106 # The following is really for some specific application, and obsolete for most of it
107 #
108 # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/atmsigd $(1)/usr/sbin/
109 # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/bus $(1)/usr/sbin/
110 # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/ilmid $(1)/usr/sbin/
111 # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/ilmidiag $(1)/usr/sbin/
112 # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/lecs $(1)/usr/sbin/
113 # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/les $(1)/usr/sbin/
114 # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/mpcd $(1)/usr/sbin/
115 # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/zeppelin $(1)/usr/sbin/
116 # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/atmswitch $(1)/usr/bin/
117 # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/saaldump $(1)/usr/bin/
118 # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/sonetdiag $(1)/usr/bin/
119 # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/svc_recv $(1)/usr/bin/
120 # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/svc_send $(1)/usr/bin/
121 # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ttcp_atm $(1)/usr/bin/
122 endef
123
124 define Package/br2684ctl/install
125 $(INSTALL_DIR) $(1)/etc/init.d/
126 $(INSTALL_BIN) ./files/br2684ctl $(1)/etc/init.d/
127 $(INSTALL_DIR) $(1)/usr/sbin
128 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/br2684ctl $(1)/usr/sbin/
129 endef
130
131 $(eval $(call BuildPackage,linux-atm))
132 $(eval $(call BuildPackage,atm-tools))
133 $(eval $(call BuildPackage,br2684ctl))
This page took 0.059459 seconds and 5 git commands to generate.