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 @SF
/zlib
12 PKG_MD5SUM
:=dee233bf288ee795ac96a98cc2e369b6
15 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
17 include $(TOPDIR
)/package
/rules.mk
22 TITLE
:=Library implementing the deflate compression method
23 DESCRIPTION
:=A library implementing the
'deflate' compression method
24 URL
:=http
://www.zlib.net
/
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)" \
39 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
40 $(TARGET_CONFIGURE_OPTS
) \
41 CFLAGS
="$(TARGET_CFLAGS) $(CFLAGS_LARGEFILE)" \
43 mkdir
-p
$(PKG_INSTALL_DIR
)
44 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
45 DESTDIR
="$(PKG_INSTALL_DIR)" \
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
/
58 define Build
/UninstallDev
59 rm -rf
$(STAGING_DIR
)/usr
/include/z
{conf
,lib
}.h \
60 $(STAGING_DIR
)/usr
/lib
/libz.
{a
,so
*}
63 define Package
/zlib
/install
64 install -m0755
-d
$(1)/usr
/lib
65 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libz.so.
* $(1)/usr
/lib
/
68 $(eval
$(call BuildPackage
,zlib
))