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

File: [cvs.NetBSD.org] / pkgsrc / archivers / pbzip2 / Makefile (download)

Revision 1.24, Tue Sep 11 19:46:59 2012 UTC (8 years, 9 months ago) by asau
Branch: MAIN
CVS Tags: pkgsrc-2014Q1-base, pkgsrc-2014Q1, pkgsrc-2013Q4-base, pkgsrc-2013Q4, pkgsrc-2013Q3-base, pkgsrc-2013Q3, pkgsrc-2013Q2-base, pkgsrc-2013Q2, pkgsrc-2013Q1-base, pkgsrc-2013Q1, pkgsrc-2012Q4-base, pkgsrc-2012Q4, pkgsrc-2012Q3-base, pkgsrc-2012Q3
Changes since 1.23: +1 -3 lines

"user-destdir" is default these days

# $NetBSD: Makefile,v 1.24 2012/09/11 19:46:59 asau Exp $
#

DISTNAME=		pbzip2-1.1.5
CATEGORIES=		archivers
MASTER_SITES=		http://compression.ca/pbzip2/

MAINTAINER=		pkgsrc-users@NetBSD.org
HOMEPAGE=		http://compression.ca/pbzip2/
COMMENT=		Parallel implementation of the bzip2 block-sorting file compressor
#LICENSE=		pbzip2-license

PTHREAD_AUTO_VARS=	yes
PTHREAD_OPTS+=		require

USE_LANGUAGES=		c++

CPPFLAGS+=		-D_LARGEFILE_SOURCE=1
CPPFLAGS+=		-D_FILE_OFFSET_BITS=64
CPPFLAGS+=		-D_POSIX_PTHREAD_SEMANTICS
CPPFLAGS+=		-DUSE_STACKSIZE_CUSTOMIZATION
LIBS+=			-lbz2

INSTALLATION_DIRS=	bin ${PKGMANDIR}/man1 share/doc/pbzip2

do-build:
	cd ${WRKSRC} && \
	${CXX} ${CPPFLAGS} ${CXXFLAGS} ${LDFLAGS} -o pbzip2 pbzip2.cpp \
		BZ2StreamScanner.cpp ${LIBS}

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/pbzip2 \
		${DESTDIR}${PREFIX}/bin
	${LN} -s ${DESTDIR}${PREFIX}/bin/pbzip2 \
		${DESTDIR}${PREFIX}/bin/pbunzip2
	${LN} -s ${DESTDIR}${PREFIX}/bin/pbzip2 \
		${DESTDIR}${PREFIX}/bin/pbzcat
	${INSTALL_DATA} ${WRKSRC}/pbzip2.1 \
		${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
	${INSTALL_DATA} ${WRKSRC}/COPYING \
		${DESTDIR}${PREFIX}/share/doc/pbzip2
	${INSTALL_DATA} ${WRKSRC}/README \
		${DESTDIR}${PREFIX}/share/doc/pbzip2

.include "../../archivers/bzip2/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"