freebsd-ports/archivers/libarchive/Makefile

111 lines
3 KiB
Makefile
Raw Normal View History

# $FreeBSD$
PORTNAME= libarchive
PORTVERSION= 3.3.1
PORTEPOCH= 1
2004-06-16 17:20:49 +02:00
CATEGORIES= archivers
MASTER_SITES= http://libarchive.org/downloads/
MAINTAINER= glewis@FreeBSD.org
COMMENT= Library to create and read several streaming archive formats
2016-10-25 06:08:08 +02:00
LICENSE= BSD2CLAUSE
LIB_DEPENDS= libexpat.so:textproc/expat2
OPTIONS_DEFINE= LZ4 LZO NETTLE
OPTIONS_DEFAULT=LZ4 LZO
LZ4_DESC= Support lz4 compression via liblz4
LZO_DESC= Support lzo compression via liblzo2
NETTLE_DESC= Use Nettle instead of OpenSSL
USES= cpe iconv libtool pathfix
GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
USE_LDCONFIG= yes
CONFIGURE_ARGS= --without-xml2
PLIST_FILES= bin/bsdcat \
bin/bsdcpio \
bin/bsdtar \
include/archive.h \
include/archive_entry.h \
2005-10-13 19:09:27 +02:00
lib/libarchive.a \
lib/libarchive.so \
lib/libarchive.so.13 \
lib/libarchive.so.13.3.1 \
2014-01-03 19:35:01 +01:00
libdata/pkgconfig/libarchive.pc \
man/man1/bsdcat.1.gz \
2014-01-03 19:35:01 +01:00
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_add_passphrase.3.gz \
2014-01-03 19:35:01 +01:00
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/archive_write_set_passphrase.3.gz \
2014-01-03 19:35:01 +01:00
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
2010-03-21 22:29:18 +01:00
CFLAGS+= "-I${LOCALBASE}/include"
CPPFLAGS+= "-I${LOCALBASE}/include"
LDFLAGS+= "-L${LOCALBASE}/lib"
LZO_LIB_DEPENDS= liblzo2.so:archivers/lzo2
LZO_CONFIGURE_WITH= lzo2
LZ4_LIB_DEPENDS= liblz4.so:archivers/liblz4
LZ4_CONFIGURE_WITH= lz4
NETTLE_LIB_DEPENDS= libnettle.so:security/nettle
NETTLE_CONFIGURE_WITH= nettle
NETTLE_CONFIGURE_ON= --without-openssl
NETTLE_USES_OFF= ssl
NETTLE_CONFIGURE_OFF= --with-openssl
.include <bsd.port.pre.mk>
.if empty(ICONV_LIB)
CONFIGURE_ENV+= ac_cv_header_localcharset_h=no \
ac_cv_func_locale_charset=no \
ac_cv_lib_charset_locale_charset=no
.endif
check:
@(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} check)
.include <bsd.port.post.mk>