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
:=db71660bb7d01ccd4e6be990af8d813b
21 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
22 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
24 include $(INCLUDE_DIR
)/package.mk
26 define Package
/libxslt
30 TITLE
:=Gnome XSLT library
31 URL
:=http
://xmlsoft.org
/XSLT
/
34 define Package
/libxslt
/description
35 A library for XML transformation using XSLT.
38 define Package
/xsltproc
41 DEPENDS
:=+libxml2
+libxslt
42 TITLE
:=Gnome XSLT xsltproc Utility
43 URL
:=http
://xmlsoft.org
/XSLT
/
46 define Package
/xsltproc
/description
47 XSLT XML transformation utility
50 define Build
/Configure
51 $(call Build
/Configure
/Default
, \
54 --with-libxml-prefix
="$(STAGING_DIR)/usr" \
55 --with-libxml-include-prefix
="$(STAGING_DIR)/usr/include" \
56 --with-libxml-libs-prefix
="$(STAGING_DIR)/usr/lib" \
63 CPPFLAGS
="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/libxml2" \
68 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
69 DESTDIR
="$(PKG_INSTALL_DIR)" \
73 define Build
/InstallDev
75 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/xslt-config
$(1)/usr
/bin
/
76 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/xsltproc
$(1)/usr
/bin
/
77 mkdir
-p
$(1)/usr
/include
78 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/libxslt
$(1)/usr
/include/
80 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libxslt.
{a
,so
*} $(1)/usr
/lib
/
81 mkdir
-p
$(1)/usr
/lib
/pkgconfig
82 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/libxslt.
pc $(1)/usr
/lib
/pkgconfig
/
83 $(SED
) 's,-I$$$${includedir},,g' $(1)/usr
/bin
/xslt-config
84 $(SED
) 's,-L$$$${libdir},,g' $(1)/usr
/bin
/xslt-config
85 $(SED
) 's,-I$(1)/usr/include,,g' $(1)/usr
/bin
/xslt-config
86 $(SED
) 's,-L$(1)/usr/lib,,g' $(1)/usr
/bin
/xslt-config
89 define Build
/UninstallDev
91 $(STAGING_DIR
)/usr
/bin
/xslt-config \
92 $(STAGING_DIR
)/usr
/include/libxslt \
93 $(STAGING_DIR
)/usr
/lib
/libxslt.
{a
,so
*} \
94 $(STAGING_DIR
)/usr
/lib
/pkgconfig
/libxslt.
pc
97 define Package
/libxslt
/install
98 $(INSTALL_DIR
) $(1)/usr
/lib
99 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libxslt.so.
* $(1)/usr
/lib
/
102 define Package
/xsltproc
/install
103 $(INSTALL_DIR
) $(1)/usr
/bin
104 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/xsltproc
$(1)/usr
/bin
/
107 $(eval
$(call BuildPackage
,libxslt
))
108 $(eval
$(call BuildPackage
,xsltproc
))