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