mac80211: remove an obsolete patch
[openwrt.git] / package / linux-atm / Makefile
1 #
2 # Copyright (C) 2006 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
10 PKG_NAME:=linux-atm
11 PKG_VERSION:=2.4.1
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
15 PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/l/linux-atm/
16 PKG_MD5SUM:=84fef49cc39ff2605204246666f65864
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/linux-atm
21 SECTION:=libs
22 CATEGORY:=Libraries
23 TITLE:=Linux ATM library
24 URL:=http://linux-atm.sourceforge.net/
25 endef
26
27 define Package/linux-atm/description
28 This package contains a library for accessing the Linux ATM subsystem.
29 endef
30
31 define Package/atm-tools
32 SECTION:=net
33 CATEGORY:=Network
34 DEPENDS:=linux-atm
35 TITLE:=Linux ATM tools
36 URL:=http://linux-atm.sourceforge.net/
37 endef
38
39 define Package/atm-tools/description
40 This package contains the Linux ATM tools.
41 endef
42
43 define Build/Prepare
44 $(call Build/Prepare/Default)
45 $(INSTALL_BIN) $(SCRIPT_DIR)/config.sub $(SCRIPT_DIR)/config.guess $(PKG_BUILD_DIR)/
46 endef
47
48 define Build/Configure
49 $(call Build/Configure/Default)
50 # prevent autoheader invocation
51 touch $(PKG_BUILD_DIR)/stamp-h.in
52 endef
53
54 define Build/Compile
55 $(MAKE) -C $(PKG_BUILD_DIR) \
56 DESTDIR="$(PKG_INSTALL_DIR)" \
57 all install
58 endef
59
60 ifneq ($(CONFIG_PACKAGE_linux-atm),)
61 define Build/InstallDev
62 mkdir -p $(1)/usr/include
63 $(CP) $(PKG_INSTALL_DIR)/usr/include/atm{,d,sap}.h \
64 $(1)/usr/include/
65 mkdir -p $(1)/usr/lib
66 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libatm.{a,so*} \
67 $(1)/usr/lib/
68 endef
69 endif
70
71 define Package/linux-atm/install
72 $(INSTALL_DIR) $(1)/usr/lib
73 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libatm.so.* $(1)/usr/lib/
74 endef
75
76 define Package/atm-tools/install
77 $(INSTALL_DIR) $(1)/usr/sbin/
78 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/atmarp{,d} $(1)/usr/sbin/
79 $(INSTALL_DIR) $(1)/lib/network
80 $(INSTALL_BIN) ./files/ipoa.sh $(1)/lib/network/
81 endef
82
83 $(eval $(call BuildPackage,linux-atm))
84 $(eval $(call BuildPackage,atm-tools))
This page took 0.057994 seconds and 5 git commands to generate.