add missing copyright
[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 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=linux-atm
12 PKG_VERSION:=2.4.1
13 PKG_RELEASE:=1
14 PKG_MD5SUM:=84fef49cc39ff2605204246666f65864
15
16 PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/l/linux-atm/
17 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/linux-atm
26 SECTION:=libs
27 CATEGORY:=Libraries
28 TITLE:=Linux ATM Library
29 DESCRIPTION:=Library for accessing the Linux ATM subsystem
30 endef
31
32 define Package/br2684ctl
33 SECTION:=net
34 CATEGORY:=Network
35 TITLE:=RFC2684 bridging
36 DEPENDS:=+linux-atm
37 DESCRIPTION:=ATM RFC2684 bridging utility
38 endef
39
40 define Build/Configure
41 $(call Build/Configure/Default,)
42 # prevent autoheader invocation
43 touch $(PKG_BUILD_DIR)/stamp-h.in
44 endef
45
46 define Build/Compile
47 rm -rf $(PKG_INSTALL_DIR)
48 mkdir -p $(PKG_INSTALL_DIR)
49 $(MAKE) -C $(PKG_BUILD_DIR) \
50 DESTDIR="$(PKG_INSTALL_DIR)" \
51 all install
52 endef
53
54 define Package/linux-atm/install
55 install -d -m0755 $(1)/usr/lib
56 cp -f $(PKG_INSTALL_DIR)/usr/lib/libatm.so.1 $(1)/usr/lib
57 endef
58
59 define Package/br2684ctl/install
60 install -d -m0755 $(1)/etc/hotplug.d/net
61 install -m0644 ./files/br2684.hotplug $(1)/etc/hotplug.d/net/30-br2684
62 install -d -m0755 $(1)/usr/sbin
63 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/br2684ctl $(1)/usr/sbin/
64 endef
65
66 define Build/InstallDev
67 mkdir -p $(STAGING_DIR)/usr/include
68 $(CP) $(PKG_INSTALL_DIR)/usr/include/atm{,d,sap}.h \
69 $(STAGING_DIR)/usr/include/
70 mkdir -p $(STAGING_DIR)/usr/lib
71 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libatm.{a,so*} \
72 $(STAGING_DIR)/usr/lib/
73 endef
74
75 define Build/UninstallDev
76 rm -rf $(STAGING_DIR)/usr/include/atm{,d,sap}.h \
77 $(STAGING_DIR)/usr/lib/libatm.{a,so*}
78 endef
79
80 $(eval $(call BuildPackage,linux-atm))
81 $(eval $(call BuildPackage,br2684ctl))
This page took 0.045107 seconds and 5 git commands to generate.