aboutsummaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
Diffstat (limited to 'math')
-rw-r--r--math/miracl/Makefile16
-rw-r--r--math/miracl/distinfo6
2 files changed, 13 insertions, 9 deletions
diff --git a/math/miracl/Makefile b/math/miracl/Makefile
index 5557bee2d830..4adf0bbef96e 100644
--- a/math/miracl/Makefile
+++ b/math/miracl/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= miracl
-PORTVERSION= 5.3
+PORTVERSION= 5.3.2
CATEGORIES= math
MASTER_SITES= ftp://ftp.computing.dcu.ie/pub/crypto/ \
${MASTER_SITE_LOCAL}
@@ -27,8 +27,12 @@ PLIST_FILES= lib/libmiracl.a \
.include <bsd.port.pre.mk>
-.if ${ARCH} != "i386"
-BROKEN= Does not build on !i386
+.if ${ARCH} == "i386"
+BUILDCMD= linux
+.elif ${ARCH} == "amd64"
+BUILDCMD= linux64
+.else
+IGNORE= Builds on x86 and amd64 only
.endif
post-patch:
@@ -37,11 +41,11 @@ post-patch:
@${REINPLACE_CMD} -E \
-e 's|gcc|${CC}|' \
-e 's|g\+\+|${CXX}|' \
- -e 's|-O2|${CFLAGS}|' \
- ${WRKSRC}/linux
+ -e 's|-O2|${CFLAGS} -fPIC|' \
+ ${WRKSRC}/${BUILDCMD}
do-build:
- @cd ${WRKSRC} && ${SH} ./linux
+ @cd ${WRKSRC} && ${SH} ./${BUILDCMD}
do-install:
# lib
diff --git a/math/miracl/distinfo b/math/miracl/distinfo
index bc159fe43458..cd550253d01c 100644
--- a/math/miracl/distinfo
+++ b/math/miracl/distinfo
@@ -1,3 +1,3 @@
-MD5 (miracl/5.3/miracl.zip) = 7ef68202b855ce90da8a4e84b5f51262
-SHA256 (miracl/5.3/miracl.zip) = 8c806f9ee60dbca52af93dd9c2e05a645022e1b5a6f4a367efbc6c533684fe15
-SIZE (miracl/5.3/miracl.zip) = 1528771
+MD5 (miracl/5.3.2/miracl.zip) = 4e7b8b3365d299239af69a70e25410b9
+SHA256 (miracl/5.3.2/miracl.zip) = c4fb4cf32090cce202cf0ea152da6b2e7f8633da64dd41b0d5833d900f8c5462
+SIZE (miracl/5.3.2/miracl.zip) = 1643702