aboutsummaryrefslogtreecommitdiffstats
path: root/biology/babel
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2015-09-02 18:10:06 +0800
committerdanfe <danfe@FreeBSD.org>2015-09-02 18:10:06 +0800
commit4eb27d102ed6a30b1963bff0597925fd61788730 (patch)
tree3786030001048f0fee9200702743d9e324cbd05b /biology/babel
parentda53245bbcce380d42bf890a87c634b2c3949749 (diff)
downloadfreebsd-ports-gnome-4eb27d102ed6a30b1963bff0597925fd61788730.tar.gz
freebsd-ports-gnome-4eb27d102ed6a30b1963bff0597925fd61788730.tar.zst
freebsd-ports-gnome-4eb27d102ed6a30b1963bff0597925fd61788730.zip
Unbreak the build on PowerPC (at least) by always using va_copy() macro for
copying variable argument lists, not just on AMD64.
Diffstat (limited to 'biology/babel')
-rw-r--r--biology/babel/Makefile4
-rw-r--r--biology/babel/files/patch-block.c23
2 files changed, 7 insertions, 20 deletions
diff --git a/biology/babel/Makefile b/biology/babel/Makefile
index 48304650b902..c291d5c0b36e 100644
--- a/biology/babel/Makefile
+++ b/biology/babel/Makefile
@@ -16,14 +16,12 @@ CONFLICTS_INSTALL= openbabel-*
USES= tar:Z
MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}"
-PLIST_FILES+= bin/babel libexec/babel
+PLIST_FILES= bin/babel libexec/babel
PORTDATA= element.lis new.lis quanta.lis types.lis
PORTDOCS= README.1ST
OPTIONS_DEFINE= DOCS
-BROKEN_powerpc= Does not compile on powerpc
-
post-build:
${SED} -e 's%@PREFIX@%${PREFIX}%g' \
${FILESDIR}/babel.sh >${WRKSRC}/babel.sh
diff --git a/biology/babel/files/patch-block.c b/biology/babel/files/patch-block.c
index ab963562f575..640a8849605a 100644
--- a/biology/babel/files/patch-block.c
+++ b/biology/babel/files/patch-block.c
@@ -1,39 +1,28 @@
--- block.c.orig Tue Jan 21 16:52:32 1997
+++ block.c Sun Feb 1 22:56:41 2004
-@@ -7,6 +7,10 @@
+@@ -7,6 +7,7 @@
*/
#include "bbltyp.h"
-+#include <osreldate.h>
-+#if __FreeBSD_version > 500000
+#include <stdarg.h>
-+#endif
/* the routine that does all the work */
static int block__doalloc(int, block_ptr *, const char *, va_list);
-@@ -99,7 +103,11 @@
+@@ -99,7 +100,7 @@ block__doalloc(int clear, block_ptr *han
void *array;
/* calc how much space we are gonna need */
-+ #if __FreeBSD_version > 500000 && defined(__amd64__)
+- ap = initap;
+ va_copy(ap, initap);
-+ #else
- ap = initap;
-+ #endif
size = 0;
for(i=0; types[i] != '\0'; i++)
{
-@@ -115,8 +123,12 @@
-
+@@ -116,7 +117,7 @@ block__doalloc(int clear, block_ptr *han
/* set up the ptrs if we can alloc the memory */
if(*handle != NULL)
-- {
-+ {
-+ #if __FreeBSD_version > 500000 && defined(__amd64__)
+ {
+- ap = initap;
+ va_copy(ap, initap);
-+ #else
- ap = initap;
-+ #endif
ptr = 0;
for(i=0; types[i] != '\0'; i++)
{