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

Last change on this file since 20826 was 20826, checked in by florian, 7 years ago

[package] fix linux-atm build failure on brcm63xx (and probably other targets) (#7145)

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