2004-03-24 18:20:48 +01:00
|
|
|
# New ports collection makefile for: libarchive
|
|
|
|
# Date created: 23 March 2004
|
|
|
|
# Whom: Greg Lewis <glewis@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= libarchive
|
2012-04-08 18:50:02 +02:00
|
|
|
PORTVERSION= 3.0.4
|
2004-08-23 18:37:49 +02:00
|
|
|
PORTEPOCH= 1
|
2004-06-16 17:20:49 +02:00
|
|
|
CATEGORIES= archivers
|
2012-04-08 18:50:02 +02:00
|
|
|
MASTER_SITES= http://cloud.github.com/downloads/${PORTNAME}/${PORTNAME}/
|
2004-03-24 18:20:48 +01:00
|
|
|
|
|
|
|
MAINTAINER= glewis@FreeBSD.org
|
|
|
|
COMMENT= Library to create and read several streaming archive formats
|
|
|
|
|
2012-02-25 23:41:56 +01:00
|
|
|
OPTIONS= LIBXML2 "Support writing xar via libxml2" On \
|
|
|
|
NETTLE "Use nettle instad of OpenSSL" Off
|
|
|
|
|
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-02-25 23:41:56 +01:00
|
|
|
USE_GNOME= gnomehack
|
|
|
|
|
|
|
|
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.la \
|
|
|
|
lib/libarchive.so \
|
2012-02-25 23:41:56 +01:00
|
|
|
lib/libarchive.so.12 \
|
2011-08-19 18:36:24 +02:00
|
|
|
libdata/pkgconfig/libarchive.pc
|
2004-03-24 18:20:48 +01:00
|
|
|
|
2004-08-23 18:37:49 +02:00
|
|
|
MANCOMPRESSED= no
|
2009-05-24 18:55:25 +02:00
|
|
|
MAN1= bsdcpio.1 \
|
|
|
|
bsdtar.1
|
2004-08-23 18:37:49 +02:00
|
|
|
MAN3= archive_entry.3 \
|
2012-02-25 23:41:56 +01:00
|
|
|
archive_entry_acl.3 \
|
|
|
|
archive_entry_linkify.3 \
|
|
|
|
archive_entry_paths.3 \
|
|
|
|
archive_entry_perms.3 \
|
|
|
|
archive_entry_stat.3 \
|
|
|
|
archive_entry_time.3 \
|
2004-03-24 18:20:48 +01:00
|
|
|
archive_read.3 \
|
2009-05-24 21:52:34 +02:00
|
|
|
archive_read_disk.3 \
|
2012-02-25 23:41:56 +01:00
|
|
|
archive_read_set_options.3 \
|
2004-03-24 18:20:48 +01:00
|
|
|
archive_util.3 \
|
|
|
|
archive_write.3 \
|
2007-06-27 22:04:51 +02:00
|
|
|
archive_write_disk.3 \
|
2012-02-25 23:41:56 +01:00
|
|
|
archive_write_set_options.3 \
|
2007-06-26 07:19:17 +02:00
|
|
|
libarchive.3 \
|
|
|
|
libarchive_internals.3
|
2007-10-14 19:38:36 +02:00
|
|
|
MAN5= cpio.5 \
|
|
|
|
libarchive-formats.5 \
|
|
|
|
mtree.5 \
|
2004-06-16 17:20:49 +02:00
|
|
|
tar.5
|
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
|
|
|
|
2012-02-25 23:41:56 +01:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_LIBXML2)
|
|
|
|
USE_GNOME+= libxml2
|
|
|
|
CONFIGURE_ARGS+= --with-xml2
|
|
|
|
.else
|
|
|
|
CFLAGS+= -DHAVE_BSDXML_H=1
|
|
|
|
LDFLAGS+= -lbsdxml
|
|
|
|
CONFIGURE_ARGS+= --without-xml2
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_NETTLE)
|
|
|
|
LIB_DEPENDS+= nettle.4:${PORTSDIR}/security/nettle
|
|
|
|
CONFIGURE_ARGS+= --without-openssl --with-nettle
|
|
|
|
.else
|
|
|
|
USE_OPENSSL= yes
|
|
|
|
CONFIGURE_ARGS+= --with-openssl --without-nettle
|
|
|
|
.endif
|
2008-06-17 07:12:47 +02:00
|
|
|
|
2010-05-21 18:23:46 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${OSVERSION} < 800505 || (${OSVERSION} >= 900000 && ${OSVERSION} < 900012)
|
2010-11-09 19:58:25 +01:00
|
|
|
LIB_DEPENDS+= lzma.5:${PORTSDIR}/archivers/xz
|
2010-05-21 18:23:46 +02:00
|
|
|
.endif
|
|
|
|
|
2012-02-25 23:41:56 +01:00
|
|
|
check:
|
|
|
|
(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} check)
|
|
|
|
|
2010-05-21 18:23:46 +02:00
|
|
|
.include <bsd.port.post.mk>
|