2017-11-25 16:48:49 +01:00
|
|
|
# $NetBSD: Makefile,v 1.24 2017/11/25 15:48:49 bsiegert Exp $
|
2007-08-16 00:26:29 +02:00
|
|
|
|
2015-01-17 13:44:47 +01:00
|
|
|
.include "../../archivers/libarchive/Makefile.common"
|
2017-11-25 16:48:49 +01:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
2007-08-16 00:26:29 +02:00
|
|
|
|
2015-01-17 13:44:47 +01:00
|
|
|
PKGNAME= ${DISTNAME:S/libarchive/bsdtar/}
|
2007-08-16 00:26:29 +02:00
|
|
|
COMMENT= Fast multi-format tape archiver
|
|
|
|
|
|
|
|
# Explicitly do not depend on libtool as this can be used
|
|
|
|
# as bootstrap dependency.
|
|
|
|
#USE_LIBTOOL= yes
|
2015-01-17 13:44:47 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-bsdtar=static
|
|
|
|
CONFIGURE_ARGS+= --disable-bsdcpio
|
|
|
|
CONFIGURE_ARGS+= --disable-shared
|
2017-11-25 16:48:49 +01:00
|
|
|
.if "${OS_VARIANT}" == "chromeos"
|
|
|
|
CONFIGURE_ARGS+= --disable-acl
|
|
|
|
.endif
|
2007-08-16 00:26:29 +02:00
|
|
|
|
|
|
|
.include "../../archivers/bzip2/builtin.mk"
|
2016-01-27 13:26:11 +01:00
|
|
|
.include "../../archivers/xz/builtin.mk"
|
2007-08-16 00:26:29 +02:00
|
|
|
.include "../../devel/zlib/builtin.mk"
|
2013-06-13 23:36:46 +02:00
|
|
|
CHECK_BUILTIN.openssl:= yes
|
|
|
|
.include "../../security/openssl/builtin.mk"
|
|
|
|
CHECK_BUILTIN.openssl:= no
|
2007-08-16 00:26:29 +02:00
|
|
|
|
|
|
|
.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
|
2013-06-13 23:36:46 +02:00
|
|
|
.if empty(USE_BUILTIN.openssl:M[yY][eE][sS])
|
|
|
|
CONFIGURE_ARGS+= --without-openssl
|
|
|
|
.endif
|
2016-01-27 13:26:11 +01:00
|
|
|
.if empty(USE_BUILTIN.xz:M[yY][eE][sS])
|
|
|
|
CONFIGURE_ARGS+= --without-lzma
|
|
|
|
.endif
|
2007-08-16 00:26:29 +02:00
|
|
|
|
|
|
|
FILESDIR.bzip2?= ${.CURDIR}/../../archivers/bzip2/files
|
|
|
|
FILESDIR.libarchive?= ${.CURDIR}/../../archivers/libarchive/files
|
|
|
|
FILESDIR.zlib?= ${.CURDIR}/../../devel/zlib/files
|
|
|
|
|
|
|
|
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
|
|
|
|
|
2014-07-18 13:08:29 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if ${OS_VARIANT} == "SCOOSR5"
|
2015-01-17 13:44:47 +01:00
|
|
|
# SCO OpenServer 5.0.7/3.2 has windows.h, and configure expects it for MS Windows.
|
2014-07-18 13:08:29 +02:00
|
|
|
CONFIGURE_ENV+= ac_cv_header_windows_h=no
|
|
|
|
.endif
|
|
|
|
|
2007-08-16 00:26:29 +02:00
|
|
|
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"
|