[packages] massive: use $(INSTALL_DIR) instead of 'mkdir -p' in install and InstallDev
[packages.git] / libs / aalib / Makefile
1 #
2 # Copyright (C) 2009 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:=aalib
11 PKG_VERSION:=1.2
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/aa-project
16 PKG_MD5SUM:=790434e0f2005fc95559ab3eab42e746
17
18 PKG_FIXUP:=libtool
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/libaa
23   SECTION:=libs
24   CATEGORY:=Libraries
25   TITLE:=Ascii-Art rendering library
26   URL:=http://aa-project.sourceforge.net/
27   DEPENDS:= +libncurses
28 endef
29
30 CONFIGURE_ARGS+= \
31         --enable-shared \
32         --enable-static \
33         --without-x \
34         --without-x11-driver \
35         --without-slang-driver \
36
37 define Build/Compile
38         $(MAKE) -C $(PKG_BUILD_DIR) all \
39                 DESTDIR="$(PKG_INSTALL_DIR)" \
40                 all install
41 endef
42
43 define Build/InstallDev
44         $(INSTALL_DIR) $(1)/usr/include
45         $(CP) \
46                 $(PKG_INSTALL_DIR)/usr/include/aalib.h \
47                 $(1)/usr/include/
48         $(INSTALL_DIR) $(1)/usr/lib
49         $(CP) \
50                 $(PKG_INSTALL_DIR)/usr/lib/libaa.{a,so*} \
51                 $(1)/usr/lib/
52 endef
53
54 define Package/libaa/install
55         $(INSTALL_DIR) $(1)/usr/lib
56         $(CP) \
57                 $(PKG_INSTALL_DIR)/usr/lib/libaa.so.* \
58                 $(1)/usr/lib/
59 endef
60
61 $(eval $(call BuildPackage,libaa))