remove automake prereq not needed anymore since [7011], use a separate description...
[openwrt/svn-archive/archive.git] / package / linux-atm / Makefile
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
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=linux-atm
12 PKG_VERSION:=2.4.1
13 PKG_RELEASE:=1
14
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
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/linux-atm
22 SECTION:=libs
23 CATEGORY:=Libraries
24 TITLE:=Linux ATM library
25 URL:=http://linux-atm.sourceforge.net/
26 endef
27
28 define Package/linux-atm/description
29 This package contains a library for accessing the Linux ATM subsystem.
30 endef
31
32 define Build/Configure
33 $(call Build/Configure/Default)
34 # prevent autoheader invocation
35 touch $(PKG_BUILD_DIR)/stamp-h.in
36 endef
37
38 TARGET_CFLAGS := -I$(PKG_BUILD_DIR)/src/include $(TARGET_CFLAGS)
39 define Build/Compile
40 $(MAKE) -C $(PKG_BUILD_DIR) \
41 $(TARGET_CONFIGURE_OPTS) \
42 DESTDIR="$(PKG_INSTALL_DIR)" \
43 all install
44 endef
45
46 define Build/InstallDev
47 mkdir -p $(STAGING_DIR)/usr/include
48 $(CP) $(PKG_INSTALL_DIR)/usr/include/atm{,d,sap}.h \
49 $(STAGING_DIR)/usr/include/
50 mkdir -p $(STAGING_DIR)/usr/lib
51 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libatm.{a,so*} \
52 $(STAGING_DIR)/usr/lib/
53 endef
54
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
60 define Package/linux-atm/install
61 $(INSTALL_DIR) $(1)/usr/lib
62 cp -f $(PKG_INSTALL_DIR)/usr/lib/libatm.so.1 $(1)/usr/lib
63 endef
64
65 $(eval $(call BuildPackage,linux-atm))