2 # Copyright (C) 2014 - 2018 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
:=98b1bd46d6792925ad2dfe9a87452ea2adebf69dcb9919ffd55bf926a7f93f7f
20 PKG_MAINTAINER
:=Jiri Slachta
<jiri@slachta.eu
>
22 PKG_LICENSE_FILES
:=COPYING
23 PKG_CPE_ID
:=cpe
:/a
:xmlsoft
:libxslt
27 HOST_BUILD_DEPENDS
:=libxml2
/host
29 include $(INCLUDE_DIR
)/package.mk
30 include $(INCLUDE_DIR
)/host-build.mk
32 define Package
/libxslt
36 TITLE
:=Gnome XSLT library
37 URL
:=http
://xmlsoft.org
/XSLT
/
40 define Package
/libxslt
/description
41 A library for XML transformation using XSLT.
44 define Package
/libexslt
48 TITLE
:=Gnome XSLT library Extension
49 URL
:=http
://xmlsoft.org
/XSLT
/EXSLT
/
52 define Package
/libexslt
/description
53 An extension for XSLT.
56 define Package
/xsltproc
59 DEPENDS
:=+libxslt
+PACKAGE_xsltproc
:libexslt
60 TITLE
:=Gnome XSLT xsltproc Utility
61 URL
:=http
://xmlsoft.org
/XSLT
/
64 define Package
/xsltproc
/description
65 XSLT XML transformation utility.
78 HOST_CONFIGURE_ARGS
+= \
79 --with-libxml-prefix
=$(STAGING_DIR_HOSTPKG
) \
88 define Build
/InstallDev
/Xslt
89 $(INSTALL_DIR
) $(1)/usr
/bin
$(2)/bin
$(1)/usr
/include/libxslt \
90 $(1)/usr
/include/libexslt
$(1)/usr
/lib \
91 $(1)/usr
/lib
/pkgconfig
$(2)/share
/aclocal
94 $(PKG_INSTALL_DIR
)/usr
/bin
/xslt-config \
97 ln
-sf
$(STAGING_DIR
)/host
/bin
/xslt-config
$(1)/usr
/bin
/xslt-config
100 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
104 $(PKG_INSTALL_DIR
)/usr
/include/libxslt
/* \
105 $(1)/usr
/include/libxslt
/
108 $(PKG_INSTALL_DIR
)/usr
/lib
/libxslt.
{la
,a
,so
*} \
112 $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/libxslt.
pc \
113 $(1)/usr
/lib
/pkgconfig
/
116 $(PKG_INSTALL_DIR
)/usr
/share
/aclocal
/* \
120 define Build
/InstallDev
/Exslt
121 $(INSTALL_DIR
) $(1)/usr
/include/libexslt
$(1)/usr
/lib
/pkgconfig
123 $(PKG_INSTALL_DIR
)/usr
/include/libexslt
/* \
124 $(1)/usr
/include/libexslt
/
127 $(PKG_INSTALL_DIR
)/usr
/lib
/libexslt.
{la
,a
,so
*} \
131 $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/libexslt.
pc \
132 $(1)/usr
/lib
/pkgconfig
/
135 define Build
/InstallDev
136 $(if
$(CONFIG_PACKAGE_libxslt
),$(call Build
/InstallDev
/Xslt
,$(1),$(2)))
137 $(if
$(CONFIG_PACKAGE_libexslt
),$(call Build
/InstallDev
/Exslt
,$(1),$(2)))
140 define Package
/libxslt
/install
141 $(INSTALL_DIR
) $(1)/usr
/lib
143 $(PKG_INSTALL_DIR
)/usr
/lib
/libxslt.so
* \
147 define Package
/libexslt
/install
148 $(INSTALL_DIR
) $(1)/usr
/lib
150 $(PKG_INSTALL_DIR
)/usr
/lib
/libexslt.so
* \
154 define Package
/xsltproc
/install
155 $(INSTALL_DIR
) $(1)/usr
/bin
157 $(PKG_INSTALL_DIR
)/usr
/bin
/xsltproc \
161 $(eval
$(call BuildPackage
,libxslt
))
162 $(eval
$(call BuildPackage
,libexslt
))
163 $(eval
$(call BuildPackage
,xsltproc
))
164 $(eval
$(call HostBuild
))