2 # Copyright (C) 2014 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 http
://xmlsoft.org
/sources
/ \
17 ftp
://fr.rpmfind.net
/pub
/libxml
/
18 PKG_HASH
:=5fc7151a57b89c03d7b825df5a0fae0a8d5f05674c0e7cf2937ecec4d54a028c
21 PKG_LICENSE_FILES
:=COPYING
23 PKG_MAINTAINER
:=Jiri Slachta
<jiri@slachta.eu
>
28 include $(INCLUDE_DIR
)/package.mk
30 define Package
/libxslt
34 TITLE
:=Gnome XSLT library
35 URL
:=http
://xmlsoft.org
/XSLT
/
38 define Package
/libxslt
/description
39 A library for XML transformation using XSLT.
42 define Package
/libexslt
46 TITLE
:=Gnome XSLT library Extension
47 URL
:=http
://xmlsoft.org
/XSLT
/EXSLT
/
50 define Package
/libexslt
/description
51 An extension for XSLT.
54 define Package
/xsltproc
57 DEPENDS
:=+libxml2
+libxslt
+libexslt
58 TITLE
:=Gnome XSLT xsltproc Utility
59 URL
:=http
://xmlsoft.org
/XSLT
/
62 define Package
/xsltproc
/description
63 XSLT XML transformation utility.
75 TARGET_CFLAGS
+= $(FPIC
)
77 define Build
/InstallDev
/Xslt
78 $(INSTALL_DIR
) $(1)/usr
/bin
$(2)/bin
$(1)/usr
/include/libxslt \
79 $(1)/usr
/include/libexslt
$(1)/usr
/lib \
80 $(1)/usr
/lib
/pkgconfig
$(2)/share
/aclocal
83 $(PKG_INSTALL_DIR
)/usr
/bin
/xslt-config \
86 ln
-sf
$(STAGING_DIR
)/host
/bin
/xslt-config
$(1)/usr
/bin
/xslt-config
89 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
93 $(PKG_INSTALL_DIR
)/usr
/include/libxslt
/* \
94 $(1)/usr
/include/libxslt
/
97 $(PKG_INSTALL_DIR
)/usr
/lib
/libxslt.
{la
,a
,so
*} \
101 $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/libxslt.
pc \
102 $(1)/usr
/lib
/pkgconfig
/
105 $(PKG_INSTALL_DIR
)/usr
/share
/aclocal
/* \
109 define Build
/InstallDev
/Exslt
110 $(INSTALL_DIR
) $(1)/usr
/include/libexslt
$(1)/usr
/lib
/pkgconfig
112 $(PKG_INSTALL_DIR
)/usr
/include/libexslt
/* \
113 $(1)/usr
/include/libexslt
/
116 $(PKG_INSTALL_DIR
)/usr
/lib
/libexslt.
{la
,a
,so
*} \
120 $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/libexslt.
pc \
121 $(1)/usr
/lib
/pkgconfig
/
124 define Build
/InstallDev
125 $(if
$(CONFIG_PACKAGE_libxslt
),$(call Build
/InstallDev
/Xslt
,$(1),$(2)))
126 $(if
$(CONFIG_PACKAGE_libexslt
),$(call Build
/InstallDev
/Exslt
,$(1),$(2)))
129 define Package
/libxslt
/install
130 $(INSTALL_DIR
) $(1)/usr
/lib
132 $(PKG_INSTALL_DIR
)/usr
/lib
/libxslt.so.
* \
136 define Package
/libexslt
/install
137 $(INSTALL_DIR
) $(1)/usr
/lib
139 $(PKG_INSTALL_DIR
)/usr
/lib
/libexslt.so.
* \
143 define Package
/xsltproc
/install
144 $(INSTALL_DIR
) $(1)/usr
/bin
146 $(PKG_INSTALL_DIR
)/usr
/bin
/xsltproc \
150 $(eval
$(call BuildPackage
,libxslt
))
151 $(eval
$(call BuildPackage
,libexslt
))
152 $(eval
$(call BuildPackage
,xsltproc
))