source: freewrt/package/zlib/Makefile@ 481c089

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

mini-httpd needs zlib

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

  • Property mode set to 100644
File size: 1.7 KB
RevLine 
[c8b93bd]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.
[475ad56]6
7include $(TOPDIR)/rules.mk
8
[c8b93bd]9PKG_NAME:= zlib
10PKG_VERSION:= 1.2.3
11PKG_RELEASE:= 3
12PKG_MD5SUM:= dee233bf288ee795ac96a98cc2e369b6
[475ad56]13
[c8b93bd]14PKG_SOURCE_URL:= http://www.zlib.net \
15 @SF/zlib
16PKG_SOURCE:= $(PKG_NAME)-$(PKG_VERSION).tar.bz2
[475ad56]17
18
[c8b93bd]19include $(TOPDIR)/mk/package.mk
[475ad56]20
21$(eval $(call PKG_template,ZLIB,zlib,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
22
[d419478]23$(WRKBUILD)/.configured:
24 (cd $(WRKBUILD); \
[475ad56]25 $(TARGET_CONFIGURE_OPTS) \
26 LDSHARED="$(TARGET_CC) -shared -Wl,-soname,libz.so.1" \
27 CFLAGS="$(TARGET_CFLAGS) $(CFLAGS_LARGEFILE)" \
28 ./configure \
29 --prefix=/usr \
30 --shared \
31 );
32 touch $@
33
[d419478]34$(WRKBUILD)/.built:
35 $(MAKE) -C $(WRKBUILD) \
[475ad56]36 $(TARGET_CONFIGURE_OPTS) \
37 CFLAGS="$(TARGET_CFLAGS) $(CFLAGS_LARGEFILE)" \
38 libz.a libz.so
[c8b93bd]39 $(INSTALL_DIR) $(WRKINST)
[d419478]40 $(MAKE) -C $(WRKBUILD) \
41 DESTDIR="$(WRKINST)" \
[475ad56]42 install
43 touch $@
44
45$(IPKG_ZLIB):
[c8b93bd]46 $(INSTALL_DIR) $(IDIR_ZLIB)/usr/lib
[481c089]47 $(CP) $(WRKINST)/usr/lib/libz.so* $(IDIR_ZLIB)/usr/lib/
[475ad56]48 $(RSTRIP) $(IDIR_ZLIB)
49 $(IPKG_BUILD) $(IDIR_ZLIB) $(PACKAGE_DIR)
50
[d419478]51$(STAGING_DIR)/usr/lib/libz.so: $(WRKBUILD)/.built
[c8b93bd]52 $(INSTALL_DIR) $(STAGING_DIR)/usr/include
53 $(INSTALL_DIR) $(STAGING_DIR)/usr/lib
54 $(INSTALL_DATA) $(WRKINST)/usr/include/zconf.h $(STAGING_DIR)/usr/include
55 $(INSTALL_DATA) $(WRKINST)/usr/include/zlib.h $(STAGING_DIR)/usr/include
[5142240]56 $(CP) $(WRKINST)/usr/lib/libz* $(STAGING_DIR)/usr/lib
[c8b93bd]57
58compile-targets: install-dev
59clean-targets: uninstall-dev
[475ad56]60
61install-dev: $(STAGING_DIR)/usr/lib/libz.so
62
63uninstall-dev:
64 rm -rf $(STAGING_DIR)/usr/include/zconf.h
65 rm -rf $(STAGING_DIR)/usr/include/zlib.h
66 rm -rf $(STAGING_DIR)/usr/lib/libz.*
Note: See TracBrowser for help on using the repository browser.