2004-03-24 18:20:48 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= libarchive
|
2013-03-23 18:09:43 +01:00
|
|
|
PORTVERSION= 3.1.2
|
2014-06-22 22:11:54 +02:00
|
|
|
PORTREVISION= 2
|
2004-08-23 18:37:49 +02:00
|
|
|
PORTEPOCH= 1
|
2004-06-16 17:20:49 +02:00
|
|
|
CATEGORIES= archivers
|
2013-03-23 18:09:43 +01:00
|
|
|
MASTER_SITES= http://libarchive.org/downloads/
|
2004-03-24 18:20:48 +01:00
|
|
|
|
|
|
|
MAINTAINER= glewis@FreeBSD.org
|
|
|
|
COMMENT= Library to create and read several streaming archive formats
|
|
|
|
|
2013-03-23 18:09:43 +01:00
|
|
|
OPTIONS_DEFINE= LIBXML2 LZO NETTLE
|
|
|
|
OPTIONS_DEFAULT=LIBXML2 LZO
|
2012-07-31 20:46:09 +02:00
|
|
|
|
|
|
|
LIBXML2_DESC= Support writing xar via libxml2
|
2013-03-23 18:09:43 +01:00
|
|
|
LZO_DESC= Support lzo compression via liblzo2
|
2012-07-31 20:46:09 +02:00
|
|
|
NETTLE_DESC= Use Nettle instead of OpenSSL
|
2012-02-25 23:41:56 +01:00
|
|
|
|
2014-06-22 22:11:54 +02:00
|
|
|
USES= libtool pathfix
|
2004-08-23 18:37:49 +02:00
|
|
|
GNU_CONFIGURE= yes
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
USE_LDCONFIG= yes
|
2012-07-31 20:46:09 +02:00
|
|
|
PATCH_STRIP= -p1
|
2012-02-25 23:41:56 +01:00
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --without-expat
|
2004-03-24 18:20:48 +01:00
|
|
|
|
2009-05-24 18:55:25 +02:00
|
|
|
PLIST_FILES= bin/bsdcpio \
|
|
|
|
bin/bsdtar \
|
2006-06-21 00:33:47 +02:00
|
|
|
include/archive.h \
|
2004-03-24 18:20:48 +01:00
|
|
|
include/archive_entry.h \
|
2005-10-13 19:09:27 +02:00
|
|
|
lib/libarchive.a \
|
|
|
|
lib/libarchive.so \
|
2014-06-22 22:11:54 +02:00
|
|
|
lib/libarchive.so.13 \
|
|
|
|
lib/libarchive.so.13.1.2 \
|
2014-01-03 19:35:01 +01:00
|
|
|
libdata/pkgconfig/libarchive.pc \
|
|
|
|
man/man1/bsdcpio.1.gz \
|
|
|
|
man/man1/bsdtar.1.gz \
|
|
|
|
man/man3/archive_entry.3.gz \
|
|
|
|
man/man3/archive_entry_acl.3.gz \
|
|
|
|
man/man3/archive_entry_linkify.3.gz \
|
|
|
|
man/man3/archive_entry_paths.3.gz \
|
|
|
|
man/man3/archive_entry_perms.3.gz \
|
|
|
|
man/man3/archive_entry_stat.3.gz \
|
|
|
|
man/man3/archive_entry_time.3.gz \
|
|
|
|
man/man3/archive_read.3.gz \
|
|
|
|
man/man3/archive_read_data.3.gz \
|
|
|
|
man/man3/archive_read_disk.3.gz \
|
|
|
|
man/man3/archive_read_extract.3.gz \
|
|
|
|
man/man3/archive_read_filter.3.gz \
|
|
|
|
man/man3/archive_read_format.3.gz \
|
|
|
|
man/man3/archive_read_free.3.gz \
|
|
|
|
man/man3/archive_read_header.3.gz \
|
|
|
|
man/man3/archive_read_new.3.gz \
|
|
|
|
man/man3/archive_read_open.3.gz \
|
|
|
|
man/man3/archive_read_set_options.3.gz \
|
|
|
|
man/man3/archive_util.3.gz \
|
|
|
|
man/man3/archive_write.3.gz \
|
|
|
|
man/man3/archive_write_blocksize.3.gz \
|
|
|
|
man/man3/archive_write_data.3.gz \
|
|
|
|
man/man3/archive_write_disk.3.gz \
|
|
|
|
man/man3/archive_write_filter.3.gz \
|
|
|
|
man/man3/archive_write_finish_entry.3.gz \
|
|
|
|
man/man3/archive_write_format.3.gz \
|
|
|
|
man/man3/archive_write_free.3.gz \
|
|
|
|
man/man3/archive_write_header.3.gz \
|
|
|
|
man/man3/archive_write_new.3.gz \
|
|
|
|
man/man3/archive_write_open.3.gz \
|
|
|
|
man/man3/archive_write_set_options.3.gz \
|
|
|
|
man/man3/libarchive.3.gz \
|
|
|
|
man/man3/libarchive_changes.3.gz \
|
|
|
|
man/man3/libarchive_internals.3.gz \
|
|
|
|
man/man5/cpio.5.gz \
|
|
|
|
man/man5/libarchive-formats.5.gz \
|
|
|
|
man/man5/mtree.5.gz \
|
|
|
|
man/man5/tar.5.gz
|
2004-03-24 18:20:48 +01:00
|
|
|
|
2010-03-21 22:29:18 +01:00
|
|
|
CFLAGS+= "-I${LOCALBASE}/include"
|
2011-08-18 05:35:19 +02:00
|
|
|
CPPFLAGS+= "-I${LOCALBASE}/include"
|
2011-09-24 00:26:39 +02:00
|
|
|
LDFLAGS+= "-L${LOCALBASE}/lib"
|
2007-09-20 18:47:33 +02:00
|
|
|
|
2014-07-03 21:06:07 +02:00
|
|
|
LIBXML2_USE= GNOME=libxml2
|
|
|
|
LIBXML2_CONFIGURE_WITH= xml2
|
|
|
|
LIBXML2_CFLAGS= -DHAVE_BSDXML_H=1
|
|
|
|
LIBXML2_LDFLAGS= -lbsdxml
|
2012-02-25 23:41:56 +01:00
|
|
|
|
2014-07-03 21:06:07 +02:00
|
|
|
LZO_LIB_DEPENDS= liblzo2.so:${PORTSDIR}/archivers/lzo2
|
|
|
|
LZO_CONFIGURE_WITH= lzo2
|
2012-02-25 23:41:56 +01:00
|
|
|
|
2014-07-16 09:53:29 +02:00
|
|
|
NETTLE_LIB_DEPENDS= libnettle.so:${PORTSDIR}/security/nettle
|
2014-07-03 21:06:07 +02:00
|
|
|
NETTLE_CONFIGURE_WITH= nettle
|
|
|
|
NETTLE_CONFIGURE_ON= --without-openssl
|
|
|
|
NETTLE_USE_OFF= OPENSSL=yes
|
|
|
|
NETTLE_CONFIGURE_OFF= --with-openssl
|
2008-06-17 07:12:47 +02:00
|
|
|
|
2012-02-25 23:41:56 +01:00
|
|
|
check:
|
|
|
|
(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} check)
|
|
|
|
|
2014-01-13 08:23:43 +01:00
|
|
|
.include <bsd.port.mk>
|