diff --git a/lang/Makefile b/lang/Makefile index f256e6b0c2c6..17f263ea47e7 100644 --- a/lang/Makefile +++ b/lang/Makefile @@ -1,385 +1,386 @@ # $FreeBSD$ # COMMENT = Programming languages SUBDIR += Gofer SUBDIR += STk SUBDIR += Sather SUBDIR += TenDRA SUBDIR += abcl SUBDIR += afnix SUBDIR += alisp + SUBDIR += algol68g SUBDIR += arena SUBDIR += asn1c SUBDIR += atlast SUBDIR += awka SUBDIR += bas2tap SUBDIR += bf2c SUBDIR += bigloo SUBDIR += boo SUBDIR += bsh SUBDIR += bwbasic SUBDIR += caml-light SUBDIR += ccl SUBDIR += cdent SUBDIR += cduce SUBDIR += cfortran SUBDIR += chicken SUBDIR += cim SUBDIR += cint SUBDIR += clips SUBDIR += clisp SUBDIR += clojure SUBDIR += clojure-contrib SUBDIR += clojure-mode.el SUBDIR += cmucl SUBDIR += cmucl-extra SUBDIR += cocor SUBDIR += compaq-cc SUBDIR += cparser SUBDIR += csharp-mode.el SUBDIR += cu-prolog SUBDIR += cython SUBDIR += dice SUBDIR += diveintopython SUBDIR += dlv SUBDIR += dylan SUBDIR += ecl SUBDIR += eiffel SUBDIR += elan SUBDIR += elisp-manual SUBDIR += elk SUBDIR += emacs-lisp-intro SUBDIR += embryo SUBDIR += eperl SUBDIR += erlang SUBDIR += erlang-lite SUBDIR += etoile-compiler SUBDIR += etoile-io SUBDIR += etoile-languagekit SUBDIR += etoile-lkplugins SUBDIR += etoile-scriptkit SUBDIR += etoile-smalltalkkit SUBDIR += execline SUBDIR += expect SUBDIR += expect-devel SUBDIR += ezm3 SUBDIR += f2c SUBDIR += f77 SUBDIR += fasm SUBDIR += fbbi SUBDIR += ferite SUBDIR += ficl SUBDIR += fpc SUBDIR += fpc-base SUBDIR += fpc-docs SUBDIR += fpc-lua SUBDIR += fpc-rexx SUBDIR += fpc-tcl SUBDIR += fpc-units SUBDIR += fpc-utils SUBDIR += freetxl SUBDIR += fsharp SUBDIR += g95 SUBDIR += gambas SUBDIR += gambas2 SUBDIR += gambas2-base SUBDIR += gambas2-components SUBDIR += gambas2-examples SUBDIR += gambit-c SUBDIR += gauche SUBDIR += gawk SUBDIR += gcc34 SUBDIR += gcc42 SUBDIR += gcc44 SUBDIR += gcc45 SUBDIR += gcc46 SUBDIR += gcl SUBDIR += gdc SUBDIR += gforth SUBDIR += ghc SUBDIR += gjs SUBDIR += gnat SUBDIR += gnat-doc-html SUBDIR += gnat-doc-info SUBDIR += gnat-doc-ps SUBDIR += gnat-doc-texi SUBDIR += gnat-doc-txt SUBDIR += gnat-gcc42 SUBDIR += gnat-gcc43 SUBDIR += gnat-gcc44 SUBDIR += gnustep-base SUBDIR += gnustep-guile SUBDIR += gnustep-objc SUBDIR += go SUBDIR += gpc SUBDIR += gprolog SUBDIR += groovy SUBDIR += gscheme SUBDIR += guile SUBDIR += harbour SUBDIR += haskell-mode.el SUBDIR += hla SUBDIR += hope SUBDIR += hs-brainfuck SUBDIR += hs-unlambda SUBDIR += huc SUBDIR += hugs SUBDIR += icc SUBDIR += ici SUBDIR += icon SUBDIR += ifc SUBDIR += ikarus SUBDIR += imp-interpreter SUBDIR += intel2gas SUBDIR += intercal SUBDIR += io SUBDIR += ironpython SUBDIR += itcl SUBDIR += jakarta-commons-jelly SUBDIR += jruby SUBDIR += jython SUBDIR += kawa SUBDIR += klogoturtle SUBDIR += klone SUBDIR += kroc SUBDIR += lafontaine SUBDIR += ldc-devel SUBDIR += libhx SUBDIR += libjit SUBDIR += librep SUBDIR += libstdc++_stldoc_3.4.0 SUBDIR += libstdc++_stldoc_4.2.2 SUBDIR += libutils SUBDIR += linux-f10-libg2c SUBDIR += linux-f10-tcl85 SUBDIR += linux-f8-libg2c SUBDIR += linux-f8-tcl84 SUBDIR += linux-j SUBDIR += linux-libg2c SUBDIR += linux-libperl5.8 SUBDIR += llvm-gcc4 SUBDIR += logo SUBDIR += lua SUBDIR += lua-mode.el SUBDIR += lua4 SUBDIR += lua50 SUBDIR += lush SUBDIR += maude SUBDIR += mawk SUBDIR += mdk SUBDIR += metaocaml SUBDIR += mit-scheme SUBDIR += mixal SUBDIR += ml-pnet SUBDIR += mlton SUBDIR += mmix SUBDIR += mono SUBDIR += mono-basic SUBDIR += moscow_ml SUBDIR += mosh SUBDIR += mozart SUBDIR += mpd SUBDIR += mtasc SUBDIR += munger SUBDIR += nawk SUBDIR += nbc SUBDIR += nbfc SUBDIR += neko SUBDIR += nesasm SUBDIR += newlisp SUBDIR += nhc98 SUBDIR += nickle SUBDIR += njs SUBDIR += nml SUBDIR += nqc SUBDIR += nwcc SUBDIR += objc SUBDIR += ocaml SUBDIR += ocaml-autoconf SUBDIR += ocaml-camlidl SUBDIR += ocaml-doc SUBDIR += ocaml-examples SUBDIR += ocaml-mode.el SUBDIR += ocaml-nox11 SUBDIR += ocamlduce SUBDIR += ocs SUBDIR += ofc SUBDIR += ohugs SUBDIR += onyx SUBDIR += oo2c SUBDIR += oorexx SUBDIR += open-cobol SUBDIR += open-cobol-devel SUBDIR += opendylan SUBDIR += osb-jscore SUBDIR += otcl SUBDIR += p2c SUBDIR += p5-Data-JavaScript SUBDIR += p5-Error SUBDIR += p5-Expect SUBDIR += p5-F77 SUBDIR += p5-Interpolation SUBDIR += p5-JSAN SUBDIR += p5-JavaScript SUBDIR += p5-JavaScript-SpiderMonkey SUBDIR += p5-JavaScript-Squish SUBDIR += p5-List-MoreUtils SUBDIR += p5-Modern-Perl SUBDIR += p5-Perl6-Subs SUBDIR += p5-Pugs-Compiler-Rule SUBDIR += p5-Quantum-Superpositions SUBDIR += p5-Scalar-List-Utils SUBDIR += p5-Switch SUBDIR += p5-Tcl SUBDIR += p5-Test-XPath SUBDIR += p5-Try-Tiny SUBDIR += p5-TryCatch SUBDIR += p5-ePerl SUBDIR += p5-signatures SUBDIR += p5-v6 SUBDIR += parrot SUBDIR += pbasic SUBDIR += pcc SUBDIR += pecl-perl SUBDIR += perl5.10 SUBDIR += perl5.12 SUBDIR += perl5.8 SUBDIR += petite-chez SUBDIR += pfe-devel SUBDIR += phc SUBDIR += php-mode.el SUBDIR += php4 SUBDIR += php4-extensions SUBDIR += php4-overload SUBDIR += php5 SUBDIR += php5-extensions SUBDIR += php52 SUBDIR += php52-extensions SUBDIR += php_doc SUBDIR += picoc SUBDIR += pike76 SUBDIR += pike78 SUBDIR += pnet SUBDIR += pnet-base SUBDIR += pnetlib SUBDIR += polyml SUBDIR += ptoc SUBDIR += pugs SUBDIR += py-mx-base SUBDIR += py-prolog SUBDIR += python SUBDIR += python-doc-html SUBDIR += python-doc-pdf-a4 SUBDIR += python-doc-pdf-letter SUBDIR += python-doc-postscript-a4 SUBDIR += python-doc-postscript-letter SUBDIR += python-mode.el SUBDIR += python24 SUBDIR += python25 SUBDIR += python26 SUBDIR += python27 SUBDIR += python31 SUBDIR += q SUBDIR += qore SUBDIR += qscheme SUBDIR += racket SUBDIR += rakudo SUBDIR += ratfor SUBDIR += rexx-imc SUBDIR += rexx-regina SUBDIR += rexx-wrapper SUBDIR += rhino SUBDIR += rscheme SUBDIR += ruby-doc-stdlib SUBDIR += ruby-extensions SUBDIR += ruby-js SUBDIR += ruby-lua SUBDIR += ruby-lua4 SUBDIR += ruby-man SUBDIR += ruby-mode.el SUBDIR += ruby-perl SUBDIR += ruby-programmingruby SUBDIR += ruby-reference SUBDIR += ruby-usersguide SUBDIR += ruby18 SUBDIR += ruby19 SUBDIR += runawk SUBDIR += s9fes SUBDIR += sather-specification SUBDIR += sather-tutorial SUBDIR += sbcl SUBDIR += scala SUBDIR += scheme48 SUBDIR += schemetoc SUBDIR += scm SUBDIR += scriba SUBDIR += scsh SUBDIR += sdcc SUBDIR += sdcc-devel SUBDIR += see SUBDIR += see-devel SUBDIR += seed7 SUBDIR += siod SUBDIR += sisc SUBDIR += sketchy SUBDIR += slib SUBDIR += slib-gauche SUBDIR += slib-guile SUBDIR += slisp SUBDIR += smalltalk SUBDIR += smarteiffel SUBDIR += sml-mode.el SUBDIR += sml-nj SUBDIR += sml-nj-devel SUBDIR += snobol4 SUBDIR += spidermonkey SUBDIR += spl SUBDIR += squeak SUBDIR += squirrel SUBDIR += sr SUBDIR += stalin SUBDIR += starlogo SUBDIR += steptalk SUBDIR += stklos SUBDIR += stldoc SUBDIR += swi-pl SUBDIR += sxm SUBDIR += t3x SUBDIR += tcc SUBDIR += tcl-manual SUBDIR += tcl-modules SUBDIR += tcl-wrapper SUBDIR += tcl82 SUBDIR += tcl83 SUBDIR += tcl84 SUBDIR += tcl84-thread SUBDIR += tcl85 SUBDIR += tcl85-thread SUBDIR += tcl86 SUBDIR += tcl86-thread SUBDIR += tclX SUBDIR += tcltutor SUBDIR += tinypy SUBDIR += tolua SUBDIR += tolua++ SUBDIR += tolua++50 SUBDIR += tolua4 SUBDIR += tolua50 SUBDIR += treecc SUBDIR += tuareg-mode.el SUBDIR += twelf SUBDIR += u++ SUBDIR += ucc SUBDIR += vala SUBDIR += visualworks SUBDIR += whitespace SUBDIR += xds SUBDIR += xds-c SUBDIR += xotcl SUBDIR += yabasic SUBDIR += yorick SUBDIR += ypsilon .include diff --git a/lang/algol68g/Makefile b/lang/algol68g/Makefile new file mode 100644 index 000000000000..fbc214ce035c --- /dev/null +++ b/lang/algol68g/Makefile @@ -0,0 +1,59 @@ +# New ports collection makefile for: xshttpd +# Date created: 9 September 2010 +# Whom: Johan van Selst +# +# $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 + +.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 diff --git a/lang/algol68g/distinfo b/lang/algol68g/distinfo new file mode 100644 index 000000000000..5c8afe6c13bd --- /dev/null +++ b/lang/algol68g/distinfo @@ -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 diff --git a/lang/algol68g/files/patch-configure b/lang/algol68g/files/patch-configure new file mode 100644 index 000000000000..9b1a29e06dd6 --- /dev/null +++ b/lang/algol68g/files/patch-configure @@ -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 diff --git a/lang/algol68g/files/patch-source_algol68g.h b/lang/algol68g/files/patch-source_algol68g.h new file mode 100644 index 000000000000..f8e95dec9dbd --- /dev/null +++ b/lang/algol68g/files/patch-source_algol68g.h @@ -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 + #endif diff --git a/lang/algol68g/pkg-descr b/lang/algol68g/pkg-descr new file mode 100644 index 000000000000..99fd85e21338 --- /dev/null +++ b/lang/algol68g/pkg-descr @@ -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