- fix option THREADS

- bump PORTREVISION
PR:		170231
Submitted by:	Kubilay Kocak
This commit is contained in:
Dirk Meyer 2012-07-29 08:10:38 +00:00
parent e8dad37a3d
commit 8e4a0774cb
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=301677

View file

@ -8,7 +8,7 @@
PORTNAME= openssl PORTNAME= openssl
PORTVERSION= 1.0.1 PORTVERSION= 1.0.1
DISTVERSIONSUFFIX= c DISTVERSIONSUFFIX= c
PORTREVISION= 3 PORTREVISION= 4
CATEGORIES= security devel CATEGORIES= security devel
MASTER_SITES= http://www.openssl.org/%SUBDIR%/ \ MASTER_SITES= http://www.openssl.org/%SUBDIR%/ \
ftp://ftp.openssl.org/%SUBDIR%/ \ ftp://ftp.openssl.org/%SUBDIR%/ \
@ -1105,17 +1105,17 @@ PLIST_SUB+= WITH_RC5="@comment "
.endif .endif
.if ${PORT_OPTIONS:MPADLOCK} .if ${PORT_OPTIONS:MPADLOCK}
PATCH_DIST_STRIP= -p1 PATCH_DIST_STRIP= -p1
PATCH_SITES+= http://git.alpinelinux.org/cgit/aports/plain/main/openssl/:padlock PATCH_SITES+= http://git.alpinelinux.org/cgit/aports/plain/main/openssl/:padlock
PATCHFILES+= 0001-crypto-hmac-support-EVP_MD_CTX_FLAG_ONESHOT-and-set-.patch:padlock \ PATCHFILES+= 0001-crypto-hmac-support-EVP_MD_CTX_FLAG_ONESHOT-and-set-.patch:padlock \
0003-engines-e_padlock-backport-cvs-head-changes.patch:padlock \ 0003-engines-e_padlock-backport-cvs-head-changes.patch:padlock \
0004-engines-e_padlock-implement-sha1-sha224-sha256-accel.patch:padlock \ 0004-engines-e_padlock-implement-sha1-sha224-sha256-accel.patch:padlock \
0005-crypto-engine-autoload-padlock-dynamic-engine.patch:padlock 0005-crypto-engine-autoload-padlock-dynamic-engine.patch:padlock
.endif .endif
.if ${PORT_OPTIONS:MGMP} .if ${PORT_OPTIONS:MGMP}
EXTRACONFIGURE+= enable-gmp EXTRACONFIGURE+= enable-gmp
IGNORE= GMP is LGPLv3 an can not be linked. IGNORE= GMP is LGPLv3 and can not be linked
.else .else
EXTRACONFIGURE+= no-gmp EXTRACONFIGURE+= no-gmp
.endif .endif
@ -1146,15 +1146,16 @@ post-patch:
do-configure: do-configure:
@${REINPLACE_CMD} -e "s|options 386|options|" \ @${REINPLACE_CMD} -e "s|options 386|options|" \
${WRKSRC}/config ${WRKSRC}/config
.if ${PORT_OPTIONS:MTHREADS} .if ${PORT_OPTIONS:MTHREADS}
cd ${WRKSRC} \ cd ${WRKSRC} \
&& ${SETENV} CC="${CC}" FREEBSDCC="${CC}" CFLAGS="${CFLAGS}" PERL="${PERL}" \ && ${SETENV} CC="${CC}" FREEBSDCC="${CC}" CFLAGS="${CFLAGS}" PERL="${PERL}" \
PTHREAD_CFLAGS=${PTHREAD_CFLAGS} PTHREAD_LIBS=${PTHREAD_LIBS} \
./config --prefix=${PREFIX} --openssldir=${OPENSSLDIR} \ ./config --prefix=${PREFIX} --openssldir=${OPENSSLDIR} \
-L${PREFIX}/lib ${EXTRACONFIGURE} -L${PREFIX}/lib ${EXTRACONFIGURE}
.else .else
cd ${WRKSRC} \ cd ${WRKSRC} \
&& ${SETENV} CC="${CC}" FREEBSDCC="${CC}" CFLAGS="${CFLAGS}" PERL="${PERL}" \ && ${SETENV} CC="${CC}" FREEBSDCC="${CC}" CFLAGS="${CFLAGS}" PERL="${PERL}" \
PTHREAD_CFLAGS=${PTHREAD_CFLAGS} PTHREAD_LIBS=${PTHREAD_LIBS} \
./config --prefix=${PREFIX} --openssldir=${OPENSSLDIR} \ ./config --prefix=${PREFIX} --openssldir=${OPENSSLDIR} \
-L${PREFIX}/lib ${EXTRACONFIGURE} -L${PREFIX}/lib ${EXTRACONFIGURE}
.endif .endif