2012-11-23 13:43:56 +01:00
|
|
|
# Created by: Jeff Burchell <toxic@doobie.com>
|
2008-08-17 08:48:21 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= libpar2
|
|
|
|
PORTVERSION= 0.2
|
2013-02-17 21:11:15 +01:00
|
|
|
PORTREVISION= 4
|
2008-08-17 08:48:21 +02:00
|
|
|
CATEGORIES= archivers
|
2009-08-22 02:13:26 +02:00
|
|
|
MASTER_SITES= SF/parchive/${PORTNAME}/${PORTVERSION}
|
2008-08-17 08:48:21 +02:00
|
|
|
|
2008-08-18 07:44:11 +02:00
|
|
|
MAINTAINER= toxic@doobie.com
|
2012-12-18 08:57:31 +01:00
|
|
|
COMMENT= Library for manipulating PAR2 files, extracted from par2cmdline
|
2008-08-17 08:48:21 +02:00
|
|
|
|
2008-08-18 07:44:11 +02:00
|
|
|
LIB_DEPENDS= sigc-2.0:${PORTSDIR}/devel/libsigc++20
|
2008-08-17 08:48:21 +02:00
|
|
|
|
2008-08-18 07:44:11 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2008-08-17 08:48:21 +02:00
|
|
|
|
2011-09-24 00:26:39 +02:00
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
2008-08-17 08:48:21 +02:00
|
|
|
|
2013-05-27 14:53:53 +02:00
|
|
|
USE_GCC= any
|
2008-08-17 08:48:21 +02:00
|
|
|
USE_LDCONFIG= yes
|
2013-04-23 16:20:25 +02:00
|
|
|
USES= pkgconfig
|
2008-08-17 08:48:21 +02:00
|
|
|
|
2012-11-23 13:43:56 +01:00
|
|
|
OPTIONS_DEFINE= ENABLECANCEL
|
|
|
|
OPTIONS_DEFAULT= ENABLECANCEL
|
|
|
|
ENABLECANCEL_DESC= Enable graceful cancellation of repairs
|
2010-05-10 08:04:30 +02:00
|
|
|
|
2012-11-23 13:43:56 +01:00
|
|
|
.include <bsd.port.options.mk>
|
2010-05-10 08:04:30 +02:00
|
|
|
|
2012-11-23 13:43:56 +01:00
|
|
|
.if ${PORT_OPTIONS:MENABLECANCEL}
|
2012-12-18 08:57:31 +01:00
|
|
|
EXTRA_PATCHES= ${FILESDIR}/xpatch-addcancel-par2repairer.cpp
|
2010-05-10 08:04:30 +02:00
|
|
|
.endif
|
|
|
|
|
2008-08-17 08:48:21 +02:00
|
|
|
post-install:
|
2012-11-23 13:43:56 +01:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2008-08-17 08:48:21 +02:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
2012-12-18 08:57:31 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
|
2008-08-17 08:48:21 +02:00
|
|
|
.endif
|
|
|
|
|
2012-11-23 13:43:56 +01:00
|
|
|
.include <bsd.port.mk>
|