3 include $(TOPDIR
)/rules.mk
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 \
13 PKG_MD5SUM
:=dee233bf288ee795ac96a98cc2e369b6
16 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
18 include $(TOPDIR
)/package
/rules.mk
24 TITLE
:=Library implementing the deflate compression method
25 DESCRIPTION
:=A library implementing the
'deflate' compression method
26 URL
:=http
://www.zlib.net
/
29 define Build
/Configure
30 (cd
$(PKG_BUILD_DIR
); \
31 $(TARGET_CONFIGURE_OPTS
) \
32 LDSHARED
="$(TARGET_CC) -shared -Wl,-soname,libz.so.1" \
33 CFLAGS
="$(TARGET_CFLAGS) $(CFLAGS_LARGEFILE)" \
41 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
42 $(TARGET_CONFIGURE_OPTS
) \
43 CFLAGS
="$(TARGET_CFLAGS) $(CFLAGS_LARGEFILE)" \
45 mkdir
-p
$(PKG_INSTALL_DIR
)
46 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
47 DESTDIR
="$(PKG_INSTALL_DIR)" \
51 define Package
/zlib
/install
52 install -m0755
-d
$(1)/usr
/lib
53 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libz.so.
* $(1)/usr
/lib
/
56 $(STAGING_DIR
)/usr
/lib
/libz.so
: $(PKG_BUILD_DIR
)/.built
57 mkdir
-p
$(STAGING_DIR
)/usr
/include
58 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/*.h
$(STAGING_DIR
)/usr
/include
59 mkdir
-p
$(STAGING_DIR
)/usr
/lib
60 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/* $(STAGING_DIR
)/usr
/lib
61 touch
$(STAGING_DIR
)/usr
/lib
/libz.so
63 install-dev
: $(STAGING_DIR
)/usr
/lib
/libz.so
66 rm -rf
$(STAGING_DIR
)/usr
/include/zconf.h
67 rm -rf
$(STAGING_DIR
)/usr
/include/zlib.h
68 rm -rf
$(STAGING_DIR
)/usr
/lib
/libz.
*
70 $(eval
$(call BuildPackage
,zlib
))