[packages] Use default templates instead of custom reimplementations where applicable
[openwrt/svn-archive/archive.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 )
39 endef
40
41 define Build/InstallDev
42 $(INSTALL_DIR) $(1)/usr/include
43 $(CP) \
44 $(PKG_INSTALL_DIR)/usr/include/aalib.h \
45 $(1)/usr/include/
46 $(INSTALL_DIR) $(1)/usr/lib
47 $(CP) \
48 $(PKG_INSTALL_DIR)/usr/lib/libaa.{a,so*} \
49 $(1)/usr/lib/
50 endef
51
52 define Package/libaa/install
53 $(INSTALL_DIR) $(1)/usr/lib
54 $(CP) \
55 $(PKG_INSTALL_DIR)/usr/lib/libaa.so.* \
56 $(1)/usr/lib/
57 endef
58
59 $(eval $(call BuildPackage,libaa))