33 lines
927 B
Makefile
33 lines
927 B
Makefile
# $NetBSD: Makefile,v 1.8 2005/09/02 23:14:18 rillig Exp $
|
|
#
|
|
|
|
DISTNAME= pbzip2-0.9.2
|
|
CATEGORIES= archivers
|
|
MASTER_SITES= http://compression.ca/pbzip2/
|
|
|
|
MAINTAINER= tech-pkg@NetBSD.org
|
|
HOMEPAGE= http://compression.ca/pbzip2/
|
|
COMMENT= Parallel implementation of the bzip2 block-sorting file compressor
|
|
|
|
PTHREAD_AUTO_VARS= yes
|
|
PTHREAD_OPTS+= require
|
|
|
|
CPPFLAGS+= -D_LARGEFILE_SOURCE=1
|
|
CPPFLAGS+= -D_FILE_OFFSET_BITS=64
|
|
LIBS+= -lbz2
|
|
|
|
INSTALLATION_DIRS= bin
|
|
|
|
do-build:
|
|
cd ${WRKSRC}; \
|
|
${CXX} ${CPPFLAGS} ${CXXFLAGS} ${LDFLAGS} -o pbzip2 pbzip2.cpp ${LIBS}
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/pbzip2 ${PREFIX}/bin
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/pbzip2
|
|
${INSTALL_DATA} ${WRKSRC}/LICENSE.txt ${PREFIX}/share/doc/pbzip2
|
|
${INSTALL_DATA} ${WRKSRC}/README.txt ${PREFIX}/share/doc/pbzip2
|
|
|
|
.include "../../archivers/bzip2/buildlink3.mk"
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|