blob: a980bf114bcf98fbd454484e4f4308284a5bf394 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
#
# Copyright (C) 2009 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=aalib
PKG_VERSION:=1.2
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SF/aa-project
PKG_MD5SUM:=790434e0f2005fc95559ab3eab42e746
PKG_LICENSE:=LGPLv2
PKG_LICENSE_FILE:=COPYING
PKG_FIXUP:=autoreconf
PKG_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
define Package/libaa
SECTION:=libs
CATEGORY:=Libraries
TITLE:=Ascii-Art rendering library
URL:=http://aa-project.sourceforge.net/
DEPENDS:=+libncurses
endef
define Build/Configure
$(call Build/Configure/Default, \
--enable-shared \
--enable-static \
--without-x \
--with-x11-driver=no \
--with-slang-driver=no \
--with-ncurses=$(STAGING_DIR)/usr \
)
endef
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include
$(CP) \
$(PKG_INSTALL_DIR)/usr/include/aalib.h \
$(1)/usr/include/
$(INSTALL_DIR) $(1)/usr/lib
$(CP) \
$(PKG_INSTALL_DIR)/usr/lib/libaa.{a,so*} \
$(1)/usr/lib/
endef
define Package/libaa/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) \
$(PKG_INSTALL_DIR)/usr/lib/libaa.so.* \
$(1)/usr/lib/
endef
$(eval $(call BuildPackage,libaa))
|