Makefile 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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. include $(TOPDIR)/rules.mk
  9. PKG_NAME:=linux-atm
  10. PKG_VERSION:=2.4.1
  11. PKG_RELEASE:=1
  12. PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
  13. PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/l/linux-atm/
  14. PKG_MD5SUM:=84fef49cc39ff2605204246666f65864
  15. include $(INCLUDE_DIR)/package.mk
  16. define Package/linux-atm
  17. SECTION:=libs
  18. CATEGORY:=Libraries
  19. TITLE:=Linux ATM library
  20. URL:=http://linux-atm.sourceforge.net/
  21. endef
  22. define Package/linux-atm/description
  23. This package contains a library for accessing the Linux ATM subsystem.
  24. endef
  25. define Package/atm-tools
  26. SECTION:=net
  27. CATEGORY:=Network
  28. DEPENDS:=linux-atm
  29. TITLE:=Linux ATM tools
  30. URL:=http://linux-atm.sourceforge.net/
  31. endef
  32. define Package/atm-tools/description
  33. This package contains the Linux ATM tools.
  34. endef
  35. define Build/Configure
  36. $(call Build/Configure/Default)
  37. # prevent autoheader invocation
  38. touch $(PKG_BUILD_DIR)/stamp-h.in
  39. endef
  40. TARGET_CFLAGS := -I$(PKG_BUILD_DIR)/src/include $(TARGET_CFLAGS)
  41. define Build/Compile
  42. $(MAKE) -C $(PKG_BUILD_DIR) \
  43. $(TARGET_CONFIGURE_OPTS) \
  44. DESTDIR="$(PKG_INSTALL_DIR)" \
  45. all install
  46. endef
  47. define Build/InstallDev
  48. mkdir -p $(STAGING_DIR)/usr/include
  49. $(CP) $(PKG_INSTALL_DIR)/usr/include/atm{,d,sap}.h \
  50. $(STAGING_DIR)/usr/include/
  51. mkdir -p $(STAGING_DIR)/usr/lib
  52. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libatm.{a,so*} \
  53. $(STAGING_DIR)/usr/lib/
  54. endef
  55. define Build/UninstallDev
  56. rm -rf $(STAGING_DIR)/usr/include/atm{,d,sap}.h \
  57. $(STAGING_DIR)/usr/lib/libatm.{a,so*}
  58. endef
  59. define Package/linux-atm/install
  60. $(INSTALL_DIR) $(1)/usr/lib
  61. cp -f $(PKG_INSTALL_DIR)/usr/lib/libatm.so.1 $(1)/usr/lib
  62. endef
  63. define Package/atm-tools/install
  64. $(INSTALL_DIR) $(1)/usr/sbin/
  65. $(CP) $(PKG_INSTALL_DIR)/usr/sbin/atmarp{,d} $(1)/usr/sbin/
  66. $(INSTALL_DIR) $(1)/lib/network
  67. $(INSTALL_BIN) ./files/ipoa.sh $(1)/lib/network/
  68. endef
  69. $(eval $(call BuildPackage,linux-atm))
  70. $(eval $(call BuildPackage,atm-tools))