replace lots of manual install commands with INSTALL_* variables
[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
15 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
16 PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/l/linux-atm/
17 PKG_MD5SUM:=84fef49cc39ff2605204246666f65864
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/Default
26 URL:=http://linux-atm.sourceforge.net/
27 endef
28
29 define Package/linux-atm
30 $(call Package/linux-atm/Default)
31 SECTION:=libs
32 CATEGORY:=Libraries
33 TITLE:=Linux ATM Library
34 DESCRIPTION:=\
35 This package contains a library for accessing the Linux ATM subsystem.
36 endef
37
38 define Package/br2684ctl
39 $(call Package/linux-atm/Default)
40 SECTION:=net
41 CATEGORY:=Network
42 DEPENDS:=+linux-atm
43 TITLE:=RFC2684 bridging utility
44 DESCRIPTION:=\
45 This package contains an ATM RFC2684 bridging utility.
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 $(call Build/Compile/Default, \
56 DESTDIR="$(PKG_INSTALL_DIR)" \
57 all install \
58 )
59 endef
60
61 define Build/InstallDev
62 mkdir -p $(STAGING_DIR)/usr/include
63 $(CP) $(PKG_INSTALL_DIR)/usr/include/atm{,d,sap}.h \
64 $(STAGING_DIR)/usr/include/
65 mkdir -p $(STAGING_DIR)/usr/lib
66 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libatm.{a,so*} \
67 $(STAGING_DIR)/usr/lib/
68 endef
69
70 define Build/UninstallDev
71 rm -rf $(STAGING_DIR)/usr/include/atm{,d,sap}.h \
72 $(STAGING_DIR)/usr/lib/libatm.{a,so*}
73 endef
74
75 define Package/linux-atm/install
76 $(INSTALL_DIR) $(1)/usr/lib
77 cp -f $(PKG_INSTALL_DIR)/usr/lib/libatm.so.1 $(1)/usr/lib
78 endef
79
80 define Package/br2684ctl/install
81 $(INSTALL_DIR) $(1)/usr/sbin
82 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/br2684ctl $(1)/usr/sbin/
83 $(INSTALL_DIR) $(1)/etc/hotplug.d/net
84 $(INSTALL_DATA) ./files/br2684.hotplug $(1)/etc/hotplug.d/net/30-br2684
85 endef
86
87 $(eval $(call BuildPackage,linux-atm))
88 $(eval $(call BuildPackage,br2684ctl))
89
90 $(eval $(call RequireCommand,automake, \
91 $(PKG_NAME) requires automake. \
92 ))
This page took 0.048974 seconds and 5 git commands to generate.