* Upgrade to 1.0.6.
* Fix build on -current. PR: ports/53884 Submitted by: Matthew West <mwest@uct.ac.za> Approved by: maintainer
This commit is contained in:
parent
441b06e3e4
commit
9be18adae4
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=84788
20 changed files with 5458 additions and 4906 deletions
|
@ -6,24 +6,34 @@
|
|||
#
|
||||
|
||||
PORTNAME= fpc
|
||||
PORTVERSION= 1.0.4
|
||||
PORTREVISION= 1
|
||||
PORTVERSION= 1.0.6
|
||||
CATEGORIES= lang
|
||||
MASTER_SITES= ftp://ftp.freepascal.org/pub/fpc/dist/Freebsd/ \
|
||||
ftp://ftp.epix.net/pub/languages/pascal/dist/Freebsd/ \
|
||||
http://gd.tuwien.ac.at/languages/pascal/dist/Freebsd/ \
|
||||
http://www.zeus.rug.ac.be/freepascal/files/dist/Freebsd/ \
|
||||
ftp://ftp.darklands.cx/pub/fpc/dist/Freebsd/ \
|
||||
ftp://ftp.jp.freepascal.org/mirror/fpc/dist/Freebsd/ \
|
||||
ftp://deadlock.et.tudelft.nl/pub/fpc/dist/Freebsd/ \
|
||||
ftp://ftp.no.freepascal.org/pub/fpc/dist/Freebsd/
|
||||
DISTNAME= ${PORTNAME}-${PORTVERSION}.freebsd4
|
||||
MASTER_SITES= ftp://ftp.freepascal.org/pub/fpc/dist/freebsd-${PORTVERSION}/ \
|
||||
ftp://ftp.epix.net/pub/languages/pascal/dist/freebsd-${PORTVERSION}/ \
|
||||
http://gd.tuwien.ac.at/languages/pascal/dist/freebsd-${PORTVERSION}/ \
|
||||
http://www.zeus.rug.ac.be/freepascal/files/dist/freebsd-${PORTVERSION}/ \
|
||||
ftp://ftp.darklands.cx/pub/fpc/dist/freebsd-${PORTVERSION}/ \
|
||||
ftp://ftp.jp.freepascal.org/mirror/fpc/dist/freebsd-${PORTVERSION}/ \
|
||||
ftp://deadlock.et.tudelft.nl/pub/fpc/dist/freebsd-${PORTVERSION}/ \
|
||||
ftp://ftp.no.freepascal.org/pub/fpc/dist/freebsd-${PORTVERSION}/
|
||||
DISTNAME= ${PORTNAME}-${PORTVERSION}.ELF.FreeBSD
|
||||
|
||||
EXTRACT_SUFX= .tar
|
||||
|
||||
MAINTAINER= coop9211@uidaho.edu
|
||||
COMMENT= Free Pascal beta compiler with Turbo, Delphi and other extensions
|
||||
COMMENT= Free Pascal compiler with Turbo, Delphi and other extensions
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${OSVERSION} >= 500000
|
||||
LIB_DEPENDS+= c_r.4:${PORTSDIR}/misc/compat4x
|
||||
.endif
|
||||
|
||||
.if ${OSVERSION} < 470000
|
||||
EXTRACT_DEPENDS= ${LOCALBASE}/bin/gtar:${PORTSDIR}/archivers/gtar
|
||||
TAR= ${LOCALBASE}/bin/gtar
|
||||
.endif
|
||||
|
||||
EXTRACT_DEPENDS= ${LOCALBASE}/bin/gtar:${PORTSDIR}/archivers/gtar
|
||||
RUN_DEPENDS= ${LOCALBASE}/bin/nasm:${PORTSDIR}/devel/nasm
|
||||
|
||||
ONLY_FOR_ARCHS= i386
|
||||
|
@ -32,26 +42,20 @@ NO_BUILD= yes
|
|||
USE_PERL5= yes
|
||||
PKGDEINSTALL= ${PKGINSTALL}
|
||||
|
||||
PLIST_SUB+= PORTVERSION=${PORTVERSION}
|
||||
|
||||
MAN1= delp.1 fpc.1 fpcmake.1 h2pas.1 plex.1 ppc386.1 ppdep.1 \
|
||||
ppudump.1 ppufiles.1 ppumove.1 ptop.1 pyacc.1 rstconv.1
|
||||
MAN5= fpcmake.5 ppc386.cfg.5 ptop.cfg.5
|
||||
MAN5= fpc.cfg.5 fpcmake.5 ptop.cfg.5
|
||||
|
||||
# programs
|
||||
SORT?= /usr/bin/sort
|
||||
TAR= ${LOCALBASE}/bin/gtar
|
||||
# macro for creating directory with DATA perms
|
||||
INSTALL_DATA_DIR= ${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} -m 0755
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
LIBDIR= ${PREFIX}/lib/fpc/${PORTVERSION}
|
||||
DOCSDIR= ${PREFIX}/share/doc/fpc-${PORTVERSION}
|
||||
TEMP_PREFIX= ${WRKSRC}/temp
|
||||
TEMP_DOCSDIR= ${TEMP_PREFIX}/share/doc/fpc-${PORTVERSION}
|
||||
TEMP_LIBDIR= ${TEMP_PREFIX}/lib/fpc/${PORTVERSION}
|
||||
TEMP_EXMPDIR= ${TEMP_PREFIX}/share/examples
|
||||
|
||||
PLIST_SUB= LIBDIR=${LIBDIR}
|
||||
|
||||
# install staging area
|
||||
post-extract:
|
||||
|
@ -60,48 +64,84 @@ post-extract:
|
|||
@${MKDIR} ${TEMP_PREFIX}
|
||||
#unpack base system
|
||||
@${TAR} zxf ${WRKSRC}/basefreebsd.tar.gz \
|
||||
--exclude-from ${FILESDIR}/tar-xlist \
|
||||
--directory ${TEMP_PREFIX}
|
||||
@${MKDIR} ${TEMP_DOCSDIR}
|
||||
@${TAR} zxf ${WRKSRC}/basefreebsd.tar.gz \
|
||||
--files-from ${FILESDIR}/tar-xlist \
|
||||
--directory ${TEMP_PREFIX}/share
|
||||
@${TAR} zxf ${WRKSRC}/utilfreebsd.tar.gz \
|
||||
--directory ${TEMP_PREFIX}
|
||||
#unpack units
|
||||
@${TAR} zxf ${WRKSRC}/utilfreebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsfclfreebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsapifreebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsbasefreebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsnetfreebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsdbfreebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsgfxfreebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsmiscfreebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsbfdfreebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitscmemfreebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsformsfreebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsfpasyncfreebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsgdbintfreebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsgdbmfreebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsggifreebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsgtkfreebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsibasefreebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsinetfreebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitslibasyncfreebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitslibgdfreebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitslibpngfreebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsmysqlfreebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsncursesfreebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsopenglfreebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsoraclefreebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitspaszlibfreebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitspostgresfreebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsregexprfreebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitssvgalibfreebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitssyslogfreebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsuncgifreebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsunzipfreebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsutmpfreebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsx11freebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitszlibfreebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
#unpack ide
|
||||
@${TAR} zxf ${WRKSRC}/idefreebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
.ifndef(NOPORTDOCS)
|
||||
#unpack documentation, examples, and sources
|
||||
@${TAR} zxf ${WRKSRC}/basesrc.tar.gz --directory ${TEMP_PREFIX}/share
|
||||
@${TAR} zxf ${WRKSRC}/basesrc.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/compilersrc.tar.gz \
|
||||
--exclude-from ${FILESDIR}/tar-xlist2 \
|
||||
--directory ${TEMP_PREFIX}/share
|
||||
--directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/rtlsrc.tar.gz \
|
||||
--exclude-from ${FILESDIR}/tar-xlist3 \
|
||||
--directory ${TEMP_PREFIX}/share
|
||||
--directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/fclsrc.tar.gz \
|
||||
--exclude-from ${FILESDIR}/tar-xlist4 \
|
||||
--directory ${TEMP_PREFIX}/share
|
||||
@${TAR} zxf ${WRKSRC}/apisrc.tar.gz --directory ${TEMP_PREFIX}/share
|
||||
@${TAR} zxf ${WRKSRC}/packagessrc.tar.gz --directory ${TEMP_PREFIX}/share
|
||||
@${TAR} zxf ${WRKSRC}/utilsrc.tar.gz --directory ${TEMP_PREFIX}/share
|
||||
|
||||
@${TAR} zxf ${WRKSRC}/docs.tar.gz --directory ${TEMP_PREFIX}/share
|
||||
@${MKDIR} ${TEMP_EXMPDIR}
|
||||
@${TAR} zxf ${WRKSRC}/demo.tar.gz --directory ${TEMP_EXMPDIR}
|
||||
@${MV} ${TEMP_EXMPDIR}/src/fpc-${PORTVERSION} \
|
||||
${TEMP_PREFIX}/share/examples
|
||||
--directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/idesrc.tar.gz \
|
||||
--directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/installersrc.tar.gz \
|
||||
--directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsbfdsrc.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitscmemsrc.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsformssrc.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsfpasyncsrc.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsgdbintsrc.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsgdbmsrc.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsggisrc.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsgtksrc.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsibasesrc.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsinetsrc.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitslibasyncsrc.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitslibgdsrc.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitslibpngsrc.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsmysqlsrc.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsncursessrc.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsopenglsrc.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsoraclesrc.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitspaszlibsrc.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitspostgressrc.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsregexprsrc.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitssvgalibsrc.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitssyslogsrc.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsuncgisrc.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsunzipsrc.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsutmpsrc.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsx11src.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitszlibsrc.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/docs.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/demo.tar.gz --directory ${TEMP_PREFIX}
|
||||
.endif
|
||||
|
||||
do-patch:
|
||||
#unpack and patch sample (working) configuration file
|
||||
@${PATCH} --dir ${TEMP_LIBDIR} < ${FILESDIR}/fix-samplecfg
|
||||
|
||||
do-install: install-parse-plist install-run-scripts run-pkg-install-script
|
||||
|
||||
# Contributed by <lioux@FreeBSD.org>
|
||||
|
|
|
@ -1 +1 @@
|
|||
MD5 (fpc-1.0.4.freebsd4.tar) = 6dffb15c998283d45fa86a052852a9db
|
||||
MD5 (fpc-1.0.6.ELF.FreeBSD.tar) = fcac3c2631aef1788ade2fa50f0694e8
|
||||
|
|
|
@ -1,39 +0,0 @@
|
|||
--- samplecfg Sat Dec 23 15:02:40 2000
|
||||
+++ samplecfg.new Sun Dec 9 07:12:15 2001
|
||||
@@ -4,7 +4,7 @@
|
||||
#
|
||||
# Generate Sample Free Pascal configuration file
|
||||
#
|
||||
-if [ $# == 0 ]; then
|
||||
+if [ $# -eq 0 ]; then
|
||||
echo 'Usage :'
|
||||
echo 'samplecfg fpcdir confdir'
|
||||
echo 'fpcdir = Path where FPC is installed'
|
||||
@@ -29,7 +29,7 @@
|
||||
#
|
||||
if [ -f $thefile ] ; then
|
||||
mv $thefile $thefile.orig >/dev/null 2>&1
|
||||
- if [ $? == 0 ]; then
|
||||
+ if [ $? -eq 0 ]; then
|
||||
echo Saved old config to $thefile.orig
|
||||
else
|
||||
echo Could not save old config. Bailing out...
|
||||
@@ -38,9 +38,15 @@
|
||||
fi
|
||||
|
||||
# Find path to libgcc.a
|
||||
-GCCSPEC=`(gcc -v 2>&1)| head -n 1| awk '{ print $4 } '`
|
||||
-GCCDIR=`dirname $GCCSPEC`
|
||||
-echo Found libgcc.a in $GCCDIR
|
||||
+#GCCSPEC=`(gcc -v 2>&1)| head -n 1| awk '{ print $4 } '`
|
||||
+#GCCDIR=`dirname $GCCSPEC`
|
||||
+GCCDIR=/usr/lib
|
||||
+if [ -f $GCCDIR/libgcc.a ]; then
|
||||
+ echo Found libgcc.a in $GCCDIR
|
||||
+else
|
||||
+ echo FreeBSD libgcc.a could not be found. Bailing out...
|
||||
+ exit
|
||||
+fi
|
||||
|
||||
# Write the file
|
||||
echo Writing sample configuration file to $thefile
|
|
@ -1,9 +0,0 @@
|
|||
doc/fpc-1.0.4/faq.txt
|
||||
doc/fpc-1.0.4/faq.htm
|
||||
doc/fpc-1.0.4/copying.fpc
|
||||
doc/fpc-1.0.4/copying.dj
|
||||
doc/fpc-1.0.4/copying
|
||||
doc/fpc-1.0.4/whatsnew.txt
|
||||
doc/fpc-1.0.4/readme.txt
|
||||
doc/fpc-1.0.4
|
||||
doc
|
|
@ -1,4 +0,0 @@
|
|||
src/fpc-1.0.4/compiler/.#Makefile.1.1.2.15
|
||||
src/fpc-1.0.4/compiler/.#Makefile.1.1.2.13
|
||||
src/fpc-1.0.4/compiler/.#msgidx.inc.1.1.2.7
|
||||
src/fpc-1.0.4/compiler/.#msgtxt.inc.1.1.2.7
|
|
@ -1,2 +0,0 @@
|
|||
src/fpc-1.0.4/rtl/unix/.#linsysca.inc.1.1.2.2
|
||||
src/fpc-1.0.4/rtl/unix/.#linux.pp.1.1.2.1
|
|
@ -1 +0,0 @@
|
|||
src/fpc-1.0.4/fcl/inc/.#idea.pp.1.1
|
|
@ -1,9 +1,8 @@
|
|||
Originally named FPK-Pascal, the Free Pascal compiler is a 32 bit
|
||||
Turbo Pascal compatible Pascal compiler for DOS, Linux, Win32, OS/2
|
||||
and (based on an older version) the AmigaOS. FreeBSD/ELF is a beta
|
||||
release. A BeOS version is in development.
|
||||
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 <jmcoopr@webmail.bmi.net>
|
||||
John Merryweather Cooper <coop9211@uidaho.edu>
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
PKGNAME=$1
|
||||
ACTION=$2
|
||||
|
||||
FILES_DELETE="bin/ppc386 etc/ppc386.cfg etc/ppc386.cfg.orig"
|
||||
FILES_DELETE="bin/fpc etc/fpc.cfg etc/fpc.cfg.orig"
|
||||
|
||||
LIBDIR=${PKG_PREFIX}/lib/fpc/${PKGNAME##fpc-}
|
||||
|
||||
|
@ -19,7 +19,7 @@ case "$ACTION" in
|
|||
POST-INSTALL)
|
||||
${CHMOD} 0555 ${LIBDIR}/ppc386
|
||||
${CHMOD} 0555 ${LIBDIR}/samplecfg
|
||||
${LN} -sf ${LIBDIR}/ppc386 ${PKG_PREFIX}/bin/ppc386
|
||||
${LN} -sf ${LIBDIR}/ppc386 ${PKG_PREFIX}/bin/fpc
|
||||
${SH} ${LIBDIR}/samplecfg ${LIBDIR} ${PKG_PREFIX}/etc
|
||||
;;
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -6,24 +6,34 @@
|
|||
#
|
||||
|
||||
PORTNAME= fpc
|
||||
PORTVERSION= 1.0.4
|
||||
PORTREVISION= 1
|
||||
PORTVERSION= 1.0.6
|
||||
CATEGORIES= lang
|
||||
MASTER_SITES= ftp://ftp.freepascal.org/pub/fpc/dist/Freebsd/ \
|
||||
ftp://ftp.epix.net/pub/languages/pascal/dist/Freebsd/ \
|
||||
http://gd.tuwien.ac.at/languages/pascal/dist/Freebsd/ \
|
||||
http://www.zeus.rug.ac.be/freepascal/files/dist/Freebsd/ \
|
||||
ftp://ftp.darklands.cx/pub/fpc/dist/Freebsd/ \
|
||||
ftp://ftp.jp.freepascal.org/mirror/fpc/dist/Freebsd/ \
|
||||
ftp://deadlock.et.tudelft.nl/pub/fpc/dist/Freebsd/ \
|
||||
ftp://ftp.no.freepascal.org/pub/fpc/dist/Freebsd/
|
||||
DISTNAME= ${PORTNAME}-${PORTVERSION}.freebsd4
|
||||
MASTER_SITES= ftp://ftp.freepascal.org/pub/fpc/dist/freebsd-${PORTVERSION}/ \
|
||||
ftp://ftp.epix.net/pub/languages/pascal/dist/freebsd-${PORTVERSION}/ \
|
||||
http://gd.tuwien.ac.at/languages/pascal/dist/freebsd-${PORTVERSION}/ \
|
||||
http://www.zeus.rug.ac.be/freepascal/files/dist/freebsd-${PORTVERSION}/ \
|
||||
ftp://ftp.darklands.cx/pub/fpc/dist/freebsd-${PORTVERSION}/ \
|
||||
ftp://ftp.jp.freepascal.org/mirror/fpc/dist/freebsd-${PORTVERSION}/ \
|
||||
ftp://deadlock.et.tudelft.nl/pub/fpc/dist/freebsd-${PORTVERSION}/ \
|
||||
ftp://ftp.no.freepascal.org/pub/fpc/dist/freebsd-${PORTVERSION}/
|
||||
DISTNAME= ${PORTNAME}-${PORTVERSION}.ELF.FreeBSD
|
||||
|
||||
EXTRACT_SUFX= .tar
|
||||
|
||||
MAINTAINER= coop9211@uidaho.edu
|
||||
COMMENT= Free Pascal beta compiler with Turbo, Delphi and other extensions
|
||||
COMMENT= Free Pascal compiler with Turbo, Delphi and other extensions
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${OSVERSION} >= 500000
|
||||
LIB_DEPENDS+= c_r.4:${PORTSDIR}/misc/compat4x
|
||||
.endif
|
||||
|
||||
.if ${OSVERSION} < 470000
|
||||
EXTRACT_DEPENDS= ${LOCALBASE}/bin/gtar:${PORTSDIR}/archivers/gtar
|
||||
TAR= ${LOCALBASE}/bin/gtar
|
||||
.endif
|
||||
|
||||
EXTRACT_DEPENDS= ${LOCALBASE}/bin/gtar:${PORTSDIR}/archivers/gtar
|
||||
RUN_DEPENDS= ${LOCALBASE}/bin/nasm:${PORTSDIR}/devel/nasm
|
||||
|
||||
ONLY_FOR_ARCHS= i386
|
||||
|
@ -32,26 +42,20 @@ NO_BUILD= yes
|
|||
USE_PERL5= yes
|
||||
PKGDEINSTALL= ${PKGINSTALL}
|
||||
|
||||
PLIST_SUB+= PORTVERSION=${PORTVERSION}
|
||||
|
||||
MAN1= delp.1 fpc.1 fpcmake.1 h2pas.1 plex.1 ppc386.1 ppdep.1 \
|
||||
ppudump.1 ppufiles.1 ppumove.1 ptop.1 pyacc.1 rstconv.1
|
||||
MAN5= fpcmake.5 ppc386.cfg.5 ptop.cfg.5
|
||||
MAN5= fpc.cfg.5 fpcmake.5 ptop.cfg.5
|
||||
|
||||
# programs
|
||||
SORT?= /usr/bin/sort
|
||||
TAR= ${LOCALBASE}/bin/gtar
|
||||
# macro for creating directory with DATA perms
|
||||
INSTALL_DATA_DIR= ${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} -m 0755
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
LIBDIR= ${PREFIX}/lib/fpc/${PORTVERSION}
|
||||
DOCSDIR= ${PREFIX}/share/doc/fpc-${PORTVERSION}
|
||||
TEMP_PREFIX= ${WRKSRC}/temp
|
||||
TEMP_DOCSDIR= ${TEMP_PREFIX}/share/doc/fpc-${PORTVERSION}
|
||||
TEMP_LIBDIR= ${TEMP_PREFIX}/lib/fpc/${PORTVERSION}
|
||||
TEMP_EXMPDIR= ${TEMP_PREFIX}/share/examples
|
||||
|
||||
PLIST_SUB= LIBDIR=${LIBDIR}
|
||||
|
||||
# install staging area
|
||||
post-extract:
|
||||
|
@ -60,48 +64,84 @@ post-extract:
|
|||
@${MKDIR} ${TEMP_PREFIX}
|
||||
#unpack base system
|
||||
@${TAR} zxf ${WRKSRC}/basefreebsd.tar.gz \
|
||||
--exclude-from ${FILESDIR}/tar-xlist \
|
||||
--directory ${TEMP_PREFIX}
|
||||
@${MKDIR} ${TEMP_DOCSDIR}
|
||||
@${TAR} zxf ${WRKSRC}/basefreebsd.tar.gz \
|
||||
--files-from ${FILESDIR}/tar-xlist \
|
||||
--directory ${TEMP_PREFIX}/share
|
||||
@${TAR} zxf ${WRKSRC}/utilfreebsd.tar.gz \
|
||||
--directory ${TEMP_PREFIX}
|
||||
#unpack units
|
||||
@${TAR} zxf ${WRKSRC}/utilfreebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsfclfreebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsapifreebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsbasefreebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsnetfreebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsdbfreebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsgfxfreebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsmiscfreebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsbfdfreebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitscmemfreebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsformsfreebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsfpasyncfreebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsgdbintfreebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsgdbmfreebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsggifreebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsgtkfreebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsibasefreebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsinetfreebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitslibasyncfreebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitslibgdfreebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitslibpngfreebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsmysqlfreebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsncursesfreebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsopenglfreebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsoraclefreebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitspaszlibfreebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitspostgresfreebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsregexprfreebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitssvgalibfreebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitssyslogfreebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsuncgifreebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsunzipfreebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsutmpfreebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsx11freebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitszlibfreebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
#unpack ide
|
||||
@${TAR} zxf ${WRKSRC}/idefreebsd.tar.gz --directory ${TEMP_PREFIX}
|
||||
.ifndef(NOPORTDOCS)
|
||||
#unpack documentation, examples, and sources
|
||||
@${TAR} zxf ${WRKSRC}/basesrc.tar.gz --directory ${TEMP_PREFIX}/share
|
||||
@${TAR} zxf ${WRKSRC}/basesrc.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/compilersrc.tar.gz \
|
||||
--exclude-from ${FILESDIR}/tar-xlist2 \
|
||||
--directory ${TEMP_PREFIX}/share
|
||||
--directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/rtlsrc.tar.gz \
|
||||
--exclude-from ${FILESDIR}/tar-xlist3 \
|
||||
--directory ${TEMP_PREFIX}/share
|
||||
--directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/fclsrc.tar.gz \
|
||||
--exclude-from ${FILESDIR}/tar-xlist4 \
|
||||
--directory ${TEMP_PREFIX}/share
|
||||
@${TAR} zxf ${WRKSRC}/apisrc.tar.gz --directory ${TEMP_PREFIX}/share
|
||||
@${TAR} zxf ${WRKSRC}/packagessrc.tar.gz --directory ${TEMP_PREFIX}/share
|
||||
@${TAR} zxf ${WRKSRC}/utilsrc.tar.gz --directory ${TEMP_PREFIX}/share
|
||||
|
||||
@${TAR} zxf ${WRKSRC}/docs.tar.gz --directory ${TEMP_PREFIX}/share
|
||||
@${MKDIR} ${TEMP_EXMPDIR}
|
||||
@${TAR} zxf ${WRKSRC}/demo.tar.gz --directory ${TEMP_EXMPDIR}
|
||||
@${MV} ${TEMP_EXMPDIR}/src/fpc-${PORTVERSION} \
|
||||
${TEMP_PREFIX}/share/examples
|
||||
--directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/idesrc.tar.gz \
|
||||
--directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/installersrc.tar.gz \
|
||||
--directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsbfdsrc.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitscmemsrc.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsformssrc.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsfpasyncsrc.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsgdbintsrc.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsgdbmsrc.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsggisrc.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsgtksrc.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsibasesrc.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsinetsrc.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitslibasyncsrc.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitslibgdsrc.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitslibpngsrc.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsmysqlsrc.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsncursessrc.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsopenglsrc.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsoraclesrc.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitspaszlibsrc.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitspostgressrc.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsregexprsrc.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitssvgalibsrc.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitssyslogsrc.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsuncgisrc.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsunzipsrc.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsutmpsrc.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitsx11src.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/unitszlibsrc.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/docs.tar.gz --directory ${TEMP_PREFIX}
|
||||
@${TAR} zxf ${WRKSRC}/demo.tar.gz --directory ${TEMP_PREFIX}
|
||||
.endif
|
||||
|
||||
do-patch:
|
||||
#unpack and patch sample (working) configuration file
|
||||
@${PATCH} --dir ${TEMP_LIBDIR} < ${FILESDIR}/fix-samplecfg
|
||||
|
||||
do-install: install-parse-plist install-run-scripts run-pkg-install-script
|
||||
|
||||
# Contributed by <lioux@FreeBSD.org>
|
||||
|
|
|
@ -1 +1 @@
|
|||
MD5 (fpc-1.0.4.freebsd4.tar) = 6dffb15c998283d45fa86a052852a9db
|
||||
MD5 (fpc-1.0.6.ELF.FreeBSD.tar) = fcac3c2631aef1788ade2fa50f0694e8
|
||||
|
|
|
@ -1,39 +0,0 @@
|
|||
--- samplecfg Sat Dec 23 15:02:40 2000
|
||||
+++ samplecfg.new Sun Dec 9 07:12:15 2001
|
||||
@@ -4,7 +4,7 @@
|
||||
#
|
||||
# Generate Sample Free Pascal configuration file
|
||||
#
|
||||
-if [ $# == 0 ]; then
|
||||
+if [ $# -eq 0 ]; then
|
||||
echo 'Usage :'
|
||||
echo 'samplecfg fpcdir confdir'
|
||||
echo 'fpcdir = Path where FPC is installed'
|
||||
@@ -29,7 +29,7 @@
|
||||
#
|
||||
if [ -f $thefile ] ; then
|
||||
mv $thefile $thefile.orig >/dev/null 2>&1
|
||||
- if [ $? == 0 ]; then
|
||||
+ if [ $? -eq 0 ]; then
|
||||
echo Saved old config to $thefile.orig
|
||||
else
|
||||
echo Could not save old config. Bailing out...
|
||||
@@ -38,9 +38,15 @@
|
||||
fi
|
||||
|
||||
# Find path to libgcc.a
|
||||
-GCCSPEC=`(gcc -v 2>&1)| head -n 1| awk '{ print $4 } '`
|
||||
-GCCDIR=`dirname $GCCSPEC`
|
||||
-echo Found libgcc.a in $GCCDIR
|
||||
+#GCCSPEC=`(gcc -v 2>&1)| head -n 1| awk '{ print $4 } '`
|
||||
+#GCCDIR=`dirname $GCCSPEC`
|
||||
+GCCDIR=/usr/lib
|
||||
+if [ -f $GCCDIR/libgcc.a ]; then
|
||||
+ echo Found libgcc.a in $GCCDIR
|
||||
+else
|
||||
+ echo FreeBSD libgcc.a could not be found. Bailing out...
|
||||
+ exit
|
||||
+fi
|
||||
|
||||
# Write the file
|
||||
echo Writing sample configuration file to $thefile
|
|
@ -1,9 +0,0 @@
|
|||
doc/fpc-1.0.4/faq.txt
|
||||
doc/fpc-1.0.4/faq.htm
|
||||
doc/fpc-1.0.4/copying.fpc
|
||||
doc/fpc-1.0.4/copying.dj
|
||||
doc/fpc-1.0.4/copying
|
||||
doc/fpc-1.0.4/whatsnew.txt
|
||||
doc/fpc-1.0.4/readme.txt
|
||||
doc/fpc-1.0.4
|
||||
doc
|
|
@ -1,4 +0,0 @@
|
|||
src/fpc-1.0.4/compiler/.#Makefile.1.1.2.15
|
||||
src/fpc-1.0.4/compiler/.#Makefile.1.1.2.13
|
||||
src/fpc-1.0.4/compiler/.#msgidx.inc.1.1.2.7
|
||||
src/fpc-1.0.4/compiler/.#msgtxt.inc.1.1.2.7
|
|
@ -1,2 +0,0 @@
|
|||
src/fpc-1.0.4/rtl/unix/.#linsysca.inc.1.1.2.2
|
||||
src/fpc-1.0.4/rtl/unix/.#linux.pp.1.1.2.1
|
|
@ -1 +0,0 @@
|
|||
src/fpc-1.0.4/fcl/inc/.#idea.pp.1.1
|
|
@ -1,9 +1,8 @@
|
|||
Originally named FPK-Pascal, the Free Pascal compiler is a 32 bit
|
||||
Turbo Pascal compatible Pascal compiler for DOS, Linux, Win32, OS/2
|
||||
and (based on an older version) the AmigaOS. FreeBSD/ELF is a beta
|
||||
release. A BeOS version is in development.
|
||||
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 <jmcoopr@webmail.bmi.net>
|
||||
John Merryweather Cooper <coop9211@uidaho.edu>
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
PKGNAME=$1
|
||||
ACTION=$2
|
||||
|
||||
FILES_DELETE="bin/ppc386 etc/ppc386.cfg etc/ppc386.cfg.orig"
|
||||
FILES_DELETE="bin/fpc etc/fpc.cfg etc/fpc.cfg.orig"
|
||||
|
||||
LIBDIR=${PKG_PREFIX}/lib/fpc/${PKGNAME##fpc-}
|
||||
|
||||
|
@ -19,7 +19,7 @@ case "$ACTION" in
|
|||
POST-INSTALL)
|
||||
${CHMOD} 0555 ${LIBDIR}/ppc386
|
||||
${CHMOD} 0555 ${LIBDIR}/samplecfg
|
||||
${LN} -sf ${LIBDIR}/ppc386 ${PKG_PREFIX}/bin/ppc386
|
||||
${LN} -sf ${LIBDIR}/ppc386 ${PKG_PREFIX}/bin/fpc
|
||||
${SH} ${LIBDIR}/samplecfg ${LIBDIR} ${PKG_PREFIX}/etc
|
||||
;;
|
||||
|
||||
|
|
4966
lang/fpc/pkg-plist
4966
lang/fpc/pkg-plist
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue