source: freewrt/package/libxslt/Makefile@ aa720e1

freewrt_1_0 freewrt_2_0
Last change on this file since aa720e1 was c8b93bd, checked in by Waldemar Brodkorb <wbx@…>, 19 years ago

major package Makefile cleanup. remove mostly-clean, add licence header, always use RSTRIP varibale for stripping, rename some init scripts, indent

git-svn-id: svn://www.freewrt.org/trunk/freewrt@600 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 3.3 KB
Line 
1# $FreeWRT$
2#-
3# This file is part of the FreeWRT project. FreeWRT is copyrighted
4# material, please see the LICENCE file in the top-level directory
5# or at http://www.freewrt.org/licence for details.
6
7include $(TOPDIR)/rules.mk
8
9PKG_NAME:= libxslt
10PKG_VERSION:= 1.1.14
11PKG_RELEASE:= 1
12PKG_MD5SUM:= db71660bb7d01ccd4e6be990af8d813b
13
14PKG_SOURCE_URL:= http://xmlsoft.org/sources/ \
15 ftp://fr.rpmfind.net/pub/libxml/
16PKG_SOURCE:= $(PKG_NAME)-$(PKG_VERSION).tar.gz
17
18include $(TOPDIR)/mk/package.mk
19
20$(eval $(call PKG_template,LIBXSLT,libxslt,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
21
22$(WRKBUILD)/.configured:
23 (cd $(WRKBUILD); 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 --enable-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$(WRKBUILD)/.built:
64 rm -rf $(WRKINST)
65 mkdir -p $(WRKINST)
66 $(MAKE) -C $(WRKBUILD) \
67 DESTDIR="$(WRKINST)" \
68 all install
69 touch $@
70
71$(IPKG_LIBXSLT):
72 install -m0755 -d $(IDIR_LIBXSLT)/usr/lib
73 $(CP) $(WRKINST)/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: $(WRKBUILD)/.built
78 mkdir -p $(STAGING_DIR)/usr/bin
79 $(CP) $(WRKINST)/usr/bin/xslt-config $(STAGING_DIR)/usr/bin/
80 mkdir -p $(STAGING_DIR)/usr/include
81 $(CP) $(WRKINST)/usr/include/libxslt $(STAGING_DIR)/usr/include/
82 mkdir -p $(STAGING_DIR)/usr/lib
83 $(CP) $(WRKINST)/usr/lib/libxslt.{a,so*} $(STAGING_DIR)/usr/lib/
84 mkdir -p $(STAGING_DIR)/usr/lib/pkgconfig
85 $(CP) $(WRKINST)/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 $(SED) 's,-I$${includedir},,g' $(STAGING_DIR)/usr/lib/pkgconfig/libxslt.pc
91 $(SED) 's,-L$${libdir},,g' $(STAGING_DIR)/usr/lib/pkgconfig/libxslt.pc
92 $(SED) 's,-L$(STAGING_DIR)/usr/lib,,g' $(STAGING_DIR)/usr/lib/pkgconfig/libxslt.pc
93 touch $@
94
95install-dev: $(STAGING_DIR)/usr/lib/libxslt.so
96
97uninstall-dev:
98 rm -rf \
99 $(STAGING_DIR)/usr/bin/xslt-config \
100 $(STAGING_DIR)/usr/include/libxslt \
101 $(STAGING_DIR)/usr/lib/libxslt.{a,so*} \
102 $(STAGING_DIR)/usr/lib/pkgconfig/libxslt.pc \
103
104compile-targets: install-dev
105clean-targets: uninstall-dev
Note: See TracBrowser for help on using the repository browser.