source: trunk/package/linux-atm/Makefile @ 20225

Last change on this file since 20225 was 20225, checked in by thepeople, 7 years ago

fixup linux-atm package after the broken patch earlier

  • Property svn:copyright set to Copyright (C) 2006 OpenWrt.org
  • Property svn:eol-style set to native
File size: 3.6 KB
Line 
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
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=linux-atm
11PKG_VERSION:=2.5.1
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
15PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/l/linux-atm/
16PKG_MD5SUM:=9560b0e1f410a05b849dfdab465dd758
17
18include $(INCLUDE_DIR)/package.mk
19
20define Package/linux-atm
21  SECTION:=libs
22  CATEGORY:=Libraries
23  TITLE:=Linux ATM library
24  URL:=http://linux-atm.sourceforge.net/
25endef
26
27define Package/linux-atm/description
28  This package contains a library for accessing the Linux ATM subsystem.
29endef
30
31define Package/atm-tools
32  SECTION:=net
33  CATEGORY:=Network
34  DEPENDS:=linux-atm
35  TITLE:=Linux ATM tools
36  URL:=http://linux-atm.sourceforge.net/
37endef
38
39define Package/atm-tools/description
40  This package contains the Linux ATM tools.
41endef
42
43define Build/Prepare
44        $(call Build/Prepare/Default)
45        $(INSTALL_BIN) $(SCRIPT_DIR)/config.sub $(SCRIPT_DIR)/config.guess $(PKG_BUILD_DIR)/
46endef
47
48define Build/Configure
49        (cd $(PKG_BUILD_DIR); \
50                ./configure \
51        )
52        #$(call Build/Configure/Default)
53        # prevent autoheader invocation
54        touch $(PKG_BUILD_DIR)/stamp-h.in
55endef
56
57define Build/Compile
58        $(MAKE) -C $(PKG_BUILD_DIR) \
59                DESTDIR="$(PKG_INSTALL_DIR)" \
60                all install
61endef
62
63ifneq ($(CONFIG_PACKAGE_linux-atm),)
64  define Build/InstallDev
65        mkdir -p $(1)/usr/include
66        $(CP)   $(PKG_BUILD_DIR)/src/include/atm{,d,sap}.h \
67                $(1)/usr/include/
68        mkdir -p $(1)/usr/lib
69        $(CP)   $(PKG_BUILD_DIR)/src/lib/.libs/libatm.{a,so*} \
70                $(1)/usr/lib/
71  endef
72endif
73
74define Package/linux-atm/install
75        $(INSTALL_DIR) $(1)/usr/lib
76        $(CP) $(PKG_BUILD_DIR)/src/lib/.libs/libatm.so.* $(1)/usr/lib/
77endef
78
79define Package/atm-tools/install
80        $(INSTALL_DIR) $(1)/usr/sbin/
81        $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/arpd/atmarp{,d} $(1)/usr/sbin/
82        $(INSTALL_DIR) $(1)/lib/network
83        $(INSTALL_BIN) ./files/ipoa.sh $(1)/lib/network/
84        $(INSTALL_DIR) $(1)/usr/bin/
85
86#
87#The following is disabled by default but still useful for some debugging
88#
89#       $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/atmaddr $(1)/usr/sbin/
90#       $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/atmloop $(1)/usr/sbin/
91#       $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/atmtcp     $(1)/usr/sbin/
92#       $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/esi $(1)/usr/sbin/
93#       $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/aread $(1)/usr/bin/
94#       $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/awrite $(1)/usr/bin/
95#       $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/atmdiag $(1)/usr/bin/
96#       $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/atmdump $(1)/usr/bin/
97#
98# The following is really for some specific application, and obsolete for most of it
99#
100#       $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/atmsigd $(1)/usr/sbin/
101#       $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/bus $(1)/usr/sbin/
102#       $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/ilmid $(1)/usr/sbin/
103#       $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/ilmidiag $(1)/usr/sbin/
104#       $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/lecs $(1)/usr/sbin/
105#       $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/les $(1)/usr/sbin/
106#       $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/mpcd $(1)/usr/sbin/
107#       $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/zeppelin $(1)/usr/sbin/
108#       $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/atmswitch $(1)/usr/bin/
109#       $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/saaldump $(1)/usr/bin/
110#       $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/sonetdiag $(1)/usr/bin/
111#       $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/svc_recv $(1)/usr/bin/
112#       $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/svc_send $(1)/usr/bin/
113#       $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ttcp_atm $(1)/usr/bin/
114endef
115
116$(eval $(call BuildPackage,linux-atm))
117$(eval $(call BuildPackage,atm-tools))
Note: See TracBrowser for help on using the repository browser.