mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-08 06:48:28 +00:00
92350e11c1
* a bugfix that closes a memory leak triggered by corrupted PAR2 files. That fix is included in some linux vendors' libpar2 packages, and is well-tested. * The other adds additional functionality: a method to cancel a file repair in progress. This patch can be disabled through a config option. It is enabled by default because the only application in the ports tree that links against libpar2 is news/nzbget. Nzbget makes use of this functionality if it is available. PR: 146125 Submitted by: Jeff Burchell <toxic@doobie.com> (maintainer)
42 lines
920 B
Makefile
42 lines
920 B
Makefile
# New ports collection makefile for: libpar2
|
|
# Date created: 16 Aug 2008
|
|
# Whom: Jeff Burchell <toxic@doobie.com>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= libpar2
|
|
PORTVERSION= 0.2
|
|
PORTREVISION= 3
|
|
CATEGORIES= archivers
|
|
MASTER_SITES= SF/parchive/${PORTNAME}/${PORTVERSION}
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}
|
|
|
|
MAINTAINER= toxic@doobie.com
|
|
COMMENT= A library for manipulating par2 files, extracted from par2cmdline
|
|
|
|
LIB_DEPENDS= sigc-2.0:${PORTSDIR}/devel/libsigc++20
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib" \
|
|
CPPFLAGS="-I${LOCALBASE}/include"
|
|
|
|
USE_LDCONFIG= yes
|
|
|
|
OPTIONS= ENABLECANCEL "Enable graceful cancellation of repairs" On
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if defined(WITH_ENABLECANCEL)
|
|
EXTRA_PATCHES+= ${FILESDIR}/xpatch-addcancel-par2repairer.cpp
|
|
.endif
|
|
|
|
post-install:
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
${INSTALL_MAN} ${WRKSRC}/README ${DOCSDIR}
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|