openbsd-ports/archivers/libarchive/Makefile
2010-10-18 16:47:00 +00:00

38 lines
994 B
Makefile

# $OpenBSD: Makefile,v 1.15 2010/10/18 16:47:00 espie Exp $
COMMENT= library for reading and writing streaming archives
DISTNAME= libarchive-2.8.4
SHARED_LIBS= archive 6.0 # .10.3
CATEGORIES= archivers
HOMEPAGE= http://code.google.com/p/libarchive/
MAINTAINER= Christian Weisgerber <naddy@openbsd.org>
# BSD
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= http://libarchive.googlecode.com/files/
WANTLIB= c expat z
LIB_DEPENDS= bz2.>=10::archivers/bzip2 \
lzma.>=0::archivers/xz
USE_LIBTOOL= Yes
CONFIGURE_STYLE=gnu
CONFIGURE_ARGS= ${CONFIGURE_SHARED}
CONFIGURE_ARGS+=--without-lzmadec # old LZMA utils
CONFIGURE_ARGS+=--without-xml2 # expat suffices
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
MODGNU_CONFIG_GUESS_DIRS=${WRKSRC}/build/autoconf
USE_GROFF = Yes
# Regression tests:
# libarchive/test_entry fails due to lacking locale/widechar support
.include <bsd.port.mk>