[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / devel / zlib

File: [cvs.NetBSD.org] / pkgsrc / devel / zlib / Makefile (download)

Revision 1.53, Sun Aug 30 10:54:11 2015 UTC (4 years, 10 months ago) by richard
Branch: MAIN
CVS Tags: pkgsrc-2016Q4-base, pkgsrc-2016Q4, pkgsrc-2016Q3-base, pkgsrc-2016Q3, pkgsrc-2016Q2-base, pkgsrc-2016Q2, pkgsrc-2016Q1-base, pkgsrc-2016Q1, pkgsrc-2015Q4-base, pkgsrc-2015Q4, pkgsrc-2015Q3-base, pkgsrc-2015Q3
Changes since 1.52: +7 -2 lines

use NO_DIVIDE only on i386 SunOS; bump PKGREVISION

# $NetBSD: Makefile,v 1.53 2015/08/30 10:54:11 richard Exp $

DISTNAME=	zlib-1.2.8
PKGREVISION=	3
CATEGORIES=	devel
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=libpng/} \
		http://zlib.net/
DISTFILES=	# empty

MAINTAINER=	joerg@NetBSD.org
HOMEPAGE=	http://www.zlib.net/
COMMENT=	General purpose data compression library
LICENSE=	zlib

USE_LIBTOOL=		yes

PKGCONFIG_OVERRIDE+=	zlib.pc.in

CFLAGS+=		${CPPFLAGS}
LDFLAGS.Cygwin=		-no-undefined

.include "../../mk/bsd.prefs.mk"
.if !empty(MACHINE_ARCH:Mi386)
# use NO_DIVIDE for adler32 if processor does not do division in hardware
# which avoids needing emulation provided by libgcc_s
CPPFLAGS.SunOS+=	-DNO_DIVIDE
.endif
LDFLAGS.SunOS+=	-Wl,-zignore	# avoid unused reference to libgcc_s.so

SUBST_CLASSES+= pc
SUBST_MESSAGE.pc= pkg-config file substitutions
SUBST_STAGE.pc= pre-configure
SUBST_FILES.pc= zlib.pc.in
SUBST_SED.pc=	-e "s,@prefix@,${PREFIX},g"
SUBST_SED.pc+=	-e "s,@exec_prefix@,${PREFIX},g"
SUBST_SED.pc+=	-e "s,@VERSION@,${PKGVERSION_NOREV},g"
SUBST_SED.pc+=	-e "s,@includedir@,${PREFIX}/include,g"
SUBST_SED.pc+=	-e "s,@libdir@,${PREFIX}/lib,g"
SUBST_SED.pc+=	-e "s,@sharedlibdir@,${PREFIX}/lib,g"

INSTALLATION_DIRS=	include lib/pkgconfig ${PKGMANDIR}/man3

do-extract:
	${CP} -r ${FILESDIR} ${WRKSRC}

do-install:
	${LIBTOOL} --mode=install ${INSTALL_LIB} ${WRKSRC}/libz.la ${DESTDIR}${PREFIX}/lib
	${INSTALL_MAN} ${WRKSRC}/zlib.3 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man3
	${INSTALL_DATA} ${WRKSRC}/zconf.h ${DESTDIR}${PREFIX}/include
	${INSTALL_DATA} ${WRKSRC}/zlib.h ${DESTDIR}${PREFIX}/include
	${INSTALL_DATA} ${WRKSRC}/zlib.pc.in ${DESTDIR}${PREFIX}/lib/pkgconfig/zlib.pc

.include "../../mk/bsd.pkg.mk"