aboutsummaryrefslogtreecommitdiff
path: root/math/miracl
diff options
context:
space:
mode:
authorJase Thew <jase@FreeBSD.org>2012-07-17 10:49:02 +0000
committerJase Thew <jase@FreeBSD.org>2012-07-17 10:49:02 +0000
commit5219b48ed1b436ec2a8ed6bcc9e01bfa5a69d449 (patch)
treea691d8be9c78b82c197c9afeaaeecab0d91dfba1 /math/miracl
parent9a622636933243fd4bfee73dd28c6dbb81b43257 (diff)
downloadports-5219b48ed1b436ec2a8ed6bcc9e01bfa5a69d449.tar.gz
ports-5219b48ed1b436ec2a8ed6bcc9e01bfa5a69d449.zip
- Update to 5.6 [1]
- Assign maintainership to Bryan Drewery <bryan@shatow.net> [1] - Change MASTER_SITE* as agreed with submitter - Pet portlint(1): re-organise LICENSE section, fix whitespace - Remove hardcoded FILESDIR in Makefile PR: ports/169501 [1] Submitted by: Bryan Drewery <bryan@shatow.net> Approved by: flo (mentor)
Notes
Notes: svn path=/head/; revision=300998
Diffstat (limited to 'math/miracl')
-rw-r--r--math/miracl/Makefile38
-rw-r--r--math/miracl/distinfo4
-rw-r--r--math/miracl/files/LICENSE34
-rw-r--r--math/miracl/pkg-descr2
4 files changed, 63 insertions, 15 deletions
diff --git a/math/miracl/Makefile b/math/miracl/Makefile
index dabab3fe82aa..716d96279f2b 100644
--- a/math/miracl/Makefile
+++ b/math/miracl/Makefile
@@ -6,23 +6,33 @@
#
PORTNAME= miracl
-PORTVERSION= 5.3.2
-PORTREVISION= 1
+PORTVERSION= 5.6
PORTEPOCH= 1
CATEGORIES= math
-MASTER_SITES= ftp://ftp.computing.dcu.ie/pub/crypto/ \
+MASTER_SITES= http://www.shatow.net/freebsd/${PORTNAME}/ \
${MASTER_SITE_LOCAL}
-MASTER_SITE_SUBDIR= pav
-DISTNAME= ${PORTNAME}
-DIST_SUBDIR= ${PORTNAME}/${PORTVERSION}
+MASTER_SITE_SUBDIR= jase
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= bryan@shatow.net
COMMENT= Multiprecision Integer and Rational Arithmetic C/C++ Library
+LICENSE= AGPLv3 COMMERCIAL
+LICENSE_COMB= dual
+LICENSE_NAME_COMMERCIAL= Commericial use license to not be bound by AGPLv3
+LICENSE_TEXT_COMMERCIAL= License available from CertiVox for commercial use and
+LICENSE_TEXT_COMMERCIAL+= to not be bound by the terms of the AGPLv3. Visit
+LICENSE_TEXT_COMMERCIAL+= http://certivox.com/index.php/solutions/miracl-crypto-sdk/
+LICENSE_TEXT_COMMERCIAL+= for more details.
+LICENSE_FILE= ${FILESDIR}/LICENSE
+LICENSE_PERMS_COMMERCIAL= dist-mirror dist-sell pkg-mirror pkg-sell no-auto-accept
+
+ONLY_FOR_ARCHS= i386 amd64
+
USE_ZIP= yes
-NO_WRKSUBDIR= yes
+USE_LDCONFIG= yes
-EXTRACT_BEFORE_ARGS= -j -aa -L
+EXTRACT_BEFORE_ARGS= -j -aa -L -q
+EXTRACT_AFTER_ARGS= -d ${WRKSRC}
PLIST_FILES= lib/libmiracl.a \
include/miracl.h include/mirdef.h
@@ -33,8 +43,6 @@ PLIST_FILES= lib/libmiracl.a \
BUILDCMD= linux
.elif ${ARCH} == "amd64"
BUILDCMD= linux64
-.else
-IGNORE= Builds on x86 and amd64 only
.endif
post-patch:
@@ -53,9 +61,15 @@ post-patch:
-e 's|-O2|${CFLAGS} -fPIC|' \
${WRKSRC}/${BUILDCMD}
.endif
+# Don't error when files not found
+# Fix mrmuldv.cc not existing
+ @${REINPLACE_CMD} -E \
+ -e 's|^rm |${RM} -f |' \
+ -e 's|^cp mrmuldv\.cc mrmuldv\.c|${CP} mrmuldv.gcc mrmuldv.c|' \
+ ${WRKSRC}/${BUILDCMD}
do-build:
- @cd ${WRKSRC} && ${SH} ./${BUILDCMD}
+ @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${SH} -ve ./${BUILDCMD}
do-install:
# lib
diff --git a/math/miracl/distinfo b/math/miracl/distinfo
index 9f451fe3dc9b..f2a9fe35569a 100644
--- a/math/miracl/distinfo
+++ b/math/miracl/distinfo
@@ -1,2 +1,2 @@
-SHA256 (miracl/5.3.2/miracl.zip) = c4fb4cf32090cce202cf0ea152da6b2e7f8633da64dd41b0d5833d900f8c5462
-SIZE (miracl/5.3.2/miracl.zip) = 1643702
+SHA256 (miracl-5.6.zip) = c9e3fe5ff071486f5b6ed61ebb79bb6f3edd2f3bb5031cb4e5b7ce64a17fff9c
+SIZE (miracl-5.6.zip) = 1581088
diff --git a/math/miracl/files/LICENSE b/math/miracl/files/LICENSE
new file mode 100644
index 000000000000..b5de06901a59
--- /dev/null
+++ b/math/miracl/files/LICENSE
@@ -0,0 +1,34 @@
+/***************************************************************************
+ *
+Copyright 2012 CertiVox IOM Ltd. *
+ *
+This file is part of CertiVox MIRACL Crypto SDK. *
+ *
+The CertiVox MIRACL Crypto SDK provides developers with an *
+extensive and efficient set of cryptographic functions. *
+For further information about its features and functionalities please *
+refer to http://www.certivox.com *
+ *
+* The CertiVox MIRACL Crypto SDK is free software: you can *
+ redistribute it and/or modify it under the terms of the *
+ GNU Affero General Public License as published by the *
+ Free Software Foundation, either version 3 of the License, *
+ or (at your option) any later version. *
+ *
+* The CertiVox MIRACL Crypto SDK is distributed in the hope *
+ that it will be useful, but WITHOUT ANY WARRANTY; without even the *
+ implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
+ See the GNU Affero General Public License for more details. *
+ *
+* You should have received a copy of the GNU Affero General Public *
+ License along with CertiVox MIRACL Crypto SDK. *
+ If not, see <http://www.gnu.org/licenses/>. *
+ *
+You can be released from the requirements of the license by purchasing *
+a commercial license. Buying such a license is mandatory as soon as you *
+develop commercial activities involving the CertiVox MIRACL Crypto SDK *
+without disclosing the source code of your own applications, or shipping *
+the CertiVox MIRACL Crypto SDK with a closed source product. *
+ *
+***************************************************************************/
+
diff --git a/math/miracl/pkg-descr b/math/miracl/pkg-descr
index ae8d97fbbeec..5cd10ae4d8e2 100644
--- a/math/miracl/pkg-descr
+++ b/math/miracl/pkg-descr
@@ -15,4 +15,4 @@ implemented as a C library, a well-thought out C++ wrapper is
provided, which greatly simplifies program development. Most example
programs (25+ of them) are provided in both C and C++ versions.
-WWW: http://www.shamus.ie/
+WWW: http://certivox.com/index.php/solutions/miracl-crypto-sdk