nuke $Id$ in /packages as well
[packages.git] / libs / libxslt / Makefile
1 #
2 # Copyright (C) 2006 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.24
12 PKG_RELEASE:=2
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:=e83ec5d27fc4c10c6f612879bea9a153
18 PKG_FIXUP:=libtool
19
20 include $(INCLUDE_DIR)/package.mk
21
22 PKG_INSTALL=1
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 define Build/Configure
49         $(call Build/Configure/Default, \
50                 --enable-shared \
51                 --enable-static \
52                 --without-python \
53                 --without-crypto \
54                 --without-debug \
55                 --without-mem-debug \
56                 --without-debugger \
57         )
58 endef
59
60 TARGET_CFLAGS += $(FPIC)
61
62 define Build/InstallDev
63         $(INSTALL_DIR) $(1)/usr/bin $(2)/bin $(1)/usr/include/libxslt $(1)/usr/lib \
64                 $(1)/usr/lib/pkgconfig $(2)/share/aclocal
65
66         $(INSTALL_BIN) \
67                 $(PKG_INSTALL_DIR)/usr/bin/xslt-config \
68                 $(2)/bin/
69
70         ln -sf $(STAGING_DIR)/host/bin/xslt-config $(1)/usr/bin/xslt-config
71
72         $(SED) \
73                 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
74                 $(2)/bin/xslt-config
75
76         $(INSTALL_DATA) \
77                 $(PKG_INSTALL_DIR)/usr/include/libxslt/* \
78                 $(1)/usr/include/libxslt/
79
80         $(CP) \
81                 $(PKG_INSTALL_DIR)/usr/lib/libxslt.{la,a,so*} \
82                 $(1)/usr/lib/
83
84         $(INSTALL_DATA) \
85                 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libxslt.pc \
86                 $(1)/usr/lib/pkgconfig/
87
88         $(INSTALL_DATA) \
89                 $(PKG_INSTALL_DIR)/usr/share/aclocal/* \
90                 $(2)/share/aclocal
91 endef
92
93 define Package/libxslt/install
94         $(INSTALL_DIR) $(1)/usr/lib
95         $(CP) \
96                 $(PKG_INSTALL_DIR)/usr/lib/libxslt.so.* \
97                 $(1)/usr/lib/
98 endef
99
100 define Package/xsltproc/install
101         $(INSTALL_DIR) $(1)/usr/bin
102         $(INSTALL_BIN) \
103                 $(PKG_INSTALL_DIR)/usr/bin/xsltproc \
104                 $(1)/usr/bin/
105 endef
106
107 $(eval $(call BuildPackage,libxslt))
108 $(eval $(call BuildPackage,xsltproc))