2 # Copyright (C) 2006-2012 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
9 include $(INCLUDE_DIR
)/kernel.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=@SF
/$(PKG_NAME
)
17 PKG_MD5SUM
:=d49499368c3cf15f73a05d9bce8824a8
22 include $(INCLUDE_DIR
)/package.mk
24 define Package
/linux-atm
27 TITLE
:=Linux ATM library
28 URL
:=http
://linux-atm.sourceforge.net
/
31 define Package
/linux-atm
/description
32 This package contains a library for accessing the Linux ATM subsystem.
35 define Package
/linux-atm
/Default
39 URL
:=http
://linux-atm.sourceforge.net
/
42 define Package
/atm-tools
43 $(call Package
/linux-atm
/Default
)
44 TITLE
:=Linux ATM tools
47 define Package
/atm-tools
/description
48 This package contains the Linux ATM tools.
51 define Package
/atm-diagnostics
52 $(call Package
/linux-atm
/Default
)
53 TITLE
:=Linux ATM Diagnostics
56 define Package
/atm-diagnostics
/description
57 This package contains the Linux ATM diagnostics.
60 define Package
/atm-debug-tools
61 $(call Package
/linux-atm
/Default
)
62 TITLE
:=Linux ATM debugging tools
65 define Package
/atm-debug-tools
/description
66 This package contains the Linux ATM debugging tools.
69 define Package
/br2684ctl
70 $(call Package
/linux-atm
/Default
)
71 TITLE
:=ATM Ethernet bridging configuration utility
74 define Package
/br2684ctl
/description
75 Support for AAL5 encapsulation
(RFC-1483
/RFC-2684
) over ATM.
78 define Build
/Configure
79 $(call Build
/Configure
/Default
)
80 # prevent autoheader invocation
81 touch
$(PKG_BUILD_DIR
)/stamp-h.in
87 # src/qgen is built with HOSTCC, which does not really like our LDFLAGS
88 +$(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
)/src
/qgen \
91 +$(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
) OBJCOPY
=$(TARGET_CROSS
)objcopy
all
94 define Build
/InstallDev
95 $(INSTALL_DIR
) $(1)/usr
97 $(PKG_INSTALL_DIR
)/usr
/include \
98 $(PKG_INSTALL_DIR
)/usr
/lib \
102 define Package
/linux-atm
/install
103 $(INSTALL_DIR
) $(1)/usr
/lib
104 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libatm.so
* $(1)/usr
/lib
/
107 define Package
/atm-tools
/install
108 $(INSTALL_DIR
) $(1)/usr
/sbin
/
109 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/atmarp
{,d
} $(1)/usr
/sbin
/
112 define Package
/atm-debug-tools
/install
113 $(INSTALL_DIR
) $(1)/usr
/bin
/
114 $(INSTALL_DIR
) $(1)/usr
/sbin
/
115 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/atmaddr
$(1)/usr
/sbin
/
116 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/atmloop
$(1)/usr
/sbin
/
117 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/atmtcp
$(1)/usr
/sbin
/
118 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/esi
$(1)/usr
/sbin
/
119 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/aread
$(1)/usr
/bin
/
120 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/awrite
$(1)/usr
/bin
/
121 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/atmdiag
$(1)/usr
/bin
/
122 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/atmdump
$(1)/usr
/bin
/
123 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/atmsigd
$(1)/usr
/sbin
/
124 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/bus
$(1)/usr
/sbin
/
125 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/ilmid
$(1)/usr
/sbin
/
126 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/ilmidiag
$(1)/usr
/sbin
/
127 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/lecs
$(1)/usr
/sbin
/
128 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/les
$(1)/usr
/sbin
/
129 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/mpcd
$(1)/usr
/sbin
/
130 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/zeppelin
$(1)/usr
/sbin
/
131 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/atmswitch
$(1)/usr
/bin
/
132 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/saaldump
$(1)/usr
/bin
/
133 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/sonetdiag
$(1)/usr
/bin
/
134 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/svc_recv
$(1)/usr
/bin
/
135 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/svc_send
$(1)/usr
/bin
/
136 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/ttcp_atm
$(1)/usr
/bin
/
139 define Package
/atm-diagnostics
/install
140 $(INSTALL_DIR
) $(1)/usr
/bin
141 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/aread
$(1)/usr
/bin
/
142 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/awrite
$(1)/usr
/bin
/
143 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/atmdiag
$(1)/usr
/bin
/
144 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/atmdump
$(1)/usr
/bin
/
147 define Package
/br2684ctl
/install
148 $(INSTALL_DIR
) $(1)/etc
/init.d
/
149 $(INSTALL_BIN
) .
/files
/br2684ctl
$(1)/etc
/init.d
/
150 $(INSTALL_DIR
) $(1)/usr
/sbin
151 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/br2684ctl
$(1)/usr
/sbin
/
154 $(eval
$(call BuildPackage
,linux-atm
))
155 $(eval
$(call BuildPackage
,atm-tools
))
156 $(eval
$(call BuildPackage
,atm-debug-tools
))
157 $(eval
$(call BuildPackage
,atm-diagnostics
))
158 $(eval
$(call BuildPackage
,br2684ctl
))