7074ea3981fb2ac15fd1ddf9bc0c452026dbc6c4
[openwrt/svn-archive/archive.git] / libs / libxslt / 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 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=libxslt
12 PKG_VERSION:=1.1.24
13 PKG_RELEASE:=2
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://xmlsoft.org/sources/ \
17 ftp://fr.rpmfind.net/pub/libxml/
18 PKG_MD5SUM:=e83ec5d27fc4c10c6f612879bea9a153
19 PKG_FIXUP:=libtool
20
21 include $(INCLUDE_DIR)/package.mk
22
23 PKG_INSTALL=1
24
25 define Package/libxslt
26 SECTION:=libs
27 CATEGORY:=Libraries
28 DEPENDS:=+libxml2
29 TITLE:=Gnome XSLT library
30 URL:=http://xmlsoft.org/XSLT/
31 endef
32
33 define Package/libxslt/description
34 A library for XML transformation using XSLT.
35 endef
36
37 define Package/xsltproc
38 SECTION:=utils
39 CATEGORY:=Utilities
40 DEPENDS:=+libxml2 +libxslt
41 TITLE:=Gnome XSLT xsltproc Utility
42 URL:=http://xmlsoft.org/XSLT/
43 endef
44
45 define Package/xsltproc/description
46 XSLT XML transformation utility
47 endef
48
49 define Build/Configure
50 $(call Build/Configure/Default, \
51 --enable-shared \
52 --enable-static \
53 --without-python \
54 --without-crypto \
55 --without-debug \
56 --without-mem-debug \
57 --without-debugger \
58 )
59 endef
60
61 TARGET_CFLAGS += $(FPIC)
62
63 define Build/InstallDev
64 $(INSTALL_DIR) $(1)/usr/bin $(2)/bin $(1)/usr/include/libxslt $(1)/usr/lib \
65 $(1)/usr/lib/pkgconfig $(2)/share/aclocal
66
67 $(INSTALL_BIN) \
68 $(PKG_INSTALL_DIR)/usr/bin/xslt-config \
69 $(2)/bin/
70
71 ln -sf $(STAGING_DIR)/host/bin/xslt-config $(1)/usr/bin/xslt-config
72
73 $(SED) \
74 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
75 $(2)/bin/xslt-config
76
77 $(INSTALL_DATA) \
78 $(PKG_INSTALL_DIR)/usr/include/libxslt/* \
79 $(1)/usr/include/libxslt/
80
81 $(CP) \
82 $(PKG_INSTALL_DIR)/usr/lib/libxslt.{la,a,so*} \
83 $(1)/usr/lib/
84
85 $(INSTALL_DATA) \
86 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libxslt.pc \
87 $(1)/usr/lib/pkgconfig/
88
89 $(INSTALL_DATA) \
90 $(PKG_INSTALL_DIR)/usr/share/aclocal/* \
91 $(2)/share/aclocal
92 endef
93
94 define Package/libxslt/install
95 $(INSTALL_DIR) $(1)/usr/lib
96 $(CP) \
97 $(PKG_INSTALL_DIR)/usr/lib/libxslt.so.* \
98 $(1)/usr/lib/
99 endef
100
101 define Package/xsltproc/install
102 $(INSTALL_DIR) $(1)/usr/bin
103 $(INSTALL_BIN) \
104 $(PKG_INSTALL_DIR)/usr/bin/xsltproc \
105 $(1)/usr/bin/
106 endef
107
108 $(eval $(call BuildPackage,libxslt))
109 $(eval $(call BuildPackage,xsltproc))