diff options
author | pi <pi@FreeBSD.org> | 2014-09-03 04:47:43 +0800 |
---|---|---|
committer | pi <pi@FreeBSD.org> | 2014-09-03 04:47:43 +0800 |
commit | 7ef7e28c716c6529c43e97f3f168fe0e3085f8fd (patch) | |
tree | 517d2e0b3f4d25bfe9eed1d6d270858eadd8ecd6 /security/libgcrypt | |
parent | 18f189c3290a8618851406a9040807734ca4a82f (diff) | |
download | freebsd-ports-gnome-7ef7e28c716c6529c43e97f3f168fe0e3085f8fd.tar.gz freebsd-ports-gnome-7ef7e28c716c6529c43e97f3f168fe0e3085f8fd.tar.zst freebsd-ports-gnome-7ef7e28c716c6529c43e97f3f168fe0e3085f8fd.zip |
security/libgcrypt: fix build without assembler on 8.x/amd64
PR: 192555
Submitted by: Carlos Jacobo Puga Medina <cpm@fbsd.es>
Approved by: maintainer (timeout)
Diffstat (limited to 'security/libgcrypt')
-rw-r--r-- | security/libgcrypt/Makefile | 12 | ||||
-rw-r--r-- | security/libgcrypt/files/extra-patch-configure | 11 |
2 files changed, 18 insertions, 5 deletions
diff --git a/security/libgcrypt/Makefile b/security/libgcrypt/Makefile index b0d50ed22485..81bfbf4bd656 100644 --- a/security/libgcrypt/Makefile +++ b/security/libgcrypt/Makefile @@ -2,7 +2,7 @@ PORTNAME= libgcrypt PORTVERSION= 1.6.1 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= security MASTER_SITES= ${MASTER_SITE_GNUPG} MASTER_SITE_SUBDIR= ${PORTNAME} @@ -41,10 +41,6 @@ CONFIGURE_ARGS+= --disable-asm CONFIGURE_ARGS+= --disable-aesni-support .endif -.elif ${ARCH} == "amd64" -.if (${OSVERSION} < 900000) -USE_GCC= yes -.endif CONFIGURE_ARGS+= --disable-drng-support .endif @@ -53,6 +49,12 @@ post-patch: ${RM} -f ${WRKSRC}/doc/gcrypt.info* ${REINPLACE_CMD} -e 's|ALIGN (3)|ALIGN (2)|g' ${WRKSRC}/mpi/i386/*.S +# Fix build without ASM on 8.x/amd64 +.if ${OPSYS} == FreeBSD && ${ARCH} == "amd64" && ${OSVERSION} < 900000 +USE_GCC= any +EXTRA_PATCHES+= ${FILESDIR}/extra-patch-configure +.endif + .if ${PORT_OPTIONS:MDOCS} post-install: ${MKDIR} ${STAGEDIR}${DOCSDIR} diff --git a/security/libgcrypt/files/extra-patch-configure b/security/libgcrypt/files/extra-patch-configure new file mode 100644 index 000000000000..9aa286ff144f --- /dev/null +++ b/security/libgcrypt/files/extra-patch-configure @@ -0,0 +1,11 @@ +--- configure.orig 2014-08-10 19:51:24.000000000 +0200 ++++ configure 2014-08-10 19:52:26.000000000 +0200 +@@ -16493,7 +16493,7 @@ + $as_echo "$gcry_cv_gcc_amd64_platform_as_ok" >&6; } + if test "$gcry_cv_gcc_amd64_platform_as_ok" = "yes" ; then + +-$as_echo "#define HAVE_COMPATIBLE_GCC_AMD64_PLATFORM_AS 1" >>confdefs.h ++$as_echo "#undef HAVE_COMPATIBLE_GCC_AMD64_PLATFORM_AS" >>confdefs.h + + fi + fi |