head	1.14;
access;
symbols
	RELEASE_8_3_0:1.9
	RELEASE_9_0_0:1.9
	RELEASE_7_4_0:1.6
	RELEASE_8_2_0:1.6
	RELEASE_6_EOL:1.5
	RELEASE_8_1_0:1.5
	RELEASE_7_3_0:1.4
	RELEASE_8_0_0:1.4
	RELEASE_7_2_0:1.3
	RELEASE_7_1_0:1.3
	RELEASE_6_4_0:1.3;
locks; strict;
comment	@# @;


1.14
date	2013.03.08.21.25.35;	author svnexp;	state Exp;
branches;
next	1.13;

1.13
date	2013.02.17.20.42.48;	author svnexp;	state Exp;
branches;
next	1.12;

1.12
date	2012.12.18.08.04.12;	author svnexp;	state Exp;
branches;
next	1.11;

1.11
date	2012.11.23.12.57.00;	author svnexp;	state Exp;
branches;
next	1.10;

1.10
date	2012.11.17.05.54.21;	author svnexp;	state Exp;
branches;
next	1.9;

1.9
date	2011.11.09.15.25.23;	author miwi;	state Exp;
branches;
next	1.8;

1.8
date	2011.10.29.17.40.44;	author miwi;	state Exp;
branches;
next	1.7;

1.7
date	2011.09.23.22.20.50;	author amdmi3;	state Exp;
branches;
next	1.6;

1.6
date	2010.12.29.20.04.11;	author pgollucci;	state Exp;
branches;
next	1.5;

1.5
date	2010.05.10.06.04.30;	author miwi;	state Exp;
branches;
next	1.4;

1.4
date	2009.08.22.00.12.53;	author amdmi3;	state Exp;
branches;
next	1.3;

1.3
date	2008.08.21.06.16.13;	author rafan;	state Exp;
branches;
next	1.2;

1.2
date	2008.08.18.05.44.11;	author edwin;	state Exp;
branches;
next	1.1;

1.1
date	2008.08.17.06.48.21;	author edwin;	state Exp;
branches;
next	;


desc
@@


1.14
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/313633
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@# Created by: Jeff Burchell <toxic@@doobie.com>
# $FreeBSD: head/archivers/libpar2/Makefile 313633 2013-03-08 10:51:34Z kwm $

PORTNAME=	libpar2
PORTVERSION=	0.2
PORTREVISION=	4
CATEGORIES=	archivers
MASTER_SITES=	SF/parchive/${PORTNAME}/${PORTVERSION}

MAINTAINER=	toxic@@doobie.com
COMMENT=	Library for manipulating PAR2 files, extracted from par2cmdline

LIB_DEPENDS=	sigc-2.0:${PORTSDIR}/devel/libsigc++20

GNU_CONFIGURE=	yes

LDFLAGS+=	-L${LOCALBASE}/lib
CPPFLAGS+=	-I${LOCALBASE}/include

USE_LDCONFIG=	yes
USE_PKGCONFIG=	build

OPTIONS_DEFINE=	ENABLECANCEL
OPTIONS_DEFAULT=	ENABLECANCEL
ENABLECANCEL_DESC=	Enable graceful cancellation of repairs

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MENABLECANCEL}
EXTRA_PATCHES=	${FILESDIR}/xpatch-addcancel-par2repairer.cpp
.endif

post-install:
.if ${PORT_OPTIONS:MDOCS}
	@@${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif

.include <bsd.port.mk>
@


1.13
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/312445
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d2 1
a2 1
# $FreeBSD: head/archivers/libpar2/Makefile 312445 2013-02-17 20:11:15Z swills $
d21 1
@


1.12
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/309150
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r309150 | danfe | 2012-12-18 07:57:31 +0000 (Tue, 18 Dec 2012) | 4 lines
## SVN ##
## SVN ## For a number of ports in archives category, trim the header and drop leading
## SVN ## indefinite article from COMMENT line; also fix few noticed styles bugs while
## SVN ## I am here.
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d2 1
a2 1
# $FreeBSD: head/archivers/libpar2/Makefile 309150 2012-12-18 07:57:31Z danfe $
d6 1
a6 1
PORTREVISION=	3
@


1.11
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 307677
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r307677 | bapt | 2012-11-23 12:43:56 +0000 (Fri, 23 Nov 2012) | 7 lines
## SVN ##
## SVN ## Convert to new options framework
## SVN ##
## SVN ## PR:		ports/173810
## SVN ## Submitted by:	Chris Petrik <c.petrik.sosa@@gmail.com>
## SVN ## Approved by:	Jeff Burchell <toxic@@doobie.com>
## SVN ## Feature safe:	yes
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d2 1
a2 1
# $FreeBSD: head/archivers/libpar2/Makefile 307677 2012-11-23 12:43:56Z bapt $
d11 1
a11 1
COMMENT=	A library for manipulating par2 files, extracted from par2cmdline
d29 1
a29 1
EXTRA_PATCHES+=	${FILESDIR}/xpatch-addcancel-par2repairer.cpp
d35 1
a35 1
	${INSTALL_MAN} ${WRKSRC}/README ${DOCSDIR}
@


1.10
log
@Switch exporter over
@
text
@d1 2
a2 6
# New ports collection makefile for:	libpar2
# Date created:				16 Aug 2008
# Whom:					Jeff Burchell <toxic@@doobie.com>
#
# $FreeBSD: head/archivers/libpar2/Makefile 300895 2012-07-14 12:56:14Z beat $
#
d22 3
a24 1
OPTIONS=	ENABLECANCEL "Enable graceful cancellation of repairs" On
d26 1
a26 1
.include <bsd.port.pre.mk>
d28 1
a28 1
.if defined(WITH_ENABLECANCEL)
d33 1
a33 1
.if !defined(NOPORTDOCS)
d38 1
a38 1
.include <bsd.port.post.mk>
@


1.9
log
@- Remove WITH_FBSD10_FIX, is no longer needed
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.8
log
@- Fix build on FreeBSD 10
@
text
@a24 2
WITH_FBSD10_FIX=yes

@


1.7
log
@- Add LDFLAGS to CONFIGURE_ENV and MAKE_ENV (as it was done with LDFLAGS)
- Fix all ports that add {CPP,LD}FLAGS to *_ENV to modify flags instead

PR:		157936
Submitted by:	myself
Exp-runs by:	pav
Approved by:	pav
@
text
@d25 2
@


1.6
log
@- DISTNAME= ${PORTNAME}-${PORTVERSION} is the default and not needed.

PR:             ports/153292
Submitted by:   myself (pgollucci)
Tested by:      -exp run by pav
Approved by:    portmgr (pav)
@
text
@d21 2
a22 2
CONFIGURE_ENV=	LDFLAGS="-L${LOCALBASE}/lib" \
		CPPFLAGS="-I${LOCALBASE}/include"
@


1.5
log
@- Includes two patches

	* 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)
@
text
@a12 1
DISTNAME=	${PORTNAME}-${PORTVERSION}
@


1.4
log
@- Switch SourceForge ports to the new File Release System: categories starting with A
@
text
@d10 1
a10 1
PORTREVISION=	2
d27 8
d41 1
a41 1
.include <bsd.port.mk>
@


1.3
log
@Update CONFIGURE_ARGS for how we pass CONFIGURE_TARGET to configure script.
Specifically, newer autoconf (> 2.13) has different semantic of the
configure target. In short, one should use --build=CONFIGURE_TARGET
instead of CONFIGURE_TARGET directly. Otherwise, you will get a warning
and the old semantic may be removed in later autoconf releases.

To workaround this issue, many ports hack the CONFIGURE_TARGET variable
so that it contains the ``--build='' prefix.

To solve this issue, under the fact that some ports still have
configure script generated by the old autoconf, we use runtime detection
in the do-configure target so that the proper argument can be used.

Changes to Mk/*:
 - Add runtime detection magic in bsd.port.mk
 - Remove CONFIGURE_TARGET hack in various bsd.*.mk
 - USE_GNOME=gnometarget is now an no-op

Changes to individual ports, other than removing the CONFIGURE_TARGET hack:

= pkg-plist changed (due to the ugly CONFIGURE_TARGET prefix in * executables)
  - comms/gnuradio
  - science/abinit
  - science/elmer-fem
  - science/elmer-matc
  - science/elmer-meshgen2d
  - science/elmerfront
  - science/elmerpost

= use x86_64 as ARCH
  - devel/g-wrap

= other changes
  - print/magicfilter
    GNU_CONFIGURE -> HAS_CONFIGURE since it's not generated by autoconf

Total # of ports modified:  1,027
Total # of ports affected: ~7,000 (set GNU_CONFIGURE to yes)

PR:		126524 (obsoletes 52917)
Submitted by:	rafan
Tested on:	two pointyhat 7-amd64 exp runs (by pav)
Approved by:	portmgr (pav)
@
text
@d12 1
a12 2
MASTER_SITES=	SF
MASTER_SITE_SUBDIR=	parchive
@


1.2
log
@Fix NOPORTDOCS related issues
Noticed by: ionbot
@
text
@a21 1
CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
@


1.1
log
@[NEW PORT] archivers/libpar2 Reusable library for manipulating par2 files

	Libpar2 is a library for creating and using PAR2 files to detect
	damage in data files and repair them if necessary. It can be used with
	any kind of file. Par files are especially popular on Usenet.

	Libpar2 is extracted from par2cmdline, and distributed separately.

	WWW: http://parchive.sourceforge.net/

PR:		ports/126578
Submitted by:	Jeff Burchell <toxic@@doobie.com>
@
text
@d10 1
a10 1
PORTREVISION=	1
d12 1
a12 1
MASTER_SITES=		${MASTER_SITE_SOURCEFORGE}
d14 1
a14 1
DISTNAME=		${PORTNAME}-${PORTVERSION}
d16 2
a17 2
MAINTAINER=		toxic@@doobie.com
COMMENT=		A library for manipulating par2 files, extracted from par2cmdline
d19 1
a19 1
LIB_DEPENDS=		sigc-2.0:${PORTSDIR}/devel/libsigc++20
d21 2
a22 2
GNU_CONFIGURE=		yes
CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
d24 2
a25 2
CONFIGURE_ENV=		LDFLAGS="-L${LOCALBASE}/lib" \
			CPPFLAGS="-I${LOCALBASE}/include"
@

