2013-06-13 18:25:19 +02:00
|
|
|
# $NetBSD: Makefile,v 1.19 2013/06/13 16:25:19 jperkin Exp $
|
2007-08-16 00:26:29 +02:00
|
|
|
#
|
|
|
|
|
2010-07-09 14:03:55 +02:00
|
|
|
DISTNAME= bsdtar-2.8.4
|
2013-06-13 18:25:19 +02:00
|
|
|
PKGREVISION= 1
|
2007-08-16 00:26:29 +02:00
|
|
|
CATEGORIES= archivers
|
2010-02-20 04:56:14 +01:00
|
|
|
MASTER_SITES= # empty
|
2007-08-16 00:26:29 +02:00
|
|
|
DISTFILES= # empty
|
|
|
|
|
|
|
|
MAINTAINER= joerg@NetBSD.org
|
2010-02-20 04:56:14 +01:00
|
|
|
HOMEPAGE= http://code.google.com/p/libarchive/
|
2007-08-16 00:26:29 +02:00
|
|
|
COMMENT= Fast multi-format tape archiver
|
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
# Explicitly do not depend on libtool as this can be used
|
|
|
|
# as bootstrap dependency.
|
|
|
|
#
|
|
|
|
#USE_LIBTOOL= yes
|
|
|
|
|
|
|
|
.include "../../archivers/bzip2/builtin.mk"
|
|
|
|
.include "../../devel/zlib/builtin.mk"
|
|
|
|
|
|
|
|
.if empty(USE_BUILTIN.bzip2:M[yY][eE][sS])
|
|
|
|
CPPFLAGS+= -I${WRKDIR}/bzip2
|
|
|
|
LDFLAGS+= -L${WRKDIR}/bzip2
|
|
|
|
.endif
|
|
|
|
.if empty(USE_BUILTIN.zlib:M[yY][eE][sS])
|
|
|
|
CPPFLAGS+= -I${WRKDIR}/zlib
|
|
|
|
LDFLAGS+= -L${WRKDIR}/zlib
|
|
|
|
.endif
|
|
|
|
|
|
|
|
FILESDIR.bzip2?= ${.CURDIR}/../../archivers/bzip2/files
|
|
|
|
FILESDIR.libarchive?= ${.CURDIR}/../../archivers/libarchive/files
|
|
|
|
FILESDIR.zlib?= ${.CURDIR}/../../devel/zlib/files
|
|
|
|
|
2010-02-20 04:56:14 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-bsdtar=static --disable-cpio \
|
2013-06-13 18:25:19 +02:00
|
|
|
--disable-shared --without-xml2 --without-expat \
|
|
|
|
--without-openssl
|
2007-08-16 00:26:29 +02:00
|
|
|
|
|
|
|
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
|
|
|
|
|
|
|
|
do-extract:
|
|
|
|
.if empty(USE_BUILTIN.bzip2:M[yY][eE][sS])
|
2009-07-17 06:47:27 +02:00
|
|
|
${RUN}${CP} -R ${FILESDIR.bzip2} ${WRKDIR}/bzip2
|
2007-08-16 00:26:29 +02:00
|
|
|
.endif
|
|
|
|
.if empty(USE_BUILTIN.zlib:M[yY][eE][sS])
|
2009-07-17 06:47:27 +02:00
|
|
|
${RUN}${CP} -R ${FILESDIR.zlib} ${WRKDIR}/zlib
|
2007-08-16 00:26:29 +02:00
|
|
|
.endif
|
2009-07-17 06:47:27 +02:00
|
|
|
${RUN}${CP} -R ${FILESDIR.libarchive} ${WRKSRC}
|
2007-08-16 00:26:29 +02:00
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
.if empty(USE_BUILTIN.bzip2:M[yY][eE][sS])
|
|
|
|
cd ${WRKDIR}/bzip2 && ${BUILD_MAKE_CMD} libbz2.a
|
|
|
|
.endif
|
|
|
|
.if empty(USE_BUILTIN.zlib:M[yY][eE][sS])
|
|
|
|
cd ${WRKDIR}/zlib && ${BUILD_MAKE_CMD} libz.a
|
|
|
|
.endif
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/bsdtar ${DESTDIR}${PREFIX}/bin
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/tar/bsdtar.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
|
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|