Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Mar 1999 12:51:08 -0800 (PST)
From:      berend@pobox.com
To:        freebsd-gnats-submit@freebsd.org
Subject:   ports/10532: Port of GNU Pascal
Message-ID:  <19990310205108.CA60C14E22@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         10532
>Category:       ports
>Synopsis:       Port of GNU Pascal
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 10 13:00:01 PST 1999
>Closed-Date:
>Last-Modified:
>Originator:     Berend de Boer
>Release:        3.1-STABLE
>Organization:
NederWare
>Environment:
>Description:
Now dummies can compile GNU Pascal on FreeBSD too :-)
>How-To-Repeat:
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	lang/gpc/
#	lang/gpc/files
#	lang/gpc/files/md5
#	lang/gpc/patches
#	lang/gpc/patches/gpc.diff
#	lang/gpc/pkg
#	lang/gpc/pkg/COMMENT
#	lang/gpc/pkg/DESCR
#	lang/gpc/pkg/PLIST
#	lang/gpc/Makefile
#
echo c - lang/gpc/
mkdir -p lang/gpc/ > /dev/null 2>&1
echo c - lang/gpc/files
mkdir -p lang/gpc/files > /dev/null 2>&1
echo x - lang/gpc/files/md5
sed 's/^X//' >lang/gpc/files/md5 << 'END-of-lang/gpc/files/md5'
XMD5 (gpc-19990118.tar.gz) = 3c818f9f7730378320dd04a03dbe8267
END-of-lang/gpc/files/md5
echo c - lang/gpc/patches
mkdir -p lang/gpc/patches > /dev/null 2>&1
echo x - lang/gpc/patches/gpc.diff
sed 's/^X//' >lang/gpc/patches/gpc.diff << 'END-of-lang/gpc/patches/gpc.diff'
Xdiff -p -r -C3 -N -X /home/frank/script/gpcdiff.exclude orig/p/rts/configure p/rts/configure
X*** orig/p/rts/configure	Mon Dec 14 04:26:41 1998
X--- p/rts/configure	Sat Jan 30 18:11:12 1999
X*************** EOF
X*** 957,963 ****
X  
X  fi
X  
X! for ac_hdr in fcntl.h sys/file.h sys/time.h unistd.h utime.h sys/utime.h fnmatch.h glob.h sys/param.h sys/wait.h
X  do
X  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
X  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
X--- 957,963 ----
X  
X  fi
X  
X! for ac_hdr in fcntl.h sys/file.h sys/time.h unistd.h utime.h sys/utime.h fnmatch.h glob.h sys/param.h sys/wait.h sys/statvfs.h sys/vfs.h sys/mount.h
X  do
X  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
X  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Xdiff -p -r -C3 -N -X /home/frank/script/gpcdiff.exclude orig/p/rts/configure.in p/rts/configure.in
X*** orig/p/rts/configure.in	Mon Dec 14 04:25:45 1998
X--- p/rts/configure.in	Sat Jan 30 18:09:34 1999
X*************** GPC_BSD_RTS
X*** 45,51 ****
X  
X  dnl Checks for header files.
X  AC_HEADER_STDC
X! AC_CHECK_HEADERS(fcntl.h sys/file.h sys/time.h unistd.h utime.h sys/utime.h fnmatch.h glob.h sys/param.h sys/wait.h)
X  
X  dnl Checks for typedefs, structures, and compiler characteristics.
X  AC_STRUCT_ST_RDEV
X--- 45,51 ----
X  
X  dnl Checks for header files.
X  AC_HEADER_STDC
X! AC_CHECK_HEADERS(fcntl.h sys/file.h sys/time.h unistd.h utime.h sys/utime.h fnmatch.h glob.h sys/param.h sys/wait.h sys/statvfs.h sys/vfs.h sys/mount.h)
X  
X  dnl Checks for typedefs, structures, and compiler characteristics.
X  AC_STRUCT_ST_RDEV
Xdiff -p -r -C3 -N -X /home/frank/script/gpcdiff.exclude orig/p/rts/file.c p/rts/file.c
X*** orig/p/rts/file.c	Wed Jan 27 23:16:28 1999
X--- p/rts/file.c	Sat Jan 30 18:14:33 1999
X*************** Cambridge, MA 02139, USA.  */
X*** 35,40 ****
X--- 35,55 ----
X  #include <sys/param.h>
X  #endif
X  
X+ /* needed by e.g. Solaris to stat a file system */
X+ #ifdef HAVE_SYS_STATVFS_H
X+ #include <sys/statvfs.h>
X+ #endif
X+ 
X+ /* needed by e.g. Linux and DJGPP to stat a file system */
X+ #ifdef HAVE_SYS_VFS_H
X+ #include <sys/vfs.h>
X+ #endif
X+ 
X+ /* needed by e.g. FreeBSD to stat a file system */
X+ #ifdef HAVE_SYS_MOUNT_H
X+ #include <sys/mount.h>
X+ #endif
X+ 
X  /* needed for select() */
X  #if TIME_WITH_SYS_TIME
X  #include <sys/time.h>
X*************** UnixTimeType Time;
X*** 1651,1662 ****
X    if (utime (m_EXTNAM(File), &utim))
X      IOERROR_FILE (487, File,); /* cannot set time for %s */
X  }
X- 
X- #ifdef HAVE_STATVFS
X- #include <sys/statvfs.h>
X- #elif defined(HAVE_STATFS)
X- #include <sys/vfs.h>
X- #endif
X  
X  void
X  _p_statfs (path, buf)
X--- 1666,1671 ----
Xdiff -p -r -C3 -N -X /home/frank/script/gpcdiff.exclude orig/p/rts/rts-config.in p/rts/rts-config.in
X*** orig/p/rts/rts-config.in	Wed Dec 23 06:27:08 1998
X--- p/rts/rts-config.in	Sat Jan 30 18:10:39 1999
X***************
X*** 168,173 ****
X--- 168,188 ----
X  #undef HAVE_SYS_WAIT_H
X  #endif
X  
X+ /* Define if you have the <sys/statvfs.h> header file.  */
X+ #ifndef HAVE_SYS_STATVFS_H
X+ #undef HAVE_SYS_STATVFS_H
X+ #endif
X+ 
X+ /* Define if you have the <sys/vfs.h> header file.  */
X+ #ifndef HAVE_SYS_VFS_H
X+ #undef HAVE_SYS_VFS_H
X+ #endif
X+ 
X+ /* Define if you have the <sys/mount.h> header file.  */
X+ #ifndef HAVE_SYS_MOUNT_H
X+ #undef HAVE_SYS_MOUNT_H
X+ #endif
X+ 
X  /* Placeholders for signals not present in all systems */
X  #ifndef SIGUNUSED
X  #define SIGUNUSED -1
END-of-lang/gpc/patches/gpc.diff
echo c - lang/gpc/pkg
mkdir -p lang/gpc/pkg > /dev/null 2>&1
echo x - lang/gpc/pkg/COMMENT
sed 's/^X//' >lang/gpc/pkg/COMMENT << 'END-of-lang/gpc/pkg/COMMENT'
XLatest and greatest version of the GNU Pascal compiler.
END-of-lang/gpc/pkg/COMMENT
echo x - lang/gpc/pkg/DESCR
sed 's/^X//' >lang/gpc/pkg/DESCR << 'END-of-lang/gpc/pkg/DESCR'
XGCC 2.8.1 is the latest release of the GNU compiler suite.
XIt is a port for now, until its stableness and ability to produce
Xa working kernel and "make world" is proven.
X
XC++ support, and in particular template support, is vastly improved over
Xgcc-2.7.  G++ 2.8.1 also compiles SGI's offical reference implimentation
Xof the STL.
X
XBeware: This port installs new versions of "gcc", "g++", and so forth
Xinto the "${PREFIX}/bin" directory.  Mind your PATHs if you don't want
Xto use this compiler by default.  However, "cc" and "c++" will not 
Xbe hidden by this port.
X
X-- David O'Brien <obrien@NUXI.com>
END-of-lang/gpc/pkg/DESCR
echo x - lang/gpc/pkg/PLIST
sed 's/^X//' >lang/gpc/pkg/PLIST << 'END-of-lang/gpc/pkg/PLIST'
Xbin/gpc
Xinfo/gpc.info
Xinfo/gpc.info-1
Xinfo/gpc.info-10
Xinfo/gpc.info-11
Xinfo/gpc.info-12
Xinfo/gpc.info-13
Xinfo/gpc.info-14
Xinfo/gpc.info-2
Xinfo/gpc.info-3
Xinfo/gpc.info-4
Xinfo/gpc.info-5
Xinfo/gpc.info-6
Xinfo/gpc.info-7
Xinfo/gpc.info-8
Xinfo/gpc.info-9
Xlib/gcc-lib/%%GNUHOST%%/2.8.1/gpc1
Xlib/gcc-lib/%%GNUHOST%%/2.8.1/gpc-cpp
Xlib/gcc-lib/%%GNUHOST%%/2.8.1/libgpc.a
Xlib/gcc-lib/%%GNUHOST%%/2.8.1/units/crt.inc
Xlib/gcc-lib/%%GNUHOST%%/2.8.1/units/crt.pas
Xlib/gcc-lib/%%GNUHOST%%/2.8.1/units/crtc.c
Xlib/gcc-lib/%%GNUHOST%%/2.8.1/units/crtc.h
Xlib/gcc-lib/%%GNUHOST%%/2.8.1/units/crtdospc.h
Xlib/gcc-lib/%%GNUHOST%%/2.8.1/units/crtdummy.h
Xlib/gcc-lib/%%GNUHOST%%/2.8.1/units/crtlinux386.h
Xlib/gcc-lib/%%GNUHOST%%/2.8.1/units/crtunix.h
Xlib/gcc-lib/%%GNUHOST%%/2.8.1/units/crtunix1.h
Xlib/gcc-lib/%%GNUHOST%%/2.8.1/units/dos.pas
Xlib/gcc-lib/%%GNUHOST%%/2.8.1/units/dosc.c
Xlib/gcc-lib/%%GNUHOST%%/2.8.1/units/dosunix.pas
Xlib/gcc-lib/%%GNUHOST%%/2.8.1/units/getopt.h
Xlib/gcc-lib/%%GNUHOST%%/2.8.1/units/getopt.pas
Xlib/gcc-lib/%%GNUHOST%%/2.8.1/units/getoptc.c
Xlib/gcc-lib/%%GNUHOST%%/2.8.1/units/gmp.pas
Xlib/gcc-lib/%%GNUHOST%%/2.8.1/units/gpc.pas
Xlib/gcc-lib/%%GNUHOST%%/2.8.1/units/gpcutil.pas
Xlib/gcc-lib/%%GNUHOST%%/2.8.1/units/internal.pas
Xlib/gcc-lib/%%GNUHOST%%/2.8.1/units/overlay.pas
Xlib/gcc-lib/%%GNUHOST%%/2.8.1/units/pexecutc.c
Xlib/gcc-lib/%%GNUHOST%%/2.8.1/units/pexecute.h
Xlib/gcc-lib/%%GNUHOST%%/2.8.1/units/pexecute.pas
Xlib/gcc-lib/%%GNUHOST%%/2.8.1/units/pipe.pas
Xlib/gcc-lib/%%GNUHOST%%/2.8.1/units/pipec.c
Xlib/gcc-lib/%%GNUHOST%%/2.8.1/units/ports.pas
Xlib/gcc-lib/%%GNUHOST%%/2.8.1/units/printer.pas
Xlib/gcc-lib/%%GNUHOST%%/2.8.1/units/regex.pas
Xlib/gcc-lib/%%GNUHOST%%/2.8.1/units/regexc.c
Xlib/gcc-lib/%%GNUHOST%%/2.8.1/units/strings.pas
Xlib/gcc-lib/%%GNUHOST%%/2.8.1/units/system.pas
Xlib/gcc-lib/%%GNUHOST%%/2.8.1/units/turbo3.pas
Xlib/gcc-lib/%%GNUHOST%%/2.8.1/units/windos.pas
X@dirrm lib/gcc-lib/%%GNUHOST%%/2.8.1/units
END-of-lang/gpc/pkg/PLIST
echo x - lang/gpc/Makefile
sed 's/^X//' >lang/gpc/Makefile << 'END-of-lang/gpc/Makefile'
X# ex:ts=8
X# Ports collection makefile for:	gpc
X# Date created:				1999 jan 27
X# Whom:					Berend de Boer <berend@pobox.com>
X#
X# $Id: $
X#
X
XDISTNAME=	gpc-19990118
XCATEGORIES=	lang
XMASTER_SITES=	ftp://agnes.dida.physik.uni-essen.de/gnu-pascal/beta/
X
XMAINTAINER=	berend@pobox.com
X
X# need gcc-2.8.1
XBUILD_DEPENDS=	${PORTSDIR}/lang/gcc28/work/.patch_done:${PORTSDIR}/lang/gcc28:patch
X
XWRKSRC=		${WRKDIR}/gpc
XMAKE_ARGS=	LANGUAGES=pascal
X
X.include <bsd.port.pre.mk>
X
X.if ${PORTOBJFORMAT} == "elf"
XGNUHOST=	${ARCH}-unknown-freebsdelf${OSREL}
X.else
XGNUHOST=	${ARCH}-unknown-freebsd${OSREL}
X.endif
X
XPLIST_SUB=	GNUHOST=${GNUHOST}
XCONFIGURE_ARGS=	--with-gxx-include-dir=${PREFIX}/lib/gcc-lib/${GNUHOST}/2.8.1/include/g++ 
X.if ${PORTOBJFORMAT} == "elf"
XCONFIGURE_ARGS+=	--host=${GNUHOST}
X.endif
XGNU_CONFIGURE=	yes
XUSE_GMAKE=	yes
XALL_TARGET=	bootstrap
X
Xpre-fetch:
X	@${ECHO} "GCC ${DISTNAME:S/^gcc-//} for ${OPSYS} ${OSREL} ${PORTOBJFORMAT}"
X
X# copy gnu compile here, if you're short on diskspace
X# you might want to move it instead
Xpost-extract:
X	@(cd ${WRKSRC} ; \
X	${CP} -R ../../../gcc28/work/gcc-2.8.1/* .)
X
Xdo-patch:
X	@(cd ${WRKSRC} ; \
X	patch -s -p1 < p/diffs/gcc-2.8.1.diff ; \
X	cd p ; \
X	patch -s -p1 < ${PATCHDIR}/gpc.diff)
X
X.include <bsd.port.post.mk>
END-of-lang/gpc/Makefile
exit

>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990310205108.CA60C14E22>