CFE-ready mtd driver, needs fixing though, update kernel config
[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
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/linux-atm/Default
22 URL:=http://linux-atm.sourceforge.net/
23 endef
24
25 define Package/linux-atm
26 $(call Package/linux-atm/Default)
27 SECTION:=libs
28 CATEGORY:=Libraries
29 TITLE:=Linux ATM Library
30 DESCRIPTION:=\
31 This package contains a library for accessing the Linux ATM subsystem.
32 endef
33
34 define Package/br2684ctl
35 $(call Package/linux-atm/Default)
36 SECTION:=net
37 CATEGORY:=Network
38 DEPENDS:=+linux-atm
39 TITLE:=RFC2684 bridging utility
40 DESCRIPTION:=\
41 This package contains an ATM RFC2684 bridging utility.
42 endef
43
44 define Build/Configure
45 $(call Build/Configure/Default)
46 # prevent autoheader invocation
47 touch $(PKG_BUILD_DIR)/stamp-h.in
48 endef
49
50 TARGET_CFLAGS := -I$(PKG_BUILD_DIR)/src/include $(TARGET_CFLAGS)
51 define Build/Compile
52 $(MAKE) -C $(PKG_BUILD_DIR) \
53 $(TARGET_CONFIGURE_OPTS) \
54 DESTDIR="$(PKG_INSTALL_DIR)" \
55 all install
56 endef
57
58 define Build/InstallDev
59 mkdir -p $(STAGING_DIR)/usr/include
60 $(CP) $(PKG_INSTALL_DIR)/usr/include/atm{,d,sap}.h \
61 $(STAGING_DIR)/usr/include/
62 mkdir -p $(STAGING_DIR)/usr/lib
63 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libatm.{a,so*} \
64 $(STAGING_DIR)/usr/lib/
65 endef
66
67 define Build/UninstallDev
68 rm -rf $(STAGING_DIR)/usr/include/atm{,d,sap}.h \
69 $(STAGING_DIR)/usr/lib/libatm.{a,so*}
70 endef
71
72 define Package/linux-atm/install
73 $(INSTALL_DIR) $(1)/usr/lib
74 cp -f $(PKG_INSTALL_DIR)/usr/lib/libatm.so.1 $(1)/usr/lib
75 endef
76
77 define Package/br2684ctl/install
78 $(INSTALL_DIR) $(1)/usr/sbin
79 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/br2684ctl $(1)/usr/sbin/
80 $(INSTALL_DIR) $(1)/etc/hotplug.d/net
81 $(INSTALL_DATA) ./files/br2684.hotplug $(1)/etc/hotplug.d/net/30-br2684
82 endef
83
84 $(eval $(call BuildPackage,linux-atm))
85 $(eval $(call BuildPackage,br2684ctl))
86
87 $(eval $(call RequireCommand,automake, \
88 $(PKG_NAME) requires automake. \
89 ))
This page took 0.040692 seconds and 5 git commands to generate.