3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=1b8aab042d40979e456194c468fd72c5
10 PKG_SOURCE_URL
:=@SF
/zlib
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
15 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
17 include $(TOPDIR
)/package
/rules.mk
19 $(eval
$(call PKG_template
,ZLIB
,zlib
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
21 $(PKG_BUILD_DIR
)/.configured
:
22 (cd
$(PKG_BUILD_DIR
); \
23 $(TARGET_CONFIGURE_OPTS
) \
24 LDSHARED
="$(TARGET_CC) -shared -Wl,-soname,libz.so.1" \
25 CFLAGS
="$(TARGET_CFLAGS) $(CFLAGS_LARGEFILE)" \
32 $(PKG_BUILD_DIR
)/.built
:
33 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
34 $(TARGET_CONFIGURE_OPTS
) \
35 CFLAGS
="$(TARGET_CFLAGS) $(CFLAGS_LARGEFILE)" \
37 mkdir
-p
$(PKG_INSTALL_DIR
)
38 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
39 DESTDIR
="$(PKG_INSTALL_DIR)" \
44 install -m0755
-d
$(IDIR_ZLIB
)/usr
/lib
45 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libz.so.
* $(IDIR_ZLIB
)/usr
/lib
/
46 $(RSTRIP
) $(IDIR_ZLIB
)
47 $(IPKG_BUILD
) $(IDIR_ZLIB
) $(PACKAGE_DIR
)
49 $(STAGING_DIR
)/usr
/lib
/libz.so
: $(PKG_BUILD_DIR
)/.built
50 mkdir
-p
$(STAGING_DIR
)/usr
/include
51 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/include/*.h
$(STAGING_DIR
)/usr
/include
52 mkdir
-p
$(STAGING_DIR
)/usr
/lib
53 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/* $(STAGING_DIR
)/usr
/lib
54 touch
$(STAGING_DIR
)/usr
/lib
/libz.so
56 install-dev
: $(STAGING_DIR
)/usr
/lib
/libz.so
59 rm -rf
$(STAGING_DIR
)/usr
/include/zconf.h
60 rm -rf
$(STAGING_DIR
)/usr
/include/zlib.h
61 rm -rf
$(STAGING_DIR
)/usr
/lib
/libz.
*
63 compile-targets
: install-dev
64 clean-targets
: uninstall-dev