head	1.34;
access;
symbols
	RELEASE_8_3_0:1.26
	RELEASE_9_0_0:1.26
	RELEASE_7_4_0:1.26
	RELEASE_8_2_0:1.26
	RELEASE_6_EOL:1.26
	RELEASE_8_1_0:1.25
	RELEASE_7_3_0:1.24
	RELEASE_8_0_0:1.24
	RELEASE_7_2_0:1.22
	RELEASE_7_1_0:1.22
	RELEASE_6_4_0:1.22
	RELEASE_5_EOL:1.22
	RELEASE_7_0_0:1.21
	RELEASE_6_3_0:1.21
	PRE_XORG_7:1.20
	RELEASE_4_EOL:1.20
	RELEASE_6_2_0:1.19
	RELEASE_6_1_0:1.13
	RELEASE_5_5_0:1.13
	RELEASE_6_0_0:1.8
	RELEASE_5_4_0:1.7
	RELEASE_4_11_0:1.5
	RELEASE_5_3_0:1.3
	RELEASE_4_10_0:1.1;
locks; strict;
comment	@# @;


1.34
date	2012.11.17.06.01.07;	author svnexp;	state Exp;
branches;
next	1.33;

1.33
date	2012.11.06.03.51.42;	author adamw;	state Exp;
branches;
next	1.32;

1.32
date	2012.10.26.06.59.32;	author beat;	state Exp;
branches;
next	1.31;

1.31
date	2012.10.07.07.12.54;	author bapt;	state Exp;
branches;
next	1.30;

1.30
date	2012.10.04.10.48.50;	author bapt;	state Exp;
branches;
next	1.29;

1.29
date	2012.08.03.15.54.35;	author cs;	state Exp;
branches;
next	1.28;

1.28
date	2012.07.31.02.22.22;	author wxs;	state Exp;
branches;
next	1.27;

1.27
date	2012.07.24.20.50.26;	author wxs;	state Exp;
branches;
next	1.26;

1.26
date	2010.08.09.22.58.42;	author araujo;	state Exp;
branches;
next	1.25;

1.25
date	2010.04.19.10.43.40;	author ale;	state Exp;
branches;
next	1.24;

1.24
date	2009.09.09.19.19.12;	author wxs;	state Exp;
branches;
next	1.23;

1.23
date	2009.05.09.02.46.08;	author wxs;	state Exp;
branches;
next	1.22;

1.22
date	2008.02.04.15.35.10;	author wxs;	state Exp;
branches;
next	1.21;

1.21
date	2007.06.22.02.32.51;	author araujo;	state Exp;
branches;
next	1.20;

1.20
date	2007.01.09.21.33.56;	author miwi;	state Exp;
branches;
next	1.19;

1.19
date	2006.09.19.15.48.07;	author garga;	state Exp;
branches;
next	1.18;

1.18
date	2006.08.19.16.49.48;	author miwi;	state Exp;
branches;
next	1.17;

1.17
date	2006.07.13.14.59.16;	author clsung;	state Exp;
branches;
next	1.16;

1.16
date	2006.05.31.18.06.34;	author garga;	state Exp;
branches;
next	1.15;

1.15
date	2006.03.20.17.53.09;	author vanilla;	state Exp;
branches;
next	1.14;

1.14
date	2006.03.18.01.14.24;	author cperciva;	state Exp;
branches;
next	1.13;

1.13
date	2006.02.20.18.05.32;	author cperciva;	state Exp;
branches;
next	1.12;

1.12
date	2006.02.19.23.45.51;	author cperciva;	state Exp;
branches;
next	1.11;

1.11
date	2006.02.06.17.14.04;	author garga;	state Exp;
branches;
next	1.10;

1.10
date	2005.12.03.19.30.14;	author tdb;	state Exp;
branches;
next	1.9;

1.9
date	2005.08.29.14.58.21;	author pav;	state Exp;
branches;
next	1.8;

1.8
date	2005.05.22.16.43.56;	author jylefort;	state Exp;
branches;
next	1.7;

1.7
date	2005.02.11.00.06.50;	author pav;	state Exp;
branches;
next	1.6;

1.6
date	2005.01.13.20.54.12;	author pav;	state Exp;
branches;
next	1.5;

1.5
date	2004.11.21.01.05.43;	author pav;	state Exp;
branches;
next	1.4;

1.4
date	2004.11.14.22.26.10;	author pav;	state Exp;
branches;
next	1.3;

1.3
date	2004.08.09.13.53.10;	author vs;	state Exp;
branches;
next	1.2;

1.2
date	2004.05.03.16.05.39;	author pav;	state Exp;
branches;
next	1.1;

1.1
date	2004.04.10.23.16.07;	author thierry;	state Exp;
branches;
next	;


desc
@@


1.34
log
@Switch exporter over
@
text
@# Created by: Yonatan <Yonatan@@Xpert.com>
# $FreeBSD: head/security/libtomcrypt/Makefile 307051 2012-11-06 03:51:42Z adamw $

PORTNAME=	libtomcrypt
PORTVERSION=	1.17
PORTREVISION=	2
CATEGORIES=	security
MASTER_SITES=	http://libtom.org/files/
DISTNAME=	crypt-${PORTVERSION}

MAINTAINER=	ports@@FreeBSD.org
COMMENT=	Comprehensive, modular, and portable cryptographic toolkit

WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
MAKEFILE=	makefile
MAKE_ARGS=	DESTDIR="${PREFIX}" LIBPATH="/lib" INCPATH="/include" \
		DATAPATH="${DOCSDIR}/pdf"
USE_BZIP2=	yes
USE_GMAKE=	yes
ALL_TARGET=	library
MAKE_JOBS_SAFE=	yes

CFLAGS+=	-I${PREFIX}/include

OPTIONS_DEFINE=	DOCS
OPTIONS_DEFAULT=	LIBTOMMATH
OPTIONS_MULTI=	MATH
OPTIONS_MULTI_MATH=	LIBTOMMATH TOMSFASTMATH GMP
LIBTOMMATH_DESC=	Use LibTomMath
TOMSFASTMATH_DESC=	Use TomsFastMath

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MLIBTOMMATH}
BUILD_DEPENDS+=	${LOCALBASE}/include/tommath.h:${PORTSDIR}/math/libtommath
CFLAGS+=	-DLTM_DESC
.endif

.if ${PORT_OPTIONS:MTOMSFASTMATH}
BUILD_DEPENDS+=	${LOCALBASE}/include/tfm.h:${PORTSDIR}/math/tomsfastmath
CFLAGS+=	-DTFM_DESC
.endif

.if ${PORT_OPTIONS:MGMP}
BUILD_DEPENDS+=	${LOCALBASE}/include/gmp.h:${PORTSDIR}/math/gmp
CFLAGS+=	-DGMP_DESC
.endif

.if ${PORT_OPTIONS:MDOCS}
BUILD_DEPENDS+=	latex:${PORTSDIR}/print/teTeX
PORTDOCS=	*
.else
MAKE_ARGS+=	NODOCS=yes
.endif

.if defined(MAINTAINER_MODE)
test:	build
	@@${ECHO_MSG} "Testing with -DUSE_TFM..."
	(cd ${WRKSRC} && CFLAGS="${CFLAGS} -DUSE_TFM" EXTRALIBS="-L${PREFIX}/lib -ltfm" ${GMAKE} test && ${WRKSRC}/test)

	@@${ECHO_MSG} "Cleaning up test binary..."
	@@${RM} ${WRKSRC}/test
	@@${RM} ${WRKSRC}/demos/test.o

	@@${ECHO_MSG} "Testing with -DUSE_LTM..."
	(cd ${WRKSRC} && CFLAGS="${CFLAGS} -DUSE_LTM" EXTRALIBS="-L${PREFIX}/lib -ltommath" ${GMAKE} test && ${WRKSRC}/test)

	@@${ECHO_MSG} "Cleaning up test binary..."
	@@${RM} ${WRKSRC}/test
	@@${RM} ${WRKSRC}/demos/test.o

	@@${ECHO_MSG} "Testing with -DUSE_GMP..."
	(cd ${WRKSRC} && CFLAGS="${CFLAGS} -DUSE_GMP" EXTRALIBS="-L${PREFIX}/lib -lgmp" ${GMAKE} test && ${WRKSRC}/test)
.endif

.include <bsd.port.mk>
@


1.33
log
@SVN rev 307051 on 2012-11-06 03:51:42Z by adamw

Unbreak package build by registering PORTDOCS if we're installing docs.

Feature safe:	yes
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.32
log
@SVN rev 306424 on 2012-10-26 06:59:32Z by beat

Mark as BROKEN: incomplete plist

Reported by:	pointyhat
Feature safe:	yes
@
text
@a13 2
BROKEN=		incomplete plist

d51 1
@


1.31
log
@SVN rev 305432 on 2012-10-07 07:12:54Z by bapt

use libtommath as default math library as it used to be before conversion to
optionsng

Repored by:	linimon
@
text
@d14 2
@


1.30
log
@SVN rev 305249 on 2012-10-04 10:48:50Z by bapt

Convert to new options framework
@
text
@d26 1
@


1.29
log
@SVN rev 301960 on 2012-08-03 15:54:35Z by cs

Fix typos and make small modifications in COMMENT (according to Porter's
Handbook)

Approved by:	portmgr@@ (implicit)
@
text
@d1 1
a1 4
# Ports collection makefile for:  libtomcrypt
# Date created:			  22 Jan 2004
# Whom:				  Yonatan <Yonatan@@Xpert.com>
#
a2 1
#
d25 5
a29 4
OPTIONS=	DOCS "build documentation (depends on teTeX)" off \
		LIBTOMMATH "Use LibTomMath" on \
		TOMSFASTMATH "Use TomsFastMath" off \
		GMP "Use GMP" off
d31 1
a31 1
.include <bsd.port.pre.mk>
d33 1
a33 5
.if defined(WITHOUT_LIBTOMMATH) && !defined(WITH_TOMSFASTMATH) && !defined(WITH_GMP)
IGNORE=	requires LibTomMath, TomsFastMath, or GMP (or all three)
.endif

.if !defined(WITHOUT_LIBTOMMATH)
d38 1
a38 1
.if defined(WITH_TOMSFASTMATH)
d43 1
a43 1
.if defined(WITH_GMP)
d48 1
a48 1
.if defined(WITH_DOCS)
a50 1
NOPORTDOCS=	yes
d74 1
a74 1
.include <bsd.port.post.mk>
@


1.28
log
@SVN rev 301772 on 2012-07-31 02:22:22Z by wxs

Remove DEPRECATED and EXPIRATION_DATE as the main site appears back online.
@
text
@d16 1
a16 1
COMMENT=	Comprehensive, modular and portable cryptographic toolkit
@


1.27
log
@SVN rev 301493 on 2012-07-24 20:50:26Z by wxs

Deprecate these ports as upstream has abandoned them for a while now.
Set expiration date for one month from now.
@
text
@d12 1
a12 2
MASTER_SITES=	http://libtom.org/files/ \
		http://www.atarininja.org/~wxs/distfiles/
a26 3
DEPRECATED=	Upstream abandoned this project.
EXPIRATION_DATE=	2012-08-24

@


1.26
log
@- Bump PORTREVISION to chase the update of math/libtommath.
@
text
@d28 3
@


1.25
log
@Switch to use newer GMP version.

PR:		ports/144487
Submitted by:	ale
Approved by:	portmgr (-exp run by erwin)
@
text
@d10 1
a10 1
PORTREVISION=	1
@


1.24
log
@- Reassign maintainer to ports@@
@
text
@d10 1
d52 1
a52 1
BUILD_DEPENDS+=	${LOCALBASE}/include/gmp.h:${PORTSDIR}/math/libgmp4
@


1.23
log
@- Mark my ports as MAKE_JOBS_SAFE (with the exception of nethack34-gnome which
  is MAKE_JOBS_UNSAFE).
@
text
@d15 1
a15 1
MAINTAINER=	wxs@@FreeBSD.org
@


1.22
log
@Update my address.

Approved by:	garga (mentor)
@
text
@d25 1
@


1.21
log
@- Update to 1.17.

PR:		ports/113222
Submitted by:	Wesley Shields <wxs@@atarininja.org> (maintainer)
Approved by:	stas (mentor)
@
text
@d15 1
a15 1
MAINTAINER=	wxs@@atarininja.org
@


1.20
log
@- Update to 1.16

PR:		ports/107627
Submitted by:	Wesley Shields <wxs@@csh.rit.edu> (maintainer)
@
text
@d9 1
a9 1
PORTVERSION=	1.16
@


1.19
log
@- Update to 1.14

PR:		ports/102882
Submitted by:	JImmie James <jimmiejaz@@gmail.com>
Reworked by:	Wesley Shields <wxs@@atarininja.org> (maintainer)
@
text
@d9 1
a9 1
PORTVERSION=	1.14
d11 2
a12 1
MASTER_SITES=	http://libtomcrypt.com/files/
@


1.18
log
@- Update maintainer addresses

PR:		ports/102230
Submitted by:	Wesley Shields <wxs(at)atarininja.org>
Approved by:	krion (mentor)
@
text
@d9 1
a9 1
PORTVERSION=	1.13
@


1.17
log
@- security/libtomcrypt is up to 1.13 now.  The attached patch updates the
  port and makes the IGNORE string read properly.

PR:		ports/100210
Submitted by:	maintainer (Wesley Shields)
@
text
@d14 1
a14 1
MAINTAINER=	wxs@@csh.rit.edu
@


1.16
log
@* security/libtomcrypt
  - Update to 1.12

* math/libtommath
  - Update to 0.39

* math/tomsfastmath
  - Update to 0.09

PR:		ports/98214
Submitted by:	maintainer
@
text
@d9 1
a9 1
PORTVERSION=	1.12
d35 1
a35 1
IGNORE=	you must choose at least LibTomMath, TomsFastMath, or GMP (or all three)
@


1.15
log
@Upgrade to 1.10.

PR:		ports/94736
Submitted by:	maintainer
@
text
@d9 1
a9 1
PORTVERSION=	1.10
d29 2
a30 1
		TOMSFASTMATH "Use TomsFastMath" off
d34 2
a35 2
.if defined(WITHOUT_LIBTOMMATH) && defined(WITHOUT_TOMSFASTMATH)
IGNORE=	you must choose either LibTomMath or TomsFastMath (or both)
d48 5
d71 7
d79 1
@


1.14
log
@Libtom* is back online at libtomcrypt.com.  Point the ports back at
Tom's web server instead of fetching distfiles from freebsd.org.
@
text
@d9 1
a9 1
PORTVERSION=	1.09
a13 3
PATCH_SITES=	http://libtomcrypt.com/files/patch-1.09/
PATCHFILES=	lrw_process.c.patch

@


1.13
log
@Point MASTER_SITES and PATCH_SITES at the FreeBSD FTP mirrors and mark
the ports as unbroken.

Thanks to:	Several people who found copies of the distfiles for me
@
text
@d11 1
a11 2
MASTER_SITES=	${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR=	cperciva/libtom
d14 1
a14 2
PATCH_SITES=	${MASTER_SITE_LOCAL}
PATCH_SITE_SUBDIR=	cperciva/libtom
@


1.12
log
@Mark math/libtommath, math/tomsfastmath, and security/libtomcrypt as
being unfetchable.  The author's domain name (libtomcrypt.org) expired
and was picked up by a cybersquatter, and the distfiles haven't been
mirrored by ftp.freebsd.org yet.

If anyone has a copy of the distfiles for any of these ports, please
send them to me so that I can host them and unbreak these ports.

Approved by:	flz
Discussed with:	maintainer
@
text
@d11 2
a12 1
MASTER_SITES=	http://libtomcrypt.org/files/
d15 2
a16 1
PATCH_SITES=	http://libtomcrypt.org/files/patch-1.09/
a21 2
BROKEN=		"Does not fetch"

@


1.11
log
@- Update to 1.09
- Fix IGNORE message to pacify portlint(1)
- Drop USE_REINPLACE

PR:		ports/92897
Submitted by:	maintainer
@
text
@d20 2
@


1.10
log
@- Update to 1.08

PR:		89861
Submitted by:	Wesley Shields <wxs@@csh.rit.edu> (maintainer)
Approved by:	clement (mentor)
@
text
@d9 1
a9 1
PORTVERSION=	1.08
d14 3
a25 1
USE_REINPLACE=	yes
d37 1
a37 1
IGNORE=	You must choose either LibTomMath or TomsFastMath (or both)
@


1.9
log
@- Update to 1.06
- Provide options for new mathematical backends
- Transfer maintainership to submitter

PR:		ports/83040
Submitted by:	Wesley Shields <wxs@@csh.rit.edu>
Approved by:	Afarsec <afarsec@@012.net.il> (maintainer)
@
text
@d9 1
a9 1
PORTVERSION=	1.06
a13 3
PATCH_SITES=	http://www.libtomcrypt.org/files/patch-1.06/
PATCHFILES=	makefile.diff

d52 1
a52 1
INSTALL_TARGET=	install_lib
d57 9
a65 1
	(cd ${WRKSRC} && ${GMAKE} test && ${WRKSRC}/test)
a66 1

@


1.8
log
@- Update to 1.02 [1]
- Do not use optimization CFLAGS
- OPTIONSify
- When WITH_DOCS is defined, do not run-depend on ghostscript-gnu (the
  user is free to use his favorite pdf viewer)
- Sort pkg-plist

PR:		ports/81356 [1]
Submitted by:	maintainer [1]
@
text
@d9 1
a9 1
PORTVERSION=	1.02
d14 4
a17 1
MAINTAINER=	onatan@@gmail.com
d22 2
d29 5
a33 1
OPTIONS=	DOCS "build documentation (depends on teTeX)" off
d37 14
a57 7
post-patch:
	@@${REINPLACE_CMD} -e \
		's|/usr|${PREFIX}|; s|dvipdf|dvipdft|; \
		 s|-O3||; s|-funroll-loops||; s|-fomit-frame-pointer||; \
		 s|-Wno-unused-parameter||' \
		${WRKSRC}/makefile

d60 1
a60 1
	(cd ${WRKSRC}/demos/test && ${MAKE} test ${MAKE_ARGS} && ${WRKSRC}/demos/test/test)
@


1.7
log
@- Libtomcrypt released a patchset to fix a few security bugs.

PR:		ports/77349
Submitted by:	Wesley Shields <wxs@@csh.rit.edu>
Approved by:	Jonatan B <onatan@@gmail.com> (maintainer)
@
text
@d9 1
a9 2
PORTVERSION=	1.00
PORTREVISION=	1
d11 2
a12 4
MASTER_SITES=	http://libtomcrypt.org/files/:source \
		http://libtomcrypt.org/files/patch-1.00/:patch
DISTFILES=	crypt-${PORTVERSION}.tar.bz2:source \
		ltc-1.00-001.tar.bz2:patch
a16 8
EXTRA_PATCHES=	${WRKDIR}/src/pk/pkcs1/pkcs_1_oaep_encode.c.patch \
		${WRKDIR}/src/pk/pkcs1/pkcs_1_oaep_decode.c.patch \
		${WRKDIR}/src/misc/base64/base64_decode.c.patch \
		${WRKDIR}/src/headers/tomcrypt.h.patch \
		${WRKDIR}/makefile.shared.patch \
		${WRKDIR}/makefile.patch \
		${WRKDIR}/changes.patch \

a18 2
MAKE_ARGS+=	PREFIX=${PREFIX}
MAKE_ENV=	PREFIX=${PREFIX} DOCSDIR=${DOCSDIR} EXAMPLESDIR=${EXAMPLESDIR}
d24 4
a29 1
RUN_DEPENDS+=	gs:${PORTSDIR}/print/ghostscript-gnu
d35 7
d47 1
a47 1
.include <bsd.port.mk>
@


1.6
log
@- Update to 1.0

PR:		ports/76185
Submitted by:	Wesley Shields <wxs@@csh.rit.edu>
Approved by:	Jonatan B <onatan@@gmail.com> (maintained)
@
text
@d10 1
d12 4
a15 2
MASTER_SITES=	http://libtomcrypt.org/files/
DISTNAME=	crypt-${PORTVERSION}
d20 8
@


1.5
log
@- Update to 0.99

PR:		ports/73575
Submitted by:	Wesley Shields <wxs@@csh.rit.edu>
Approved by:	maintainer timeout (2 weeks)
@
text
@d9 1
a9 1
PORTVERSION=	0.99
d19 1
d22 1
d28 1
d31 1
a31 1
INSTALL_TARGET=	install-nodocs
d36 1
a36 1
	(cd ${WRKSRC} && ${MAKE} test && ${WRKSRC}/test)
a38 3
post-patch:
	@@${REINPLACE_CMD} -e 's|
||' ${WRKSRC}/whirl.c

@


1.4
log
@- Update maintainer's email address

PR:		ports/73939
Submitted by:	Yonatan <onatan@@gmail.com> (maintainer)
@
text
@d9 1
a9 1
PORTVERSION=	0.98
@


1.3
log
@Update to 0.98

Closes PR:	ports/68496
Submitted by:	Wesley Shields, Yonatan Bokovza (maintainer)
@
text
@d14 1
a14 1
MAINTAINER=	Yonatan@@xpert.com
@


1.2
log
@- Update to 0.94

PR:		ports/66099
Submitted by:	Wesley Shields <wxs@@csh.rit.edu>
Approved by:	maintainer
@
text
@d9 1
a9 1
PORTVERSION=	0.94
@


1.1
log
@Add libtomcrypt 0.92, comprehensive, modular and portable
cryptographic toolkit.

PR:		62581
Submitted by:	Yonatan <Yonatan@@Xpert.com>
Approved by:	pav (mentor).
@
text
@d9 1
a9 1
PORTVERSION=	0.92
d21 1
d35 3
@

