[packages] libxslt: update to v1.1.26, cleanup
[openwrt/svn-archive/archive.git] / libs / libxslt / Makefile
1 #
2 # Copyright (C) 2006-2009 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=libxslt
11 PKG_VERSION:=1.1.26
12 PKG_RELEASE:=1
13
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:=e61d0364a30146aaa3001296f853b2b9
18
19 PKG_FIXUP:=libtool
20 PKG_INSTALL:=1
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/libxslt
25 SECTION:=libs
26 CATEGORY:=Libraries
27 DEPENDS:=+libxml2
28 TITLE:=Gnome XSLT library
29 URL:=http://xmlsoft.org/XSLT/
30 endef
31
32 define Package/libxslt/description
33 A library for XML transformation using XSLT.
34 endef
35
36 define Package/xsltproc
37 SECTION:=utils
38 CATEGORY:=Utilities
39 DEPENDS:=+libxml2 +libxslt
40 TITLE:=Gnome XSLT xsltproc Utility
41 URL:=http://xmlsoft.org/XSLT/
42 endef
43
44 define Package/xsltproc/description
45 XSLT XML transformation utility
46 endef
47
48 CONFIGURE_ARGS+= \
49 --enable-shared \
50 --enable-static \
51 --without-python \
52 --without-crypto \
53 --without-debug \
54 --without-mem-debug \
55 --without-debugger \
56
57 TARGET_CFLAGS += $(FPIC)
58
59 define Build/InstallDev
60 $(INSTALL_DIR) $(1)/usr/bin $(2)/bin $(1)/usr/include/libxslt $(1)/usr/lib \
61 $(1)/usr/lib/pkgconfig $(2)/share/aclocal
62
63 $(INSTALL_BIN) \
64 $(PKG_INSTALL_DIR)/usr/bin/xslt-config \
65 $(2)/bin/
66
67 ln -sf $(STAGING_DIR)/host/bin/xslt-config $(1)/usr/bin/xslt-config
68
69 $(SED) \
70 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
71 $(2)/bin/xslt-config
72
73 $(INSTALL_DATA) \
74 $(PKG_INSTALL_DIR)/usr/include/libxslt/* \
75 $(1)/usr/include/libxslt/
76
77 $(CP) \
78 $(PKG_INSTALL_DIR)/usr/lib/libxslt.{la,a,so*} \
79 $(1)/usr/lib/
80
81 $(INSTALL_DATA) \
82 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libxslt.pc \
83 $(1)/usr/lib/pkgconfig/
84
85 $(INSTALL_DATA) \
86 $(PKG_INSTALL_DIR)/usr/share/aclocal/* \
87 $(2)/share/aclocal
88 endef
89
90 define Package/libxslt/install
91 $(INSTALL_DIR) $(1)/usr/lib
92 $(CP) \
93 $(PKG_INSTALL_DIR)/usr/lib/libxslt.so.* \
94 $(1)/usr/lib/
95 endef
96
97 define Package/xsltproc/install
98 $(INSTALL_DIR) $(1)/usr/bin
99 $(INSTALL_BIN) \
100 $(PKG_INSTALL_DIR)/usr/bin/xsltproc \
101 $(1)/usr/bin/
102 endef
103
104 $(eval $(call BuildPackage,libxslt))
105 $(eval $(call BuildPackage,xsltproc))