[packages] zaptel: update and fix kernel module build for 2.6.34
[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/libexslt
37 SECTION:=libs
38 CATEGORY:=Libraries
39 DEPENDS:=+libxslt
40 TITLE:=Gnome XSLT library Extention
41 URL:=http://xmlsoft.org/XSLT/EXSLT/
42 endef
43
44 define Package/libexslt/description
45 A extention for XSLT.
46 endef
47
48 define Package/xsltproc
49 SECTION:=utils
50 CATEGORY:=Utilities
51 DEPENDS:=+libxml2 +libxslt +libexslt
52 TITLE:=Gnome XSLT xsltproc Utility
53 URL:=http://xmlsoft.org/XSLT/
54 endef
55
56 define Package/xsltproc/description
57 XSLT XML transformation utility
58 endef
59
60 CONFIGURE_ARGS+= \
61 --enable-shared \
62 --enable-static \
63 --without-python \
64 --without-crypto \
65 --without-debug \
66 --without-mem-debug \
67 --without-debugger \
68
69 TARGET_CFLAGS += $(FPIC)
70
71 define Build/InstallDev
72 $(INSTALL_DIR) $(1)/usr/bin $(2)/bin $(1)/usr/include/libxslt $(1)/usr/lib \
73 $(1)/usr/lib/pkgconfig $(2)/share/aclocal
74
75 $(INSTALL_BIN) \
76 $(PKG_INSTALL_DIR)/usr/bin/xslt-config \
77 $(2)/bin/
78
79 ln -sf $(STAGING_DIR)/host/bin/xslt-config $(1)/usr/bin/xslt-config
80
81 $(SED) \
82 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
83 $(2)/bin/xslt-config
84
85 $(INSTALL_DATA) \
86 $(PKG_INSTALL_DIR)/usr/include/libxslt/* \
87 $(1)/usr/include/libxslt/
88
89 $(CP) \
90 $(PKG_INSTALL_DIR)/usr/lib/libxslt.{la,a,so*} \
91 $(1)/usr/lib/
92
93 $(INSTALL_DATA) \
94 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libxslt.pc \
95 $(1)/usr/lib/pkgconfig/
96
97 $(INSTALL_DATA) \
98 $(PKG_INSTALL_DIR)/usr/share/aclocal/* \
99 $(2)/share/aclocal
100 endef
101
102 define Package/libxslt/install
103 $(INSTALL_DIR) $(1)/usr/lib
104 $(CP) \
105 $(PKG_INSTALL_DIR)/usr/lib/libxslt.so.* \
106 $(1)/usr/lib/
107 endef
108
109 define Package/libexslt/install
110 $(INSTALL_DIR) $(1)/usr/lib
111 $(CP) \
112 $(PKG_INSTALL_DIR)/usr/lib/libexslt.so.* \
113 $(1)/usr/lib/
114 endef
115
116 define Package/xsltproc/install
117 $(INSTALL_DIR) $(1)/usr/bin
118 $(INSTALL_BIN) \
119 $(PKG_INSTALL_DIR)/usr/bin/xsltproc \
120 $(1)/usr/bin/
121 endef
122
123 $(eval $(call BuildPackage,libxslt))
124 $(eval $(call BuildPackage,libexslt))
125 $(eval $(call BuildPackage,xsltproc))