reorder nas command line parameters (required for bridge operation)
[openwrt.git] / package / zlib / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=zlib
6 PKG_VERSION:=1.2.3
7 PKG_RELEASE:=3
8
9 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
10 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
11 PKG_SOURCE_URL:=http://www.zlib.net @SF/zlib
12 PKG_MD5SUM:=dee233bf288ee795ac96a98cc2e369b6
13 PKG_CAT:=bzcat
14
15 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
16
17 include $(INCLUDE_DIR)/package.mk
18
19 define Package/zlib
20 SECTION:=base
21 CATEGORY:=Libraries
22 TITLE:=Library implementing the deflate compression method
23 DESCRIPTION:=A library implementing the 'deflate' compression method
24 URL:=http://www.zlib.net/
25 endef
26
27 define Build/Configure
28 (cd $(PKG_BUILD_DIR); \
29 $(TARGET_CONFIGURE_OPTS) \
30 LDSHARED="$(TARGET_CC) -shared -Wl,-soname,libz.so.1" \
31 CFLAGS="$(TARGET_CFLAGS) $(CFLAGS_LARGEFILE)" \
32 ./configure \
33 --prefix=/usr \
34 --shared \
35 );
36 endef
37
38 define Build/Compile
39 $(MAKE) -C $(PKG_BUILD_DIR) \
40 $(TARGET_CONFIGURE_OPTS) \
41 CFLAGS="$(TARGET_CFLAGS) $(CFLAGS_LARGEFILE)" \
42 libz.a libz.so
43 mkdir -p $(PKG_INSTALL_DIR)
44 $(MAKE) -C $(PKG_BUILD_DIR) \
45 DESTDIR="$(PKG_INSTALL_DIR)" \
46 install
47 endef
48
49 define Build/InstallDev
50 mkdir -p $(STAGING_DIR)/usr/include
51 $(CP) $(PKG_INSTALL_DIR)/usr/include/z{conf,lib}.h \
52 $(STAGING_DIR)/usr/include/
53 mkdir -p $(STAGING_DIR)/usr/lib
54 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libz.{a,so*} \
55 $(STAGING_DIR)/usr/lib/
56 endef
57
58 define Build/UninstallDev
59 rm -rf $(STAGING_DIR)/usr/include/z{conf,lib}.h \
60 $(STAGING_DIR)/usr/lib/libz.{a,so*}
61 endef
62
63 define Package/zlib/install
64 install -m0755 -d $(1)/usr/lib
65 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libz.so.* $(1)/usr/lib/
66 endef
67
68 $(eval $(call BuildPackage,zlib))
This page took 0.07987 seconds and 5 git commands to generate.