- Update to algol68g 2.0.2
- Enable threading
This commit is contained in:
parent
c93495d424
commit
a05b34c4e3
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=264320
3 changed files with 39 additions and 39 deletions
|
@ -6,7 +6,7 @@
|
|||
#
|
||||
|
||||
PORTNAME= algol68g
|
||||
PORTVERSION= 2.0.1
|
||||
PORTVERSION= 2.0.2
|
||||
CATEGORIES= lang
|
||||
MASTER_SITES= http://www.xs4all.nl/~jmvdveer/
|
||||
DISTFILES= ${PORTNAME}-${PORTVERSION}.tgz
|
||||
|
@ -21,7 +21,7 @@ OPTIONS= PLOT "GNU plot support" On \
|
|||
PGSQL "Postgresql support" On
|
||||
|
||||
HAS_CONFIGURE= yes
|
||||
CONFIGURE_ARGS= -macosx
|
||||
CONFIGURE_ARGS= -O -macosx -threads
|
||||
CONFIGURE_ENV+= LOCALBASE=${LOCALBASE}
|
||||
MAKEFILE= makefile
|
||||
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
MD5 (algol68g-2.0.1.tgz) = 035f494eec49f773010b9ba07d405bdd
|
||||
SHA256 (algol68g-2.0.1.tgz) = b154ae0d848432687ca6c9071fe4a58f9bd0bddcdefcba5260e75928eeef792b
|
||||
SIZE (algol68g-2.0.1.tgz) = 370622
|
||||
MD5 (a68g-doc.pdf) = 5618ad6dae4376411e14961a1e134e56
|
||||
SHA256 (algol68g-2.0.2.tgz) = 74ccd03a45e5f948f5b53a95dd60c391b4625cad1e2b1ac618f65702ca163e54
|
||||
SIZE (algol68g-2.0.2.tgz) = 368474
|
||||
SHA256 (a68g-doc.pdf) = 064b6761207d937aa704d245fc871a072f5a33ea23a346cb136ec8b2078ea321
|
||||
SIZE (a68g-doc.pdf) = 2997138
|
||||
|
|
|
@ -1,29 +1,40 @@
|
|||
--- configure.orig 2010-09-07 00:54:27.000000000 +0200
|
||||
+++ configure 2010-09-09 23:01:01.000000000 +0200
|
||||
@@ -38,7 +38,7 @@ PWD=`pwd`
|
||||
SYS_INC=/usr/include
|
||||
SYS_LIB=/usr/lib
|
||||
SYS_BIN=/usr/bin
|
||||
-SYS_LOC=/usr/local
|
||||
+SYS_LOC=$LOCALBASE
|
||||
LOC_INC=$SYS_LOC/include
|
||||
LOC_LIB=$SYS_LOC/lib
|
||||
A68G_CHECK="./regression-$VERSION_NUMBER"
|
||||
@@ -865,11 +865,11 @@ then
|
||||
echo "SQL_DIR=$SQL_DIR">>$BUILD_FILE
|
||||
echo "SQL_LIBS=-lpq" 1>>$BUILD_FILE
|
||||
echo "SQL_FLAG=-DENABLE_POSTGRESQL" 1>>$BUILD_FILE
|
||||
- elif [ -f $SYS_LIB/libpq.so -o -f $SYS_LIB/libpq.a -o -f $SYS_LIB/libpq.dylib ]
|
||||
+ elif [ -f $LOC_LIB/libpq.so -o -f $SYS_LIB/libpq.a -o -f $SYS_LIB/libpq.dylib ]
|
||||
--- configure.orig 2010-11-07 16:22:28.000000000 +0100
|
||||
+++ configure 2010-11-09 21:02:05.000000000 +0100
|
||||
@@ -47,7 +47,7 @@ A68G_DOC="./doc"
|
||||
A68G_HTML_TEMPLATES="$A68G_DOC/html"
|
||||
A68G_LATEX_TEMPLATES="$A68G_DOC/latex"
|
||||
A68G_SOURCE="./source"
|
||||
-SQL_DIR=$USR_LOC/pgsql
|
||||
+SQL_DIR=$USR_LOC
|
||||
UPLOAD_DIR="upload-$VERSION_NUMBER"
|
||||
BUILD_FILE="$A68G_SOURCE/$MAKEFILE"
|
||||
CONFIG_FILE="$A68G_SOURCE/config.h"
|
||||
@@ -700,14 +700,8 @@ then
|
||||
printf "checking for POSIX threads ... "
|
||||
if [ -f $USR_INC/pthread.h ]
|
||||
then
|
||||
libpostgresql=yes
|
||||
echo "yes"
|
||||
- echo "SQL_DIR=`dirname $SYS_LIB`">>$BUILD_FILE
|
||||
+ echo "SQL_DIR=`dirname $LOC_LIB`">>$BUILD_FILE
|
||||
echo "SQL_LIBS=-lpq" 1>>$BUILD_FILE
|
||||
echo "SQL_FLAG=-DENABLE_POSTGRESQL" 1>>$BUILD_FILE
|
||||
- if [ -f $USR_LIB/libpthread.so -o -f $USR_LIB/libpthread.a -o -f $USR_LIB/libpthread.dylib ]
|
||||
- then
|
||||
- echo "yes"
|
||||
- echo "POSIX_THREADS_LIBS=-lpthread" 1>>$BUILD_FILE
|
||||
+ echo "POSIX_THREADS_LIBS=-pthread" 1>>$BUILD_FILE
|
||||
echo "POSIX_THREADS_FLAG=-DENABLE_PAR_CLAUSE" 1>>$BUILD_FILE
|
||||
- else
|
||||
- echo "no"
|
||||
- fi
|
||||
else
|
||||
@@ -996,7 +996,7 @@ FLAGS=$(CPPFLAGS) $(STD_CFLAGS) $(POSIX_
|
||||
echo "no"
|
||||
fi
|
||||
@@ -962,7 +956,7 @@ FLAGS=$(CPPFLAGS) $(STD_CFLAGS) $(POSIX_
|
||||
all: a68g
|
||||
a68g: $(CS)
|
||||
@echo "building a68g ..."
|
||||
- @$(CC) $(CS) -Wl,--export-dynamic $(CFLAGS) $(STD_LD_FLAGS) $(POSIX_THREADS_LIBS) $(PLOTUTILS_LIBS) $(GSL_LIBS) $(CURSES_LIBS) $(SQL_LIBS) $(READLINE_LIBS) -lm -ldl $(LD_FLAGS) -o a68g
|
||||
+ @$(CC) $(CS) -Wl,--export-dynamic $(CFLAGS) $(STD_LD_FLAGS) $(POSIX_THREADS_LIBS) $(PLOTUTILS_LIBS) $(GSL_LIBS) $(CURSES_LIBS) $(SQL_LIBS) $(READLINE_LIBS) -lm $(LD_FLAGS) -o a68g
|
||||
$(CS): $(HS)
|
||||
.c.o:
|
||||
@echo "compiling $<"
|
||||
@@ -980,7 +974,7 @@ FLAGS=$(CPPFLAGS) $(STD_CFLAGS) $(POSIX_
|
||||
all: a68g
|
||||
a68g: $(CS)
|
||||
@echo "building a68g ..."
|
||||
|
@ -32,12 +43,3 @@
|
|||
$(CS): $(HS)
|
||||
.c.o:
|
||||
@echo "compiling $<"
|
||||
@@ -1142,7 +1142,7 @@ int main (int argc, char **argv) {
|
||||
printf ("%s", PACKAGE_VERSION);
|
||||
}
|
||||
_ACEOF
|
||||
- gcc pgvers.c -I$SQL_DIR/include -o pgvers
|
||||
+ gcc pgvers.c -I$LOC_INC -o pgvers
|
||||
echo "#define A68_PG_VERSION \"`./pgvers`\"" 1>>$CONFIG_FILE
|
||||
rm pgvers*
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue