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
) $(1)/usr
/bin
$(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 ln
-sf
$(STAGING_DIR
)/host
/bin
/xslt-config
$(1)/usr
/bin
/xslt-config
74 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
78 $(PKG_INSTALL_DIR
)/usr
/include/libxslt
/* \
79 $(1)/usr
/include/libxslt
/
82 $(PKG_INSTALL_DIR
)/usr
/lib
/libxslt.
{la
,so
*} \
86 $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/libxslt.
pc \
87 $(1)/usr
/lib
/pkgconfig
/
90 $(PKG_INSTALL_DIR
)/usr
/share
/aclocal
/* \
94 define Package
/libxslt
/install
95 $(INSTALL_DIR
) $(1)/usr
/lib
97 $(PKG_INSTALL_DIR
)/usr
/lib
/libxslt.so.
* \
101 define Package
/xsltproc
/install
102 $(INSTALL_DIR
) $(1)/usr
/bin
104 $(PKG_INSTALL_DIR
)/usr
/bin
/xsltproc \
108 $(eval
$(call BuildPackage
,libxslt
))
109 $(eval
$(call BuildPackage
,xsltproc
))