blob: 6fe11ae3d3fa25e10231b62877b09b10a709d97f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.
include ${TOPDIR}/rules.mk
PKG_NAME:= zlib
PKG_VERSION:= 1.2.7
PKG_RELEASE:= 2
PKG_MD5SUM:= 2ab442d169156f34c379c968f3f482dd
PKG_DESCR:= implementation of the deflate compression method
PKG_SECTION:= libs
PKG_URL:= http://www.zlib.net/
PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=libpng/zlib/}
PKG_OPTS:= dev
DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
ifeq ($(ADK_STATIC),y)
PKG_OPTS+= libonly
endif
include ${TOPDIR}/mk/package.mk
$(eval $(call PKG_template,ZLIB,zlib,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
CONFIG_STYLE:= manual
CONFIGURE_ENV+= uname=Linux
ifeq ($(ADK_STATIC),)
CONFIGURE_OPTS:= --shared
endif
ALL_TARGET:= libz.a libz.so.$(PKG_VERSION)
do-configure:
(cd $(WRKBUILD); \
uname="Linux" \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS) -fPIC" \
CPPFLAGS="-I$(STAGING_TARGET_DIR)/usr/include" \
LDFLAGS="-L$(STAGING_TARGET_DIR)/usr/lib" \
./configure \
--prefix=/usr \
$(CONFIGURE_OPTS) \
);
zlib-install:
${INSTALL_DIR} ${IDIR_ZLIB}/usr/lib
${CP} ${WRKINST}/usr/lib/libz.so* ${IDIR_ZLIB}/usr/lib
include ${TOPDIR}/mk/pkg-bottom.mk
|