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
, \
50 --with-libxml-prefix
="$(STAGING_DIR)/usr" \
51 --with-libxml-include-prefix
="$(STAGING_DIR)/usr/include" \
52 --with-libxml-libs-prefix
="$(STAGING_DIR)/usr/lib" \
59 CPPFLAGS
="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/libxml2" \
63 TARGET_CFLAGS
+= $(FPIC
)
66 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
67 DESTDIR
="$(PKG_INSTALL_DIR)" \
71 define Build
/InstallDev
72 $(INSTALL_DIR
) $(1)/usr
/bin
$(1)/usr
/include $(1)/usr
/lib
$(1)/usr
/lib
/pkgconfig
73 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/xslt-config
$(1)/usr
/bin
/
74 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/xsltproc
$(1)/usr
/bin
/
75 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/libxslt
$(1)/usr
/include/
76 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libxslt.
{a
,so
*} $(1)/usr
/lib
/
77 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/libxslt.
pc $(1)/usr
/lib
/pkgconfig
/
78 $(SED
) 's,-I$$$${includedir},,g' $(1)/usr
/bin
/xslt-config
79 $(SED
) 's,-L$$$${libdir},,g' $(1)/usr
/bin
/xslt-config
80 $(SED
) 's,-I$(STAGING_DIR)/usr/include,,g' $(1)/usr
/bin
/xslt-config
81 $(SED
) 's,-L$(STAGING_DIR)/usr/lib,,g' $(1)/usr
/bin
/xslt-config
84 define Package
/libxslt
/install
85 $(INSTALL_DIR
) $(1)/usr
/lib
86 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libxslt.so.
* $(1)/usr
/lib
/
89 define Package
/xsltproc
/install
90 $(INSTALL_DIR
) $(1)/usr
/bin
91 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/xsltproc
$(1)/usr
/bin
/
94 $(eval
$(call BuildPackage
,libxslt
))
95 $(eval
$(call BuildPackage
,xsltproc
))