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.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=http
://xmlsoft.org
/sources
/ \
16 ftp
://fr.rpmfind.net
/pub
/libxml
/
17 PKG_MD5SUM
:=e83ec5d27fc4c10c6f612879bea9a153
20 include $(INCLUDE_DIR
)/package.mk
24 define Package
/libxslt
28 TITLE
:=Gnome XSLT library
29 URL
:=http
://xmlsoft.org
/XSLT
/
32 define Package
/libxslt
/description
33 A library for XML transformation using XSLT.
36 define Package
/xsltproc
39 DEPENDS
:=+libxml2
+libxslt
40 TITLE
:=Gnome XSLT xsltproc Utility
41 URL
:=http
://xmlsoft.org
/XSLT
/
44 define Package
/xsltproc
/description
45 XSLT XML transformation utility
48 define Build
/Configure
49 $(call Build
/Configure
/Default
, \
60 TARGET_CFLAGS
+= $(FPIC
)
62 define Build
/InstallDev
63 $(INSTALL_DIR
) $(1)/usr
/bin
$(2)/bin
$(1)/usr
/include/libxslt
$(1)/usr
/lib \
64 $(1)/usr
/lib
/pkgconfig
$(2)/share
/aclocal
67 $(PKG_INSTALL_DIR
)/usr
/bin
/xslt-config \
70 ln
-sf
$(STAGING_DIR
)/host
/bin
/xslt-config
$(1)/usr
/bin
/xslt-config
73 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
77 $(PKG_INSTALL_DIR
)/usr
/include/libxslt
/* \
78 $(1)/usr
/include/libxslt
/
81 $(PKG_INSTALL_DIR
)/usr
/lib
/libxslt.
{la
,a
,so
*} \
85 $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/libxslt.
pc \
86 $(1)/usr
/lib
/pkgconfig
/
89 $(PKG_INSTALL_DIR
)/usr
/share
/aclocal
/* \
93 define Package
/libxslt
/install
94 $(INSTALL_DIR
) $(1)/usr
/lib
96 $(PKG_INSTALL_DIR
)/usr
/lib
/libxslt.so.
* \
100 define Package
/xsltproc
/install
101 $(INSTALL_DIR
) $(1)/usr
/bin
103 $(PKG_INSTALL_DIR
)/usr
/bin
/xsltproc \
107 $(eval
$(call BuildPackage
,libxslt
))
108 $(eval
$(call BuildPackage
,xsltproc
))