diff options
Diffstat (limited to 'archivers/libarchive/Makefile')
-rw-r--r-- | archivers/libarchive/Makefile | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/archivers/libarchive/Makefile b/archivers/libarchive/Makefile index 8802f1623ca5..0a53db2ed00a 100644 --- a/archivers/libarchive/Makefile +++ b/archivers/libarchive/Makefile @@ -5,7 +5,7 @@ # $FreeBSD$ PORTNAME= libarchive -PORTVERSION= 1.2.37 +PORTVERSION= 1.2.53 PORTEPOCH= 1 CATEGORIES= archivers MASTER_SITES= http://people.freebsd.org/~kientzle/libarchive/src/ @@ -16,7 +16,8 @@ COMMENT= Library to create and read several streaming archive formats GNU_CONFIGURE= yes INSTALLS_SHLIB= yes -PLIST_FILES= include/archive.h \ +PLIST_FILES= bin/bsdtar \ + include/archive.h \ include/archive_entry.h \ lib/libarchive.a \ lib/libarchive.la \ @@ -24,6 +25,7 @@ PLIST_FILES= include/archive.h \ lib/libarchive.so.3 MANCOMPRESSED= no +MAN1= bsdtar.1 MAN3= archive_entry.3 \ archive_read.3 \ archive_util.3 \ @@ -32,4 +34,13 @@ MAN3= archive_entry.3 \ MAN5= libarchive-formats.5 \ tar.5 -.include <bsd.port.mk> +.include <bsd.port.pre.mk> + +.if ${OSVERSION} < 500040 +USE_GETOPT_LONG=yes +CFLAGS+= -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALBASE}/lib +CONFIGURE_ENV+= LDFLAGS="${LDFLAGS}" +.endif + +.include <bsd.port.post.mk> |