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
/Default
22 URL
:=http
://linux-atm.sourceforge.net
/
25 define Package
/linux-atm
26 $(call Package
/linux-atm
/Default
)
29 TITLE
:=Linux ATM Library
31 This package contains a library for accessing the Linux ATM subsystem.
34 define Build
/Configure
35 $(call Build
/Configure
/Default
)
36 # prevent autoheader invocation
37 touch
$(PKG_BUILD_DIR
)/stamp-h.in
40 TARGET_CFLAGS
:= -I
$(PKG_BUILD_DIR
)/src
/include $(TARGET_CFLAGS
)
42 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
43 $(TARGET_CONFIGURE_OPTS
) \
44 DESTDIR
="$(PKG_INSTALL_DIR)" \
48 define Build
/InstallDev
49 mkdir
-p
$(STAGING_DIR
)/usr
/include
50 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/atm
{,d
,sap
}.h \
51 $(STAGING_DIR
)/usr
/include/
52 mkdir
-p
$(STAGING_DIR
)/usr
/lib
53 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libatm.
{a
,so
*} \
54 $(STAGING_DIR
)/usr
/lib
/
57 define Build
/UninstallDev
58 rm -rf
$(STAGING_DIR
)/usr
/include/atm
{,d
,sap
}.h \
59 $(STAGING_DIR
)/usr
/lib
/libatm.
{a
,so
*}
62 define Package
/linux-atm
/install
63 $(INSTALL_DIR
) $(1)/usr
/lib
64 cp
-f
$(PKG_INSTALL_DIR
)/usr
/lib
/libatm.so
.1 $(1)/usr
/lib
67 $(eval
$(call BuildPackage
,linux-atm
))
69 $(eval
$(call RequireCommand
,automake
, \
70 $(PKG_NAME
) requires automake. \