3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=dee233bf288ee795ac96a98cc2e369b6
10 PKG_SOURCE_URL
:=http
://www.zlib.net \
12 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
15 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
16 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
18 include $(TOPDIR
)/package
/rules.mk
20 $(eval
$(call PKG_template
,ZLIB
,zlib
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
22 $(PKG_BUILD_DIR
)/.configured
:
23 (cd
$(PKG_BUILD_DIR
); \
24 $(TARGET_CONFIGURE_OPTS
) \
25 LDSHARED
="$(TARGET_CC) -shared -Wl,-soname,libz.so.1" \
26 CFLAGS
="$(TARGET_CFLAGS) $(CFLAGS_LARGEFILE)" \
33 $(PKG_BUILD_DIR
)/.built
:
34 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
35 $(TARGET_CONFIGURE_OPTS
) \
36 CFLAGS
="$(TARGET_CFLAGS) $(CFLAGS_LARGEFILE)" \
38 mkdir
-p
$(PKG_INSTALL_DIR
)
39 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
40 DESTDIR
="$(PKG_INSTALL_DIR)" \
45 install -m0755
-d
$(IDIR_ZLIB
)/usr
/lib
46 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libz.so.
* $(IDIR_ZLIB
)/usr
/lib
/
47 $(RSTRIP
) $(IDIR_ZLIB
)
48 $(IPKG_BUILD
) $(IDIR_ZLIB
) $(PACKAGE_DIR
)
50 $(STAGING_DIR
)/usr
/lib
/libz.so
: $(PKG_BUILD_DIR
)/.built
51 mkdir
-p
$(STAGING_DIR
)/usr
/include
52 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/*.h
$(STAGING_DIR
)/usr
/include
53 mkdir
-p
$(STAGING_DIR
)/usr
/lib
54 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/* $(STAGING_DIR
)/usr
/lib
55 touch
$(STAGING_DIR
)/usr
/lib
/libz.so
57 install-dev
: $(STAGING_DIR
)/usr
/lib
/libz.so
60 rm -rf
$(STAGING_DIR
)/usr
/include/zconf.h
61 rm -rf
$(STAGING_DIR
)/usr
/include/zlib.h
62 rm -rf
$(STAGING_DIR
)/usr
/lib
/libz.
*
64 compile-targets
: install-dev
65 clean-targets
: uninstall-dev