add fribidi-packages - an implementation of the Unicode Bidirectional Algorithm ...
[openwrt/svn-archive/archive.git] / libs / fribidi / Makefile
1 #
2 # Copyright (C) 2006 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:=fribidi
11 PKG_VERSION:=0.10.9
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://fribidi.org/download
16
17 PKG_INSTALL:=1
18
19 include $(INCLUDE_DIR)/host-build.mk
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/fribidi
23 SECTION:=libs
24 CATEGORY:=Libraries
25 TITLE:=GNU FriBidi is an implementation of the Unicode Bidirectional Algorithm (bidi)
26 URL:=http://fribidi.org
27 endef
28
29 define Build/InstallDev
30 $(INSTALL_DIR) $(1)/usr/include
31 $(CP) $(PKG_INSTALL_DIR)/usr/include/fribidi $(1)/usr/include/
32 $(INSTALL_DIR) $(1)/usr/lib
33 $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
34 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
35 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc $(1)/usr/lib/pkgconfig/
36 endef
37
38 define Package/fribidi/install
39 $(INSTALL_DIR) $(1)/usr/lib
40 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfribidi.so* $(1)/usr/lib/
41 endef
42
43 $(eval $(call HostBuild))
44 $(eval $(call BuildPackage,fribidi))