openbsd-ports/archivers/libarchive/Makefile
2009-03-08 21:50:34 +00:00

66 lines
1.6 KiB
Makefile

# $OpenBSD: Makefile,v 1.9 2009/03/08 21:50:34 naddy Exp $
COMMENT= library for reading and writing streaming archives
V= 2.6.2
DISTNAME= libarchive-$V
SHARED_LIBS += archive 3.0 # .8.0
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/
MASTER_SITES0= http://shell.uugrn.org/~naddy/
DISTFILES= libarchive-$V.tar.gz \
libarchive-catpages-$V.tar.gz:0
WANTLIB= c z
LIB_DEPENDS= bz2.>=10::archivers/bzip2 \
lzmadec.>=0::archivers/lzma
USE_LIBTOOL= Yes
CONFIGURE_STYLE=gnu
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
--enable-bsdcpio
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
MODGNU_CONFIG_GUESS_DIRS=${WRKSRC}/config.aux
# Our groff is too old. We need to format the man pages on a
# FreeBSD system.
MAN_fragment= \
MAN=`(printf 'mans:\n\t@echo $$(man_MANS)\n'; cat Makefile) | \
make -f - mans`
post-install:
@cd ${WRKSRC}; \
${MAN_fragment}; \
for m in $$MAN; do \
${INSTALL_MAN} $${m%.[1-9]}.0 \
${PREFIX}/man/cat$${m#$${m%[1-9]}}/; \
done
# convenience target for maintainer
FREEBSDHOST= lorvorc
update-catpages:
@cd ${WRKSRC}; \
${MAN_fragment}; \
for m in $$MAN; do \
echo -n "Formatting $$m ..."; \
ssh ${FREEBSDHOST} nroff -mdoc <$$m >$${m%.[1-9]}.0 ; \
CAT="$$CAT $${m%.[1-9]}.0" ; \
echo " done." ; \
done; \
pax -w -s ',^,${DISTNAME}/,' $$CAT | \
gzip >${FULLDISTDIR}/libarchive-catpages-$V.tar.gz
.include <bsd.port.mk>