1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-29 01:13:08 +00:00

Algol 68 `Genie' compiler

The development of Algol played an important role in establishing
computer science as an academic discipline. The Algol 68 Genie project
preserves Algol 68 out of educational as well as scientific-historical
interest, by making available Algol 68 Genie; a recent, well-featured
implementation written from scratch.

WWW: http://www.xs4all.nl/~jmvdveer/algol.html
This commit is contained in:
Johan van Selst 2010-09-09 21:19:13 +00:00
parent 02d08ccb5f
commit ac424824ad
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=260883
6 changed files with 131 additions and 0 deletions

View File

@ -10,6 +10,7 @@
SUBDIR += abcl
SUBDIR += afnix
SUBDIR += alisp
SUBDIR += algol68g
SUBDIR += arena
SUBDIR += asn1c
SUBDIR += atlast

59
lang/algol68g/Makefile Normal file
View File

@ -0,0 +1,59 @@
# New ports collection makefile for: xshttpd
# Date created: 9 September 2010
# Whom: Johan van Selst <johans@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= algol68g
PORTVERSION= 2.0.0
CATEGORIES= lang
MASTER_SITES= http://www.xs4all.nl/~jmvdveer/
DISTFILES= ${PORTNAME}-${PORTVERSION}.tgz
EXTRACT_ONLY= ${PORTNAME}-${PORTVERSION}.tgz
MAINTAINER= johans@FreeBSD.org
COMMENT= Alogol 68 Genie compiler
LIB_DEPENDS= gsl.15:${PORTSDIR}/math/gsl
OPTIONS= PLOT "GNU plot support" On \
PGSQL "Postgresql support" On
HAS_CONFIGURE= yes
CONFIGURE_ARGS= -macosx
CONFIGURE_ENV+= LOCALBASE=${LOCALBASE}
MAKEFILE= makefile
MAN1= a68g.1
PLIST_FILES= bin/a68g include/a68g.h
.include <bsd.port.options.mk>
.ifdef WITH_PLOT
LIB_DEPENDS+= plot.4:${PORTSDIR}/graphics/plotutils
.endif
.ifdef WITH_PGSQL
USE_PGSQL= yes
.endif
post-install:
@:
.ifndef NOPORTEXAMPLES
@${MKDIR} ${EXAMPLESDIR}
@${INSTALL_DATA} ${WRKSRC}/demo/* ${EXAMPLESDIR}
.endif
.ifndef NOPORTDOCS
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${DISTDIR}/${PORTDOCS} ${DOCSDIR}
PORTDOCS= a68g-doc.pdf
DISTFILES+= ${PORTDOCS}
.endif
.ifndef NOPORTEXAMPLES
PORTEXAMPLES= *
.endif
.include <bsd.port.mk>

6
lang/algol68g/distinfo Normal file
View File

@ -0,0 +1,6 @@
MD5 (algol68g-2.0.0.tgz) = fd2baa4c86d70c09f8c9d8117368f826
SHA256 (algol68g-2.0.0.tgz) = 9ce74cecd22945d00384fe97746cf21c030caaa10d1cf31b01f09dc8d986173c
SIZE (algol68g-2.0.0.tgz) = 369264
MD5 (a68g-doc.pdf) = 5618ad6dae4376411e14961a1e134e56
SHA256 (a68g-doc.pdf) = 064b6761207d937aa704d245fc871a072f5a33ea23a346cb136ec8b2078ea321
SIZE (a68g-doc.pdf) = 2997138

View File

@ -0,0 +1,43 @@
--- 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 ]
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
else
@@ -996,7 +996,7 @@ FLAGS=$(CPPFLAGS) $(STD_CFLAGS) $(POSIX_
all: a68g
a68g: $(CS)
@echo "building a68g ..."
- @$(CC) $(CS) -Wl $(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 $(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 $<"
@@ -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

View File

@ -0,0 +1,15 @@
--- source/algol68g.h.orig 2010-09-09 10:16:58.000000000 +0200
+++ source/algol68g.h 2010-09-09 09:58:41.000000000 +0200
@@ -65,12 +65,6 @@ typedef unsigned STATUS_MASK;
#endif
#endif
-#if defined ENABLE_MACOSX
-#define __off_t off_t
-#define __pid_t pid_t
-#define __mode_t mode_t
-#endif
-
#if defined ENABLE_POSTGRESQL
#include <libpq-fe.h>
#endif

7
lang/algol68g/pkg-descr Normal file
View File

@ -0,0 +1,7 @@
The development of Algol played an important role in establishing
computer science as an academic discipline. The Algol 68 Genie project
preserves Algol 68 out of educational as well as scientific-historical
interest, by making available Algol 68 Genie; a recent, well-featured
implementation written from scratch.
WWW: http://www.xs4all.nl/~jmvdveer/algol.html