build: add the + token to any commands that can pass through the jobserver, fixes...
[openwrt/openwrt.git] / package / linux-atm / Makefile
1 #
2 # Copyright (C) 2006-2011 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:=4
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 PKG_BUILD_PARALLEL:=1
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/linux-atm
25 SECTION:=libs
26 CATEGORY:=Libraries
27 TITLE:=Linux ATM library
28 URL:=http://linux-atm.sourceforge.net/
29 endef
30
31 define Package/linux-atm/description
32 This package contains a library for accessing the Linux ATM subsystem.
33 endef
34
35 define Package/atm-tools
36 SECTION:=net
37 CATEGORY:=Network
38 DEPENDS:=linux-atm
39 TITLE:=Linux ATM tools
40 URL:=http://linux-atm.sourceforge.net/
41 endef
42
43 define Package/atm-tools/description
44 This package contains the Linux ATM tools.
45 endef
46
47 define Package/atm-diagnostics
48 SECTION:=net
49 CATEGORY:=Network
50 DEPENDS:=linux-atm
51 TITLE:=Linux ATM Diagnostics
52 URL:=http://linux-atm.sourceforge.net/
53 endef
54
55 define Package/atm-diagnostics/description
56 This package contains the Linux ATM diagnostics.
57 endef
58
59 define Package/br2684ctl
60 SECTION:=net
61 CATEGORY:=Network
62 DEPENDS:=linux-atm
63 TITLE:=ATM Ethernet bridging configuration utility
64 URL:=http://linux-atm.sourceforge.net/
65 endef
66
67 define Package/br2684ctl/description
68 Support for AAL5 encapsulation (RFC-1483/RFC-2684) over ATM.
69 endef
70
71 define Build/Configure
72 $(call Build/Configure/Default)
73 # prevent autoheader invocation
74 touch $(PKG_BUILD_DIR)/stamp-h.in
75 endef
76
77 TARGET_CFLAGS += -I$(LINUX_DIR)/include -I$(LINUX_DIR)/arch/$(LINUX_KARCH)/include
78 unexport PREFIX
79
80 define Build/Compile
81 # src/qgen is built with HOSTCC, which does not really like our LDFLAGS
82 +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR)/src/qgen \
83 LDFLAGS="" \
84 all
85 +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) OBJCOPY=$(TARGET_CROSS)objcopy all
86 endef
87
88 define Build/InstallDev
89 $(INSTALL_DIR) $(1)/usr
90 $(CP) \
91 $(PKG_INSTALL_DIR)/usr/include \
92 $(PKG_INSTALL_DIR)/usr/lib \
93 $(1)/usr/
94 endef
95
96 define Package/linux-atm/install
97 $(INSTALL_DIR) $(1)/usr/lib
98 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libatm.so* $(1)/usr/lib/
99 endef
100
101 define Package/atm-tools/install
102 $(INSTALL_DIR) $(1)/usr/sbin/
103 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/arpd/atmarp{,d} $(1)/usr/sbin/
104
105 #
106 #The following is disabled by default but still useful for some debugging
107 #
108 # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/atmaddr $(1)/usr/sbin/
109 # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/atmloop $(1)/usr/sbin/
110 # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/atmtcp $(1)/usr/sbin/
111 # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/esi $(1)/usr/sbin/
112 # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/aread $(1)/usr/bin/
113 # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/awrite $(1)/usr/bin/
114 # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/atmdiag $(1)/usr/bin/
115 # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/atmdump $(1)/usr/bin/
116 #
117 # The following is really for some specific application, and obsolete for most of it
118 #
119 # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/atmsigd $(1)/usr/sbin/
120 # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/bus $(1)/usr/sbin/
121 # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/ilmid $(1)/usr/sbin/
122 # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/ilmidiag $(1)/usr/sbin/
123 # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/lecs $(1)/usr/sbin/
124 # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/les $(1)/usr/sbin/
125 # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/mpcd $(1)/usr/sbin/
126 # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/zeppelin $(1)/usr/sbin/
127 # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/atmswitch $(1)/usr/bin/
128 # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/saaldump $(1)/usr/bin/
129 # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/sonetdiag $(1)/usr/bin/
130 # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/svc_recv $(1)/usr/bin/
131 # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/svc_send $(1)/usr/bin/
132 # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ttcp_atm $(1)/usr/bin/
133 endef
134
135 define Package/atm-diagnostics/install
136 $(INSTALL_DIR) $(1)/usr/bin
137 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/aread $(1)/usr/bin/
138 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/awrite $(1)/usr/bin/
139 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/atmdiag $(1)/usr/bin/
140 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/atmdump $(1)/usr/bin/
141 endef
142
143 define Package/br2684ctl/install
144 $(INSTALL_DIR) $(1)/etc/init.d/
145 $(INSTALL_BIN) ./files/br2684ctl $(1)/etc/init.d/
146 $(INSTALL_DIR) $(1)/usr/sbin
147 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/br2684ctl $(1)/usr/sbin/
148 endef
149
150 $(eval $(call BuildPackage,linux-atm))
151 $(eval $(call BuildPackage,atm-tools))
152 $(eval $(call BuildPackage,atm-diagnostics))
153 $(eval $(call BuildPackage,br2684ctl))