[packages] massive: use $(INSTALL_DIR) instead of 'mkdir -p' in install and InstallDev
[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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=libamsel
11 PKG_VERSION:=20040621-cvs
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=ftp://ftp.amselinux.net/source/
16 PKG_MD5SUM:=2077e620047404881a65d39c53c9917e
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/libamsel
21 SECTION:=libs
22 CATEGORY:=Libraries
23 TITLE:=The amwall library
24 URL:=http://amselinux.de/
25 endef
26
27 define Package/libamsel/description
28 A library for amwall configuration files.
29 endef
30
31 define Build/Configure
32 endef
33
34 TARGET_CFLAGS += $(FPIC)
35
36 MAKE_FLAGS += \
37 CFLAGS="$(TARGET_CFLAGS) -I$(PKG_BUILD_DIR) -fPIC" \
38 LDIR=$(PKG_BUILD_DIR) \
39 PREFIX="$(PKG_INSTALL_DIR)/usr" \
40 all install
41
42 define Build/InstallDev
43 $(INSTALL_DIR) $(1)/usr/include
44 $(CP) $(PKG_INSTALL_DIR)/usr/include/amsel/compat.h $(1)/usr/include/
45 $(INSTALL_DIR) $(1)/usr/include/compat
46 $(CP) $(PKG_INSTALL_DIR)/usr/include/amsel/compat/queue.h $(1)/usr/include/compat/
47 $(INSTALL_DIR) $(1)/usr/lib
48 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libamsel.so $(1)/usr/lib/
49 endef
50
51 define Package/libamsel/install
52 $(INSTALL_DIR) $(1)/usr/lib
53 $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib
54 endef
55
56 $(eval $(call BuildPackage,libamsel))