summaryrefslogtreecommitdiff
path: root/package/zlib/Makefile
blob: 4e3cc79cbc0797c6e361f91dd4e9a38c20360f64 (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
# $Id$
#-
# 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.3
PKG_RELEASE:=		5
PKG_MD5SUM:=		dee233bf288ee795ac96a98cc2e369b6
PKG_DESCR:=		implementation of the deflate compression method (library)
PKG_SECTION:=		libs
PKG_URL:=		http://www.zlib.net
PKG_SITES:=		http://www.zlib.net/ \
			${MASTER_SITE_SOURCEFORGE:=zlib/}

DISTFILES:=		${PKG_NAME}-${PKG_VERSION}.tar.bz2

include ${TOPDIR}/mk/package.mk

$(eval $(call PKG_template,ZLIB,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))

CONFIGURE_STYLE=	manual
BUILD_STYLE=		auto
INSTALL_STYLE=		auto

do-configure:
		(cd $(WRKBUILD); \
			$(TARGET_CONFIGURE_OPTS) \
			CFLAGS="$(TARGET_CFLAGS) -fPIC" \
			CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
			LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
			./configure \
			--prefix=$(STAGING_DIR)/usr \
			--includedir=$(STAGING_DIR)/usr/include \
			--shared \
		);

post-install:
	${INSTALL_DIR} ${IDIR_ZLIB}/usr/lib
	${CP} ${WRKBUILD}/libz.so* ${IDIR_ZLIB}/usr/lib

include ${TOPDIR}/mk/pkg-bottom.mk