blob: 7e317ceb4f5dc3083957ce7af48e330452fa8e53 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# New ports collection makefile for: MIRACL
# Date created: Mon Jan 17 21:38:16 UTC 2005
# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= miracl
PORTVERSION= 5.23
CATEGORIES= math
MASTER_SITES= ftp://ftp.computing.dcu.ie/pub/crypto/
DISTNAME= ${PORTNAME}
DIST_SUBDIR= ${PORTNAME}/${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Multiprecision Integer and Rational Arithmetic C/C++ Library
USE_ZIP= yes
NO_WRKSUBDIR= yes
EXTRACT_BEFORE_ARGS= -j -aa -L
PLIST_FILES= lib/libmiracl.a \
include/miracl.h include/mirdef.h
.include <bsd.port.pre.mk>
.if ${ARCH} != "i386"
BROKEN= Does not build on !i386
.endif
post-patch:
# C{C,XX} safeness
# CFLAGS safeness
@${REINPLACE_CMD} -E \
-e 's|gcc|${CC}|' \
-e 's|g\+\+|${CXX}|' \
-e 's|-O2|${CFLAGS}|' \
${WRKSRC}/linux
do-build:
@cd ${WRKSRC} && ${SH} ./linux
do-install:
# lib
@${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.a \
${PREFIX}/lib/lib${PORTNAME}.a
# headers
@${INSTALL_DATA} ${WRKSRC}/miracl.h \
${PREFIX}/include/miracl.h
@${INSTALL_DATA} ${WRKSRC}/mirdef.h \
${PREFIX}/include/mirdef.h
.include <bsd.port.post.mk>
|