sync dropbear package with whiterussian
[openwrt.git] / openwrt / package / libxslt / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=libxslt
6 PKG_VERSION:=1.1.14
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=db71660bb7d01ccd4e6be990af8d813b
9
10 PKG_SOURCE_URL:=http://xmlsoft.org/sources/ \
11 ftp://fr.rpmfind.net/pub/libxml/
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
13 PKG_CAT:=zcat
14
15 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
16 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
17
18 include $(TOPDIR)/package/rules.mk
19
20 $(eval $(call PKG_template,LIBXSLT,libxslt,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
21
22 $(PKG_BUILD_DIR)/.configured:
23 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
24 $(TARGET_CONFIGURE_OPTS) \
25 CFLAGS="$(strip $(TARGET_CFLAGS))" \
26 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/usr/include/libxml2" \
27 LDFLAGS="-L$(STAGING_DIR)/lib -L$(STAGING_DIR)/usr/lib" \
28 ./configure \
29 --target=$(GNU_TARGET_NAME) \
30 --host=$(GNU_TARGET_NAME) \
31 --build=$(GNU_HOST_NAME) \
32 --program-prefix="" \
33 --program-suffix="" \
34 --prefix=/usr \
35 --exec-prefix=/usr \
36 --bindir=/usr/bin \
37 --datadir=/usr/share \
38 --includedir=/usr/include \
39 --infodir=/usr/share/info \
40 --libdir=/usr/lib \
41 --libexecdir=/usr/lib \
42 --localstatedir=/var \
43 --mandir=/usr/share/man \
44 --sbindir=/usr/sbin \
45 --sysconfdir=/etc \
46 $(DISABLE_LARGEFILE) \
47 $(DISABLE_NLS) \
48 --enable-shared \
49 --enable-static \
50 --disable-rpath \
51 --with-gnu-ld \
52 --with-libxml-prefix="$(STAGING_DIR)/usr" \
53 --with-libxml-include-prefix="$(STAGING_DIR)/usr/include" \
54 --with-libxml-libs-prefix="$(STAGING_DIR)/usr/lib" \
55 --without-python \
56 --without-crypto \
57 --without-debug \
58 --without-mem-debug \
59 --without-debugger \
60 );
61 touch $@
62
63 $(PKG_BUILD_DIR)/.built:
64 rm -rf $(PKG_INSTALL_DIR)
65 mkdir -p $(PKG_INSTALL_DIR)
66 $(MAKE) -C $(PKG_BUILD_DIR) \
67 DESTDIR="$(PKG_INSTALL_DIR)" \
68 all install
69 touch $@
70
71 $(IPKG_LIBXSLT):
72 install -m0755 -d $(IDIR_LIBXSLT)/usr/lib
73 cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libxslt.so.* $(IDIR_LIBXSLT)/usr/lib/
74 $(RSTRIP) $(IDIR_LIBXSLT)
75 $(IPKG_BUILD) $(IDIR_LIBXSLT) $(PACKAGE_DIR)
76
77 $(STAGING_DIR)/usr/lib/libxslt.so: $(PKG_BUILD_DIR)/.built
78 mkdir -p $(STAGING_DIR)/usr/bin
79 cp -fpR $(PKG_INSTALL_DIR)/usr/bin/xslt-config $(STAGING_DIR)/usr/bin/
80 mkdir -p $(STAGING_DIR)/usr/include
81 cp -fpR $(PKG_INSTALL_DIR)/usr/include/libxslt $(STAGING_DIR)/usr/include/
82 mkdir -p $(STAGING_DIR)/usr/lib
83 cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libxslt.{a,so*} $(STAGING_DIR)/usr/lib/
84 mkdir -p $(STAGING_DIR)/usr/lib/pkgconfig
85 cp -fpR $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libxslt.pc $(STAGING_DIR)/usr/lib/pkgconfig/
86 $(SED) 's,-I$${includedir},,g' $(STAGING_DIR)/usr/bin/xslt-config
87 $(SED) 's,-I$(STAGING_DIR)/usr/include,,g' $(STAGING_DIR)/usr/bin/xslt-config
88 $(SED) 's,-L$${libdir},,g' $(STAGING_DIR)/usr/bin/xslt-config
89 $(SED) 's,-L$(STAGING_DIR)/usr/lib,,g' $(STAGING_DIR)/usr/bin/xslt-config
90 touch $@
91
92 install-dev: $(STAGING_DIR)/usr/lib/libxslt.so
93
94 uninstall-dev:
95 rm -rf \
96 $(STAGING_DIR)/usr/bin/xslt-config \
97 $(STAGING_DIR)/usr/include/libxslt \
98 $(STAGING_DIR)/usr/lib/libxslt.{a,so*} \
99 $(STAGING_DIR)/usr/lib/pkgconfig/libxslt.pc \
100
101 compile: install-dev
102 clean: uninstall-dev
103
104 mostlyclean:
105 make -C $(PKG_BUILD_DIR) clean
106 rm $(PKG_BUILD_DIR)/.built
107
This page took 0.049839 seconds and 5 git commands to generate.