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
20 include $(INCLUDE_DIR
)/package.mk
22 define Package
/libxslt
26 TITLE
:=Gnome XSLT library
27 URL
:=http
://xmlsoft.org
/XSLT
/
30 define Package
/libxslt
/description
31 A library for XML transformation using XSLT.
34 define Package
/xsltproc
37 DEPENDS
:=+libxml2
+libxslt
38 TITLE
:=Gnome XSLT xsltproc Utility
39 URL
:=http
://xmlsoft.org
/XSLT
/
42 define Package
/xsltproc
/description
43 XSLT XML transformation utility
46 define Build
/Configure
47 $(call Build
/Configure
/Default
, \
58 TARGET_CFLAGS
+= $(FPIC
)
61 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
62 DESTDIR
="$(PKG_INSTALL_DIR)" \
66 define Build
/InstallDev
67 $(INSTALL_DIR
) $(1)/usr
/bin
$(1)/usr
/include $(1)/usr
/lib
$(1)/usr
/lib
/pkgconfig
68 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/xslt-config
$(1)/usr
/bin
/
69 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/xsltproc
$(1)/usr
/bin
/
70 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/libxslt
$(1)/usr
/include/
71 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libxslt.
{a
,so
*} $(1)/usr
/lib
/
72 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/libxslt.
pc $(1)/usr
/lib
/pkgconfig
/
73 $(SED
) 's,-I$$$${includedir},,g' $(1)/usr
/bin
/xslt-config
74 $(SED
) 's,-L$$$${libdir},,g' $(1)/usr
/bin
/xslt-config
75 $(SED
) 's,-I$(STAGING_DIR)/usr/include,,g' $(1)/usr
/bin
/xslt-config
76 $(SED
) 's,-L$(STAGING_DIR)/usr/lib,,g' $(1)/usr
/bin
/xslt-config
79 define Package
/libxslt
/install
80 $(INSTALL_DIR
) $(1)/usr
/lib
81 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libxslt.so.
* $(1)/usr
/lib
/
84 define Package
/xsltproc
/install
85 $(INSTALL_DIR
) $(1)/usr
/bin
86 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/xsltproc
$(1)/usr
/bin
/
89 $(eval
$(call BuildPackage
,libxslt
))
90 $(eval
$(call BuildPackage
,xsltproc
))