mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
Update to 3.4.0 release and add support for amd64.
This commit is contained in:
parent
de905d7ab2
commit
cfc3c50827
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=270298
@ -6,18 +6,15 @@
|
||||
#
|
||||
|
||||
PORTNAME= cryptlib
|
||||
PORTVERSION= 3.3.1
|
||||
PORTVERSION= 3.4.0
|
||||
CATEGORIES= security
|
||||
MASTER_SITES= ftp://ftp.franken.de/pub/crypt/cryptlib/
|
||||
DISTNAME= cl${PORTVERSION:S/.//g}
|
||||
EXTRACT_SUFX= .zip
|
||||
|
||||
MAINTAINER= ale@FreeBSD.org
|
||||
COMMENT= A powerful security programming toolkit
|
||||
|
||||
OPTIONS= OPTIMIZED_CFLAGS "Build with optimized CFLAGS" off
|
||||
|
||||
ONLY_FOR_ARCHS= i386
|
||||
ONLY_FOR_ARCHS= i386 amd64
|
||||
|
||||
USE_ZIP= yes
|
||||
EXTRACT_BEFORE_ARGS= -aq
|
||||
@ -27,23 +24,23 @@ MAKEFILE= makefile
|
||||
ALL_TARGET= default FreeBSD shared
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
PLIST_FILES= include/cryptlib.h \
|
||||
lib/libcl.a lib/libcl.so \
|
||||
lib/libcl.so.3 lib/libcl.so.${PORTVERSION}
|
||||
|
||||
PORTDOCS= README
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
post-patch:
|
||||
.if defined(WITH_OPTIMIZED_CFLAGS)
|
||||
@${REINPLACE_CMD} -e 's/%%CFLAGS%%/${CFLAGS:N-O*:N-f*} -fomit-frame-pointer -O3/' ${WRKSRC}/makefile
|
||||
.else
|
||||
@${REINPLACE_CMD} -e 's/%%CFLAGS%%/${CFLAGS}/' ${WRKSRC}/makefile
|
||||
.endif
|
||||
@${REINPLACE_CMD} -e 's/%%PTHREAD_CFLAGS%%/${PTHREAD_CFLAGS}/' ${WRKSRC}/makefile
|
||||
@${REINPLACE_CMD} -e 's/%%PTHREAD_LIBS%%/${PTHREAD_LIBS}/' ${WRKSRC}/tools/getlibs.sh
|
||||
|
||||
do-install:
|
||||
${INSTALL_DATA} ${WRKSRC}/libcl.a ${WRKSRC}/libcl.so.3.3.0 \
|
||||
${INSTALL_DATA} ${WRKSRC}/libcl.a ${WRKSRC}/libcl.so.${PORTVERSION} \
|
||||
${PREFIX}/lib
|
||||
${LN} -sf ${PREFIX}/lib/libcl.so.3.3.0 ${PREFIX}/lib/libcl.so.3
|
||||
${LN} -sf ${PREFIX}/lib/libcl.so.${PORTVERSION} ${PREFIX}/lib/libcl.so.3
|
||||
${LN} -sf ${PREFIX}/lib/libcl.so.3 ${PREFIX}/lib/libcl.so
|
||||
${INSTALL_DATA} ${WRKSRC}/cryptlib.h ${PREFIX}/include
|
||||
|
||||
|
@ -1,3 +1,2 @@
|
||||
MD5 (cl331.zip) = 3e93e5aa0b33fb1d5b05b099f01e0afe
|
||||
SHA256 (cl331.zip) = 630ac09c4febc5c131ed2e0370a10595008a849f4cb36427dc1be06463ed4079
|
||||
SIZE (cl331.zip) = 3802344
|
||||
SHA256 (cl340.zip) = fff4cca9e70e579763882cd58bc8a5b36c52c20a7ace6c8b21c5e4e9e05fd9d5
|
||||
SIZE (cl340.zip) = 5514751
|
||||
|
@ -1,11 +1,11 @@
|
||||
--- makefile.orig Sat Jan 27 22:14:40 2007
|
||||
+++ makefile Fri Mar 30 14:40:47 2007
|
||||
@@ -1340,7 +1340,7 @@
|
||||
--- makefile.orig 2010-11-19 04:08:54.000000000 +0100
|
||||
+++ makefile 2011-03-04 15:30:09.000000000 +0100
|
||||
@@ -1651,7 +1651,7 @@ FreeBSD:
|
||||
@if uname -m | grep "i[3,4,5,6]86" > /dev/null; then \
|
||||
./tools/buildasm.sh $(AS) $(OBJPATH) ; \
|
||||
make $(DEFINES) EXTRAOBJS="$(ASMOBJS)" CFLAGS="$(CFLAGS) -DUSE_ASM \
|
||||
- -fomit-frame-pointer -O3 -pthread" ; \
|
||||
- -fomit-frame-pointer -pthread" ; \
|
||||
+ %%CFLAGS%% %%PTHREAD_CFLAGS%%" ; \
|
||||
else \
|
||||
make $(DEFINES) EXTRAOBJS="$(ASMOBJS)" CFLAGS="$(CFLAGS) -DUSE_ASM \
|
||||
-fomit-frame-pointer -O3 -pthread" ; \
|
||||
make $(DEFINES) CFLAGS="$(CFLAGS) -fomit-frame-pointer -pthread" ; \
|
||||
fi
|
||||
|
@ -1,6 +1,6 @@
|
||||
--- misc/config.h.orig Fri Jul 14 08:18:03 2006
|
||||
+++ misc/config.h Fri Jul 14 08:19:19 2006
|
||||
@@ -168,6 +168,7 @@
|
||||
--- misc/config.h.orig 2010-12-21 02:29:54.000000000 +0100
|
||||
+++ misc/config.h 2011-03-04 15:31:57.000000000 +0100
|
||||
@@ -287,6 +287,7 @@
|
||||
|
||||
/* General device usage */
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
--- misc/os_spec.h.orig Fri Jul 14 08:31:41 2006
|
||||
+++ misc/os_spec.h Fri Jul 14 08:31:18 2006
|
||||
@@ -481,7 +481,7 @@
|
||||
--- misc/os_spec.h.orig 2010-10-13 23:58:52.000000000 +0200
|
||||
+++ misc/os_spec.h 2011-03-04 15:31:57.000000000 +0100
|
||||
@@ -601,7 +601,7 @@ typedef unsigned char BYTE;
|
||||
|
||||
#if defined( __WINDOWS__ ) || \
|
||||
( defined( __UNIX__ ) && \
|
||||
|
@ -1,16 +1,25 @@
|
||||
--- tools/ccopts.sh.orig Fri Jul 14 08:37:59 2006
|
||||
+++ tools/ccopts.sh Fri Jul 14 08:38:19 2006
|
||||
@@ -129,13 +129,6 @@
|
||||
# "version gcc" (we can't use just "gcc" by itself since this appears
|
||||
# elsewhere in the gcc -v output).
|
||||
--- tools/ccopts.sh.orig 2010-12-19 00:57:12.000000000 +0100
|
||||
+++ tools/ccopts.sh 2011-03-04 15:33:54.000000000 +0100
|
||||
@@ -341,22 +341,6 @@ fi
|
||||
# in situations that also use shared libs, in the case of x86-64 the use
|
||||
# of PIC should have minimum overhead so it shouldn't be a big deal.
|
||||
|
||||
-if [ `uname -m | grep "i[3,4,5,6]86"` > /dev/null ] ; then
|
||||
- if [ `gcc --version 2>&1 | head -n 1 | tr -d '[A-Za-z]. ()' | cut -c 1` -gt 2 ] ; then
|
||||
- CCARGS="$CCARGS -march=pentium" ;
|
||||
-if [ "$ARCH" = "i586" -o "$ARCH" = "i686" -o "$ARCH" = "x86_64" ] ; then
|
||||
- if [ "$GCC_VER" -ge 30 ] ; then
|
||||
- case $ARCH in
|
||||
- 'x86_64')
|
||||
- CCARGS="$CCARGS -march=opteron -fPIC" ;;
|
||||
-
|
||||
- 'i686')
|
||||
- CCARGS="$CCARGS -march=pentiumpro" ;;
|
||||
-
|
||||
- *)
|
||||
- CCARGS="$CCARGS -march=pentium" ;;
|
||||
- esac ;
|
||||
- else
|
||||
- CCARGS="$CCARGS -mcpu=pentium" ;
|
||||
- fi
|
||||
- fi ;
|
||||
-fi
|
||||
|
||||
# Check for gcc 4.x with its stupid default setting of -Wpointer-sign,
|
||||
# which leads to endless warnings about signed vs.unsigned char problems -
|
||||
# gcc 4.x for 64-bit architectures has an optimiser bug that removes an
|
||||
# empty-list check in cryptlib's list-management code (this has been
|
||||
|
@ -1,5 +0,0 @@
|
||||
include/cryptlib.h
|
||||
lib/libcl.a
|
||||
lib/libcl.so
|
||||
lib/libcl.so.3
|
||||
lib/libcl.so.3.3.0
|
Loading…
Reference in New Issue
Block a user