[packages] aalib: Set ncurses dir prefix. Otherwise configure is going find the
[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 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/libaa
24   SECTION:=libs
25   CATEGORY:=Libraries
26   TITLE:=Ascii-Art rendering library
27   URL:=http://aa-project.sourceforge.net/
28   DEPENDS:=+libncurses
29 endef
30
31 define Build/Configure
32         $(call Build/Configure/Default, \
33                 --enable-shared \
34                 --enable-static \
35                 --without-x \
36                 --without-x11-driver \
37                 --without-slang-driver \
38                 --with-ncurses=$(STAGING_DIR)/usr \
39         )
40 endef
41
42 define Build/InstallDev
43         $(INSTALL_DIR) $(1)/usr/include
44         $(CP) \
45                 $(PKG_INSTALL_DIR)/usr/include/aalib.h \
46                 $(1)/usr/include/
47         $(INSTALL_DIR) $(1)/usr/lib
48         $(CP) \
49                 $(PKG_INSTALL_DIR)/usr/lib/libaa.{a,so*} \
50                 $(1)/usr/lib/
51 endef
52
53 define Package/libaa/install
54         $(INSTALL_DIR) $(1)/usr/lib
55         $(CP) \
56                 $(PKG_INSTALL_DIR)/usr/lib/libaa.so.* \
57                 $(1)/usr/lib/
58 endef
59
60 $(eval $(call BuildPackage,libaa))