2012-12-12 03:35:49 +01:00
|
|
|
# Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
|
2005-01-18 02:43:38 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= miracl
|
2012-07-17 12:49:02 +02:00
|
|
|
PORTVERSION= 5.6
|
2008-07-09 14:49:27 +02:00
|
|
|
PORTEPOCH= 1
|
2005-01-18 02:43:38 +01:00
|
|
|
CATEGORIES= math
|
2012-08-03 00:34:01 +02:00
|
|
|
MASTER_SITES= http://mirror.shatow.net/freebsd/${PORTNAME}/ \
|
2007-05-22 22:13:57 +02:00
|
|
|
${MASTER_SITE_LOCAL}
|
2012-07-17 12:49:02 +02:00
|
|
|
MASTER_SITE_SUBDIR= jase
|
2005-01-18 02:43:38 +01:00
|
|
|
|
2012-08-03 00:34:01 +02:00
|
|
|
MAINTAINER= bdrewery@FreeBSD.org
|
2005-01-18 02:43:38 +01:00
|
|
|
COMMENT= Multiprecision Integer and Rational Arithmetic C/C++ Library
|
|
|
|
|
2012-07-17 12:49:02 +02:00
|
|
|
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
|
|
|
|
|
2005-01-18 02:43:38 +01:00
|
|
|
USE_ZIP= yes
|
2012-07-17 12:49:02 +02:00
|
|
|
USE_LDCONFIG= yes
|
2013-09-20 17:58:09 +02:00
|
|
|
NO_STAGE= yes
|
2005-01-18 02:43:38 +01:00
|
|
|
|
2012-07-17 12:49:02 +02:00
|
|
|
EXTRACT_BEFORE_ARGS= -j -aa -L -q
|
|
|
|
EXTRACT_AFTER_ARGS= -d ${WRKSRC}
|
2005-01-18 02:43:38 +01:00
|
|
|
|
2007-03-17 13:57:49 +01:00
|
|
|
PLIST_FILES= lib/libmiracl.a \
|
|
|
|
include/miracl.h include/mirdef.h
|
2005-01-18 02:43:38 +01:00
|
|
|
|
2005-04-30 03:14:31 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2008-03-31 14:34:42 +02:00
|
|
|
.if ${ARCH} == "i386"
|
|
|
|
BUILDCMD= linux
|
|
|
|
.elif ${ARCH} == "amd64"
|
|
|
|
BUILDCMD= linux64
|
2005-04-30 03:14:31 +02:00
|
|
|
.endif
|
|
|
|
|
2005-01-18 02:43:38 +01:00
|
|
|
post-patch:
|
|
|
|
# C{C,XX} safeness
|
|
|
|
# CFLAGS safeness
|
2008-04-04 17:22:17 +02:00
|
|
|
.if ${ARCH} == "i386"
|
|
|
|
@${REINPLACE_CMD} -E \
|
|
|
|
-e 's|gcc|${CC}|' \
|
|
|
|
-e 's|g\+\+|${CXX}|' \
|
|
|
|
-e 's|-O2|${CFLAGS}|' \
|
2008-04-05 14:52:06 +02:00
|
|
|
${WRKSRC}/${BUILDCMD}
|
2008-04-04 17:22:17 +02:00
|
|
|
.else
|
2005-01-18 02:43:38 +01:00
|
|
|
@${REINPLACE_CMD} -E \
|
|
|
|
-e 's|gcc|${CC}|' \
|
|
|
|
-e 's|g\+\+|${CXX}|' \
|
2008-03-31 14:34:42 +02:00
|
|
|
-e 's|-O2|${CFLAGS} -fPIC|' \
|
|
|
|
${WRKSRC}/${BUILDCMD}
|
2008-04-04 17:22:17 +02:00
|
|
|
.endif
|
2012-07-17 12:49:02 +02:00
|
|
|
# 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}
|
2005-01-18 02:43:38 +01:00
|
|
|
|
|
|
|
do-build:
|
2012-07-17 12:49:02 +02:00
|
|
|
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${SH} -ve ./${BUILDCMD}
|
2005-01-18 02:43:38 +01:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
# lib
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.a \
|
|
|
|
${PREFIX}/lib/lib${PORTNAME}.a
|
2007-03-17 13:57:49 +01:00
|
|
|
# headers
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/miracl.h \
|
|
|
|
${PREFIX}/include/miracl.h
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/mirdef.h \
|
|
|
|
${PREFIX}/include/mirdef.h
|
2005-01-18 02:43:38 +01:00
|
|
|
|
2005-04-30 03:14:31 +02:00
|
|
|
.include <bsd.port.post.mk>
|