2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
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
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
23 include $(INCLUDE_DIR)/package.mk
25 define Package/linux-atm/Default
26 URL:=http://linux-atm.sourceforge.net/
29 define Package/linux-atm
30 $(call Package/linux-atm/Default)
33 TITLE:=Linux ATM Library
35 This package contains a library for accessing the Linux ATM subsystem.
38 define Package/br2684ctl
39 $(call Package/linux-atm/Default)
43 TITLE:=RFC2684 bridging utility
45 This package contains an ATM RFC2684 bridging utility.
48 define Build/Configure
49 $(call Build/Configure/Default)
50 # prevent autoheader invocation
51 touch $(PKG_BUILD_DIR)/stamp-h.in
54 TARGET_CFLAGS := -I$(PKG_BUILD_DIR)/src/include $(TARGET_CFLAGS)
56 $(MAKE) -C $(PKG_BUILD_DIR) \
57 $(TARGET_CONFIGURE_OPTS) \
58 DESTDIR="$(PKG_INSTALL_DIR)" \
62 define Build/InstallDev
63 mkdir -p $(STAGING_DIR)/usr/include
64 $(CP) $(PKG_INSTALL_DIR)/usr/include/atm{,d,sap}.h \
65 $(STAGING_DIR)/usr/include/
66 mkdir -p $(STAGING_DIR)/usr/lib
67 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libatm.{a,so*} \
68 $(STAGING_DIR)/usr/lib/
71 define Build/UninstallDev
72 rm -rf $(STAGING_DIR)/usr/include/atm{,d,sap}.h \
73 $(STAGING_DIR)/usr/lib/libatm.{a,so*}
76 define Package/linux-atm/install
77 $(INSTALL_DIR) $(1)/usr/lib
78 cp -f $(PKG_INSTALL_DIR)/usr/lib/libatm.so.1 $(1)/usr/lib
81 define Package/br2684ctl/install
82 $(INSTALL_DIR) $(1)/usr/sbin
83 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/br2684ctl $(1)/usr/sbin/
84 $(INSTALL_DIR) $(1)/etc/hotplug.d/net
85 $(INSTALL_DATA) ./files/br2684.hotplug $(1)/etc/hotplug.d/net/30-br2684
88 $(eval $(call BuildPackage,linux-atm))
89 $(eval $(call BuildPackage,br2684ctl))
91 $(eval $(call RequireCommand,automake, \
92 $(PKG_NAME) requires automake. \