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