packages/libs/aalib/Makefile
nico abc77c0a23 [packages] aalib: fix md5 (closes: #5113)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@15811 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-05-13 06:55:01 +00:00

62 lines
1.2 KiB
Makefile

#
# 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_FIXUP:=libtool
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
CONFIGURE_ARGS+= \
--enable-shared \
--enable-static \
--without-x \
--without-x11-driver \
--without-slang-driver \
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) all \
DESTDIR="$(PKG_INSTALL_DIR)" \
all install
endef
define Build/InstallDev
mkdir -p $(1)/usr/include
$(CP) \
$(PKG_INSTALL_DIR)/usr/include/aalib.h \
$(1)/usr/include/
mkdir -p $(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))