6da2827f226747459935ae6aaf86b5788f8d2fe1
[openwrt/svn-archive/archive.git] / libs / libamsel / 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:=libamsel
12 PKG_VERSION:=20040621-cvs
13 PKG_RELEASE:=1
14
15 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
17 PKG_SOURCE_URL:=ftp://ftp.amselinux.net/source/
18 PKG_MD5SUM:=2077e620047404881a65d39c53c9917e
19 PKG_CAT:=bzcat
20
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/libamsel
26 SECTION:=libs
27 CATEGORY:=Libraries
28 TITLE:=The amwall library
29 DESCRIPTION:=The amwall library.\\\
30 A library for amwall configuration files.
31 URL:=http://amselinux.de/
32 endef
33
34 define Build/Configure
35 endef
36
37 define Build/Compile
38 rm -rf $(PKG_INSTALL_DIR)
39 mkdir -p $(PKG_INSTALL_DIR)
40 $(MAKE) -C $(PKG_BUILD_DIR) \
41 $(TARGET_CONFIGURE_OPTS) \
42 LDIR=$(PKG_BUILD_DIR) \
43 PREFIX="$(PKG_INSTALL_DIR)/usr" \
44 all install
45 endef
46
47 define Package/libamsel/install
48 install -d -m0755 $(1)/usr/lib
49 $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib
50 endef
51
52 define Build/InstallDev
53 mkdir -p $(STAGING_DIR)/usr/include
54 $(CP) $(PKG_INSTALL_DIR)/usr/include/amsel/compat.h $(STAGING_DIR)/usr/include/
55 mkdir -p $(STAGING_DIR)/usr/include/compat
56 $(CP) $(PKG_INSTALL_DIR)/usr/include/amsel/compat/queue.h $(STAGING_DIR)/usr/include/compat
57 mkdir -p $(STAGING_DIR)/usr/lib/
58 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libamsel.so $(STAGING_DIR)/usr/lib/
59 endef
60
61 define Build/UninstallDev
62 rm -rf \
63 $(STAGING_DIR)/usr/include/compat.h \
64 $(STAGING_DIR)/usr/include/compat \
65 $(STAGING_DIR)/usr/lib/libamsel.so
66 endef
67
68 $(eval $(call BuildPackage,libamsel))