remove UninstallDev
[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 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=libxslt
12 PKG_VERSION:=1.1.14
13 PKG_RELEASE:=1
14
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
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/libxslt
26   SECTION:=libs
27   CATEGORY:=Libraries
28   DEPENDS:=+libxml2
29   TITLE:=Gnome XSLT library
30   URL:=http://xmlsoft.org/XSLT/
31 endef
32
33 define Package/libxslt/description
34         A library for XML transformation using XSLT.
35 endef
36
37 define Package/xsltproc
38   SECTION:=utils
39   CATEGORY:=Utilities
40   DEPENDS:=+libxml2 +libxslt
41   TITLE:=Gnome XSLT xsltproc Utility
42   URL:=http://xmlsoft.org/XSLT/
43 endef
44
45 define Package/xsltproc/description
46         XSLT XML transformation utility
47 endef
48
49 define Build/Configure
50         $(call Build/Configure/Default, \
51                 --enable-shared \
52                 --enable-static \
53                 --with-libxml-prefix="$(STAGING_DIR)/usr" \
54                 --with-libxml-include-prefix="$(STAGING_DIR)/usr/include" \
55                 --with-libxml-libs-prefix="$(STAGING_DIR)/usr/lib" \
56                 --without-python \
57                 --without-crypto \
58                 --without-debug \
59                 --without-mem-debug \
60                 --without-debugger \
61                 , \
62                 CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/libxml2" \
63         )
64 endef
65
66 define Build/Compile
67         $(MAKE) -C $(PKG_BUILD_DIR) \
68                 DESTDIR="$(PKG_INSTALL_DIR)" \
69                 all install
70 endef
71
72 define Build/InstallDev
73         mkdir -p $(1)/usr/bin
74         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/xslt-config $(1)/usr/bin/
75         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/xsltproc $(1)/usr/bin/
76         mkdir -p $(1)/usr/include
77         $(CP) $(PKG_INSTALL_DIR)/usr/include/libxslt $(1)/usr/include/
78         mkdir -p $(1)/usr/lib
79         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libxslt.{a,so*} $(1)/usr/lib/
80         mkdir -p $(1)/usr/lib/pkgconfig
81         $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libxslt.pc $(1)/usr/lib/pkgconfig/
82         $(SED) 's,-I$$$${includedir},,g' $(1)/usr/bin/xslt-config
83         $(SED) 's,-L$$$${libdir},,g' $(1)/usr/bin/xslt-config
84         $(SED) 's,-I$(1)/usr/include,,g' $(1)/usr/bin/xslt-config
85         $(SED) 's,-L$(1)/usr/lib,,g' $(1)/usr/bin/xslt-config
86 endef
87
88 define Package/libxslt/install
89         $(INSTALL_DIR) $(1)/usr/lib
90         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libxslt.so.* $(1)/usr/lib/
91 endef
92
93 define Package/xsltproc/install
94         $(INSTALL_DIR) $(1)/usr/bin
95         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/xsltproc $(1)/usr/bin/
96 endef
97
98 $(eval $(call BuildPackage,libxslt))
99 $(eval $(call BuildPackage,xsltproc))