source: freewrt/package/liblzo/Makefile@ b917538

freewrt_1_0 freewrt_2_0
Last change on this file since b917538 was b917538, checked in by Waldemar Brodkorb <wbx@…>, 19 years ago
  • sync with changes in trunk
  • lzo2 instead of lzo
  • fix tinc/vtun build
  • security update for openssh/openssl
  • update for iproute2,openvpn,openntpd, iptables and ipp, openswan
  • disable ipv6 in busybox, autoselect this feature for all ipv6 related packages
  • add better startup scripts for openssh and openntpd

git-svn-id: svn://www.freewrt.org/branches/freewrt_1_0@800 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 2.1 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:= lzo
10PKG_VERSION:= 2.02
11PKG_RELEASE:= 1
12PKG_MD5SUM:= 6760e5819f4238328709bf93bf10071c
13
14PKG_SOURCE_URL:= http://www.oberhumer.com/opensource/lzo/download/
15
16include $(TOPDIR)/mk/package.mk
17
18$(eval $(call PKG_template,LIBLZO,liblzo,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
19
20$(WRKBUILD)/.configured:
21 (cd $(WRKBUILD); rm -rf config.{cache,status} ; \
22 $(TARGET_CONFIGURE_OPTS) \
23 CFLAGS="$(strip $(TARGET_CFLAGS))" \
24 CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
25 LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
26 ./configure \
27 --target=$(GNU_TARGET_NAME) \
28 --host=$(GNU_TARGET_NAME) \
29 --build=$(GNU_HOST_NAME) \
30 --program-prefix="" \
31 --program-suffix="" \
32 --prefix=/usr \
33 --exec-prefix=/usr \
34 --bindir=/usr/bin \
35 --datadir=/usr/share \
36 --includedir=/usr/include \
37 --infodir=/usr/share/info \
38 --libdir=/usr/lib \
39 --libexecdir=/usr/lib \
40 --localstatedir=/var \
41 --mandir=/usr/share/man \
42 --sbindir=/usr/sbin \
43 --sysconfdir=/etc \
44 --enable-largefile \
45 --disable-nls \
46 --enable-shared \
47 --enable-static \
48 );
49 touch $@
50
51$(WRKBUILD)/.built:
52 rm -rf $(WRKINST)
53 mkdir -p $(WRKINST)
54 $(MAKE) -C $(WRKBUILD) \
55 CFLAGS_O="$(TARGET_CFLAGS)" \
56 DESTDIR="$(WRKINST)" \
57 all install
58 touch $@
59
60$(IPKG_LIBLZO):
61 install -d -m0755 $(IDIR_LIBLZO)/usr/lib
62 $(CP) $(WRKINST)/usr/lib/liblzo2.so.* $(IDIR_LIBLZO)/usr/lib
63 $(RSTRIP) $(IDIR_LIBLZO)
64 $(IPKG_BUILD) $(IDIR_LIBLZO) $(PACKAGE_DIR)
65
66$(STAGING_DIR)/usr/lib/liblzo2.so: $(WRKBUILD)/.built
67 mkdir -p $(STAGING_DIR)/usr/include
68 $(CP) $(WRKINST)/usr/include/lzo $(STAGING_DIR)/usr/include/
69 mkdir -p $(STAGING_DIR)/usr/lib
70 $(CP) $(WRKINST)/usr/lib/liblzo2.{a,so*} $(STAGING_DIR)/usr/lib/
71 touch $@
72
73install-dev: $(STAGING_DIR)/usr/lib/liblzo2.so
74
75uninstall-dev:
76 rm -rf \
77 $(STAGING_DIR)/usr/include/lzo \
78 $(STAGING_DIR)/usr/lib/liblzo2.{a,so*} \
79
80compile-targets: install-dev
81clean-targets: uninstall-dev
Note: See TracBrowser for help on using the repository browser.