aboutsummaryrefslogtreecommitdiffstats
path: root/lang
diff options
context:
space:
mode:
authorthierry <thierry@FreeBSD.org>2004-04-13 05:57:15 +0800
committerthierry <thierry@FreeBSD.org>2004-04-13 05:57:15 +0800
commitb776bf3ddacb777b451c87e2d3a20ada331969fc (patch)
tree5b2b8648c8120c922e736369975f81d180b786ff /lang
parentfd9f447b64cee61a65332a0e45854dbc673530b1 (diff)
downloadfreebsd-ports-gnome-b776bf3ddacb777b451c87e2d3a20ada331969fc.tar.gz
freebsd-ports-gnome-b776bf3ddacb777b451c87e2d3a20ada331969fc.tar.zst
freebsd-ports-gnome-b776bf3ddacb777b451c87e2d3a20ada331969fc.zip
Add fpc-demo 1.0.10, Free Pascal compiler examples.
PR: 62605 Submitted by: John Merryweather Cooper Approved by: pav (mentor).
Diffstat (limited to 'lang')
-rw-r--r--lang/Makefile1
-rw-r--r--lang/fpc-demo/Makefile72
-rw-r--r--lang/fpc-demo/distinfo2
-rw-r--r--lang/fpc-demo/pkg-descr9
-rw-r--r--lang/fpc-demo/pkg-plist58
5 files changed, 142 insertions, 0 deletions
diff --git a/lang/Makefile b/lang/Makefile
index ea8c9448ef59..0376013b2061 100644
--- a/lang/Makefile
+++ b/lang/Makefile
@@ -55,6 +55,7 @@
SUBDIR += ficl-devel
SUBDIR += forth
SUBDIR += fpc
+ SUBDIR += fpc-demo
SUBDIR += fpc-devel
SUBDIR += fpc-docs
SUBDIR += freetxl
diff --git a/lang/fpc-demo/Makefile b/lang/fpc-demo/Makefile
new file mode 100644
index 000000000000..c3910c0138e9
--- /dev/null
+++ b/lang/fpc-demo/Makefile
@@ -0,0 +1,72 @@
+# New ports collection makefile for: Free Pascal Examples
+# Date created: 9 February 2004
+# Whom: John Merryweather Cooper
+#
+# $FreeBSD$
+#
+
+PORTNAME= demo
+PORTVERSION= 1.0.10
+CATEGORIES= lang
+MASTER_SITES= ftp://ftp.freepascal.org/pub/fpc/dist/FreeBSD/ \
+ http://planetmirror.com/pub/fpc/dist/FreeBSD/ \
+ ftp://ftp.jp.freepascal.org/mirror/fpc/dist/FreeBSD/ \
+ ftp://freepascal.stack.nl/pub/fpc/dist/FreeBSD/ \
+ ftp://ftp.no.freepascal.org/pub/fpc/dist/FreeBSD/ \
+ ftp://ftp.us.freepascal.org/pub/fpc/dist/FreeBSD/ \
+ ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= freepascal
+PKGNAMEPREFIX= fpc-
+DISTNAME= ${PKGNAMEPREFIX}${PORTVERSION}.ELF
+EXTRACT_SUFX= .tar
+
+MAINTAINER= coop9211@uidaho.edu
+COMMENT= Free Pascal compiler examples
+
+EXAMPLESDIR= ${PREFIX}/share/examples/fpc
+NO_BUILD= yes
+
+SRCDOCDIR= ${WRKSRC}/share/doc/fpc-${PORTVERSION}/demo
+
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 470000
+EXTRACT_DEPENDS+= gtar:${PORTSDIR}/archivers/gtar
+TAR= ${LOCALBASE}/bin/gtar
+.endif
+
+do-extract:
+# unpack distribution
+ @${MKDIR} ${WRKSRC}
+ @${TAR} xf ${DISTDIR}/${DISTNAME}.tar --directory ${WRKSRC}
+# unpack docs distribution
+ @${TAR} zxf ${WRKSRC}/demo.tar.gz --directory ${WRKSRC}
+
+do-install:
+ @${MKDIR} ${EXAMPLESDIR}
+ cd ${SRCDOCDIR}/ && \
+ ${INSTALL_DATA} Makefile Makefile.fpc fpcdemos.txt \
+ ${EXAMPLESDIR}
+ @${MKDIR} ${EXAMPLESDIR}/graph
+ @${INSTALL_DATA} `${LS} ${SRCDOCDIR}/graph/*` \
+ ${EXAMPLESDIR}/graph
+ @${MKDIR} ${EXAMPLESDIR}/linux
+ @${INSTALL_DATA} `${LS} ${SRCDOCDIR}/linux/*` \
+ ${EXAMPLESDIR}/linux
+ @${MKDIR} ${EXAMPLESDIR}/modex
+ @${INSTALL_DATA} `${LS} ${SRCDOCDIR}/modex/*` \
+ ${EXAMPLESDIR}/modex
+ @${MKDIR} ${EXAMPLESDIR}/os2
+ @${INSTALL_DATA} `${LS} ${SRCDOCDIR}/os2/*` \
+ ${EXAMPLESDIR}/os2
+ @${MKDIR} ${EXAMPLESDIR}/palmos
+ @${INSTALL_DATA} `${LS} ${SRCDOCDIR}/palmos/*` \
+ ${EXAMPLESDIR}/palmos
+ @${MKDIR} ${EXAMPLESDIR}/text
+ @${INSTALL_DATA} `${LS} ${SRCDOCDIR}/text/*` \
+ ${EXAMPLESDIR}/text
+ @${MKDIR} ${EXAMPLESDIR}/win32
+ @${INSTALL_DATA} `${LS} ${SRCDOCDIR}/win32/*` \
+ ${EXAMPLESDIR}/win32
+
+.include <bsd.port.post.mk>
diff --git a/lang/fpc-demo/distinfo b/lang/fpc-demo/distinfo
new file mode 100644
index 000000000000..54527a31654e
--- /dev/null
+++ b/lang/fpc-demo/distinfo
@@ -0,0 +1,2 @@
+MD5 (fpc-1.0.10.ELF.tar) = 6ad56eb115152174683499da3ece7667
+SIZE (fpc-1.0.10.ELF.tar) = 17448960
diff --git a/lang/fpc-demo/pkg-descr b/lang/fpc-demo/pkg-descr
new file mode 100644
index 000000000000..7c27d6628532
--- /dev/null
+++ b/lang/fpc-demo/pkg-descr
@@ -0,0 +1,9 @@
+These are the examples for Free Pascal, a 32 bit Turbo
+Pascal-compatible Pascal compiler for DOS, Linux, Win32,
+OS/2, (based on an older version) the AmigaOS,
+FreeBSD/ELF, and BeOS.
+
+WWW: http://www.freepascal.org/
+
+--
+John Merryweather Cooper <coop9211@uidaho.edu>
diff --git a/lang/fpc-demo/pkg-plist b/lang/fpc-demo/pkg-plist
new file mode 100644
index 000000000000..a0144afb2d45
--- /dev/null
+++ b/lang/fpc-demo/pkg-plist
@@ -0,0 +1,58 @@
+%%EXAMPLESDIR%%/Makefile
+%%EXAMPLESDIR%%/Makefile.fpc
+%%EXAMPLESDIR%%/fpcdemos.txt
+%%EXAMPLESDIR%%/graph/Makefile
+%%EXAMPLESDIR%%/graph/Makefile.fpc
+%%EXAMPLESDIR%%/graph/fpcgames.txt
+%%EXAMPLESDIR%%/graph/fpctris.pp
+%%EXAMPLESDIR%%/graph/ftrisgr.inc
+%%EXAMPLESDIR%%/graph/ftristxt.inc
+%%EXAMPLESDIR%%/graph/gameunit.pp
+%%EXAMPLESDIR%%/graph/gravwars.pp
+%%EXAMPLESDIR%%/graph/mandel.pp
+%%EXAMPLESDIR%%/graph/maze.pp
+%%EXAMPLESDIR%%/graph/quad.pp
+%%EXAMPLESDIR%%/graph/quaddata.dat
+%%EXAMPLESDIR%%/graph/samegame.pp
+%%EXAMPLESDIR%%/linux/Makefile
+%%EXAMPLESDIR%%/linux/Makefile.fpc
+%%EXAMPLESDIR%%/linux/daemon.pp
+%%EXAMPLESDIR%%/modex/Makefile
+%%EXAMPLESDIR%%/modex/Makefile.fpc
+%%EXAMPLESDIR%%/modex/fpcmodex.txt
+%%EXAMPLESDIR%%/modex/voxel.pp
+%%EXAMPLESDIR%%/os2/Makefile
+%%EXAMPLESDIR%%/os2/Makefile.fpc
+%%EXAMPLESDIR%%/os2/basicpm.pas
+%%EXAMPLESDIR%%/os2/getctry.pas
+%%EXAMPLESDIR%%/os2/pmdemo1.h
+%%EXAMPLESDIR%%/os2/pmdemo1.pp
+%%EXAMPLESDIR%%/os2/pmdemo1.rc
+%%EXAMPLESDIR%%/palmos/pilrc.bmp
+%%EXAMPLESDIR%%/palmos/pilrcic.bmp
+%%EXAMPLESDIR%%/palmos/pilrctst.h
+%%EXAMPLESDIR%%/palmos/pilrctst.pp
+%%EXAMPLESDIR%%/palmos/pilrctst.rcp
+%%EXAMPLESDIR%%/text/Makefile
+%%EXAMPLESDIR%%/text/Makefile.fpc
+%%EXAMPLESDIR%%/text/blackbox.pp
+%%EXAMPLESDIR%%/text/eratos.pp
+%%EXAMPLESDIR%%/text/hello.pp
+%%EXAMPLESDIR%%/text/lines.pp
+%%EXAMPLESDIR%%/text/magic.pp
+%%EXAMPLESDIR%%/text/qsort.pp
+%%EXAMPLESDIR%%/win32/Makefile
+%%EXAMPLESDIR%%/win32/Makefile.fpc
+%%EXAMPLESDIR%%/win32/dlltest.pp
+%%EXAMPLESDIR%%/win32/edit.pp
+%%EXAMPLESDIR%%/win32/menu.pp
+%%EXAMPLESDIR%%/win32/testdll.pp
+%%EXAMPLESDIR%%/win32/winhello.pp
+@dirrm %%EXAMPLESDIR%%/win32
+@dirrm %%EXAMPLESDIR%%/text
+@dirrm %%EXAMPLESDIR%%/palmos
+@dirrm %%EXAMPLESDIR%%/os2
+@dirrm %%EXAMPLESDIR%%/modex
+@dirrm %%EXAMPLESDIR%%/linux
+@dirrm %%EXAMPLESDIR%%/graph
+@dirrm %%EXAMPLESDIR%%