2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
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
21 include $(INCLUDE_DIR
)/package.mk
25 define Package
/libxslt
29 TITLE
:=Gnome XSLT library
30 URL
:=http
://xmlsoft.org
/XSLT
/
33 define Package
/libxslt
/description
34 A library for XML transformation using XSLT.
37 define Package
/xsltproc
40 DEPENDS
:=+libxml2
+libxslt
41 TITLE
:=Gnome XSLT xsltproc Utility
42 URL
:=http
://xmlsoft.org
/XSLT
/
45 define Package
/xsltproc
/description
46 XSLT XML transformation utility
49 define Build
/Configure
50 $(call Build
/Configure
/Default
, \
61 TARGET_CFLAGS
+= $(FPIC
)
63 define Build
/InstallDev
64 $(INSTALL_DIR
) $(2)/bin
$(1)/usr
/include/libxslt
$(1)/usr
/lib \
65 $(1)/usr
/lib
/pkgconfig
$(2)/share
/aclocal
68 $(PKG_INSTALL_DIR
)/usr
/bin
/xslt-config \
71 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
75 $(PKG_INSTALL_DIR
)/usr
/include/libxslt
/* \
76 $(1)/usr
/include/libxslt
/
79 $(PKG_INSTALL_DIR
)/usr
/lib
/libxslt.
{la
,so
*} \
83 $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/libxslt.
pc \
84 $(1)/usr
/lib
/pkgconfig
/
87 $(PKG_INSTALL_DIR
)/usr
/share
/aclocal
/* \
91 define Package
/libxslt
/install
92 $(INSTALL_DIR
) $(1)/usr
/lib
94 $(PKG_INSTALL_DIR
)/usr
/lib
/libxslt.so.
* \
98 define Package
/xsltproc
/install
99 $(INSTALL_DIR
) $(1)/usr
/bin
101 $(PKG_INSTALL_DIR
)/usr
/bin
/xsltproc \
105 $(eval
$(call BuildPackage
,libxslt
))
106 $(eval
$(call BuildPackage
,xsltproc
))