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
19 include $(INCLUDE_DIR
)/package.mk
21 define Package
/linux-atm
24 TITLE
:=Linux ATM library
25 URL
:=http
://linux-atm.sourceforge.net
/
28 define Package
/linux-atm
/description
29 This package contains a library for accessing the Linux ATM subsystem.
32 define Package
/atm-tools
36 TITLE
:=Linux ATM tools
37 URL
:=http
://linux-atm.sourceforge.net
/
40 define Package
/atm-tools
/description
41 This package contains the Linux ATM tools.
44 define Build
/Configure
45 $(call Build
/Configure
/Default
)
46 # prevent autoheader invocation
47 touch
$(PKG_BUILD_DIR
)/stamp-h.in
51 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
52 DESTDIR
="$(PKG_INSTALL_DIR)" \
56 define Build
/InstallDev
57 mkdir
-p
$(STAGING_DIR
)/usr
/include
58 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/atm
{,d
,sap
}.h \
59 $(STAGING_DIR
)/usr
/include/
60 mkdir
-p
$(STAGING_DIR
)/usr
/lib
61 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libatm.
{a
,so
*} \
62 $(STAGING_DIR
)/usr
/lib
/
65 define Build
/UninstallDev
66 rm -rf
$(STAGING_DIR
)/usr
/include/atm
{,d
,sap
}.h \
67 $(STAGING_DIR
)/usr
/lib
/libatm.
{a
,so
*}
70 define Package
/linux-atm
/install
71 $(INSTALL_DIR
) $(1)/usr
/lib
72 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libatm.so.
* $(1)/usr
/lib
/
75 define Package
/atm-tools
/install
76 $(INSTALL_DIR
) $(1)/usr
/sbin
/
77 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/atmarp
{,d
} $(1)/usr
/sbin
/
78 $(INSTALL_DIR
) $(1)/lib
/network
79 $(INSTALL_BIN
) .
/files
/ipoa.sh
$(1)/lib
/network
/
82 $(eval
$(call BuildPackage
,linux-atm
))
83 $(eval
$(call BuildPackage
,atm-tools
))