2003-07-12 13:38:31 +02:00
|
|
|
# $NetBSD: Makefile,v 1.10 2003/07/12 11:38:31 jtb Exp $
|
Initial import of gpc.
GNU Pascal is the free 32/64-bit Pascal compiler of the GNU Compiler
Collection (GNU CC or GCC). It combines a Pascal front-end with the
proven GCC back-end for code generation and optimization. Unlike
utilities such as p2c, this is a true compiler, not just a converter.
The purpose of the GNU Pascal project is to produce a Pascal compiler
(called GNU Pascal or GPC) which
* combines the clarity of Pascal with powerful tools suitable for
real-life programming,
* supports both the Pascal standard and the Extended Pascal standard
as defined by ISO, ANSI and IEEE (ISO 7185:1990, ISO/IEC
10206:1991, ANSI/IEEE 770X3.160-1989),
* supports other Pascal standards (UCSD Pascal, Borland Pascal,
parts of Borland Delphi and Pascal-SC) in so far as this serves the
goal of clarity and usability,
* may be distributed under GNU license conditions, and
* can generate code for and run on any computer for which the GNU C
compiler can generate code and run on.
The current release implements Standard Pascal (ISO 7185, levels 0 and
1), a large subset of Extended Pascal (ISO 10206, aiming for full
compliance), is highly compatible to Borland Pascal (version 7.0) with
some Delphi extensions, and provides a lot of useful GNU extensions.
2003-02-17 19:47:15 +01:00
|
|
|
|
|
|
|
DISTNAME= gpc-2.1
|
2003-07-12 13:38:31 +02:00
|
|
|
PKGREVISION= 3
|
2003-03-29 13:40:00 +01:00
|
|
|
WRKSRC= ${WRKDIR}/gcc-2.95.3
|
Initial import of gpc.
GNU Pascal is the free 32/64-bit Pascal compiler of the GNU Compiler
Collection (GNU CC or GCC). It combines a Pascal front-end with the
proven GCC back-end for code generation and optimization. Unlike
utilities such as p2c, this is a true compiler, not just a converter.
The purpose of the GNU Pascal project is to produce a Pascal compiler
(called GNU Pascal or GPC) which
* combines the clarity of Pascal with powerful tools suitable for
real-life programming,
* supports both the Pascal standard and the Extended Pascal standard
as defined by ISO, ANSI and IEEE (ISO 7185:1990, ISO/IEC
10206:1991, ANSI/IEEE 770X3.160-1989),
* supports other Pascal standards (UCSD Pascal, Borland Pascal,
parts of Borland Delphi and Pascal-SC) in so far as this serves the
goal of clarity and usability,
* may be distributed under GNU license conditions, and
* can generate code for and run on any computer for which the GNU C
compiler can generate code and run on.
The current release implements Standard Pascal (ISO 7185, levels 0 and
1), a large subset of Extended Pascal (ISO 10206, aiming for full
compliance), is highly compatible to Borland Pascal (version 7.0) with
some Delphi extensions, and provides a lot of useful GNU extensions.
2003-02-17 19:47:15 +01:00
|
|
|
CATEGORIES= lang
|
2003-02-17 23:39:33 +01:00
|
|
|
MASTER_SITES= http://www.gnu-pascal.de/current/ \
|
|
|
|
${MASTER_SITE_GNU:=gcc/}
|
Initial import of gpc.
GNU Pascal is the free 32/64-bit Pascal compiler of the GNU Compiler
Collection (GNU CC or GCC). It combines a Pascal front-end with the
proven GCC back-end for code generation and optimization. Unlike
utilities such as p2c, this is a true compiler, not just a converter.
The purpose of the GNU Pascal project is to produce a Pascal compiler
(called GNU Pascal or GPC) which
* combines the clarity of Pascal with powerful tools suitable for
real-life programming,
* supports both the Pascal standard and the Extended Pascal standard
as defined by ISO, ANSI and IEEE (ISO 7185:1990, ISO/IEC
10206:1991, ANSI/IEEE 770X3.160-1989),
* supports other Pascal standards (UCSD Pascal, Borland Pascal,
parts of Borland Delphi and Pascal-SC) in so far as this serves the
goal of clarity and usability,
* may be distributed under GNU license conditions, and
* can generate code for and run on any computer for which the GNU C
compiler can generate code and run on.
The current release implements Standard Pascal (ISO 7185, levels 0 and
1), a large subset of Extended Pascal (ISO 10206, aiming for full
compliance), is highly compatible to Borland Pascal (version 7.0) with
some Delphi extensions, and provides a lot of useful GNU extensions.
2003-02-17 19:47:15 +01:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
|
|
|
|
DISTFILES+= gcc-2.95.3.tar.gz
|
|
|
|
|
2003-06-02 03:15:31 +02:00
|
|
|
MAINTAINER= tech-pkg@netbsd.org
|
Initial import of gpc.
GNU Pascal is the free 32/64-bit Pascal compiler of the GNU Compiler
Collection (GNU CC or GCC). It combines a Pascal front-end with the
proven GCC back-end for code generation and optimization. Unlike
utilities such as p2c, this is a true compiler, not just a converter.
The purpose of the GNU Pascal project is to produce a Pascal compiler
(called GNU Pascal or GPC) which
* combines the clarity of Pascal with powerful tools suitable for
real-life programming,
* supports both the Pascal standard and the Extended Pascal standard
as defined by ISO, ANSI and IEEE (ISO 7185:1990, ISO/IEC
10206:1991, ANSI/IEEE 770X3.160-1989),
* supports other Pascal standards (UCSD Pascal, Borland Pascal,
parts of Borland Delphi and Pascal-SC) in so far as this serves the
goal of clarity and usability,
* may be distributed under GNU license conditions, and
* can generate code for and run on any computer for which the GNU C
compiler can generate code and run on.
The current release implements Standard Pascal (ISO 7185, levels 0 and
1), a large subset of Extended Pascal (ISO 10206, aiming for full
compliance), is highly compatible to Borland Pascal (version 7.0) with
some Delphi extensions, and provides a lot of useful GNU extensions.
2003-02-17 19:47:15 +01:00
|
|
|
HOMEPAGE= http://www.gnu-pascal.de
|
|
|
|
COMMENT= GNU Pascal Compiler
|
|
|
|
|
|
|
|
PATCH_SITES= ${MASTER_SITE_LOCAL}
|
|
|
|
PATCHFILES= gcc-2.95.3-diff-2002-08-29.gz
|
|
|
|
|
|
|
|
BUILD_DEPENDS+= gsed-[0-9]*:../../textproc/gsed
|
|
|
|
|
|
|
|
USE_GMAKE= # defined
|
|
|
|
USE_NCURSES= # defined
|
2003-06-06 07:46:22 +02:00
|
|
|
PLIST_SRC= PLIST
|
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
Initial import of gpc.
GNU Pascal is the free 32/64-bit Pascal compiler of the GNU Compiler
Collection (GNU CC or GCC). It combines a Pascal front-end with the
proven GCC back-end for code generation and optimization. Unlike
utilities such as p2c, this is a true compiler, not just a converter.
The purpose of the GNU Pascal project is to produce a Pascal compiler
(called GNU Pascal or GPC) which
* combines the clarity of Pascal with powerful tools suitable for
real-life programming,
* supports both the Pascal standard and the Extended Pascal standard
as defined by ISO, ANSI and IEEE (ISO 7185:1990, ISO/IEC
10206:1991, ANSI/IEEE 770X3.160-1989),
* supports other Pascal standards (UCSD Pascal, Borland Pascal,
parts of Borland Delphi and Pascal-SC) in so far as this serves the
goal of clarity and usability,
* may be distributed under GNU license conditions, and
* can generate code for and run on any computer for which the GNU C
compiler can generate code and run on.
The current release implements Standard Pascal (ISO 7185, levels 0 and
1), a large subset of Extended Pascal (ISO 10206, aiming for full
compliance), is highly compatible to Borland Pascal (version 7.0) with
some Delphi extensions, and provides a lot of useful GNU extensions.
2003-02-17 19:47:15 +01:00
|
|
|
|
2003-06-06 07:46:22 +02:00
|
|
|
.if ${OPSYS} == "NetBSD"
|
|
|
|
CFLAGS+= -DNETBSD_NATIVE
|
|
|
|
GPC_PREFIX= ${PREFIX}
|
|
|
|
GPC_SUBPREFIX=
|
|
|
|
PLIST_SRC+= PLIST.netbsd
|
|
|
|
.else
|
|
|
|
DEPENDS+= gcc-2.95.3*:../../lang/gcc
|
|
|
|
USE_PKGSRC_GCC= # defined
|
Initial import of gpc.
GNU Pascal is the free 32/64-bit Pascal compiler of the GNU Compiler
Collection (GNU CC or GCC). It combines a Pascal front-end with the
proven GCC back-end for code generation and optimization. Unlike
utilities such as p2c, this is a true compiler, not just a converter.
The purpose of the GNU Pascal project is to produce a Pascal compiler
(called GNU Pascal or GPC) which
* combines the clarity of Pascal with powerful tools suitable for
real-life programming,
* supports both the Pascal standard and the Extended Pascal standard
as defined by ISO, ANSI and IEEE (ISO 7185:1990, ISO/IEC
10206:1991, ANSI/IEEE 770X3.160-1989),
* supports other Pascal standards (UCSD Pascal, Borland Pascal,
parts of Borland Delphi and Pascal-SC) in so far as this serves the
goal of clarity and usability,
* may be distributed under GNU license conditions, and
* can generate code for and run on any computer for which the GNU C
compiler can generate code and run on.
The current release implements Standard Pascal (ISO 7185, levels 0 and
1), a large subset of Extended Pascal (ISO 10206, aiming for full
compliance), is highly compatible to Borland Pascal (version 7.0) with
some Delphi extensions, and provides a lot of useful GNU extensions.
2003-02-17 19:47:15 +01:00
|
|
|
GPC_PREFIX= ${_GCC_PREFIX}
|
2003-06-06 07:46:22 +02:00
|
|
|
GPC_SUBPREFIX= ${_GCC_SUBPREFIX}/
|
|
|
|
.endif
|
Initial import of gpc.
GNU Pascal is the free 32/64-bit Pascal compiler of the GNU Compiler
Collection (GNU CC or GCC). It combines a Pascal front-end with the
proven GCC back-end for code generation and optimization. Unlike
utilities such as p2c, this is a true compiler, not just a converter.
The purpose of the GNU Pascal project is to produce a Pascal compiler
(called GNU Pascal or GPC) which
* combines the clarity of Pascal with powerful tools suitable for
real-life programming,
* supports both the Pascal standard and the Extended Pascal standard
as defined by ISO, ANSI and IEEE (ISO 7185:1990, ISO/IEC
10206:1991, ANSI/IEEE 770X3.160-1989),
* supports other Pascal standards (UCSD Pascal, Borland Pascal,
parts of Borland Delphi and Pascal-SC) in so far as this serves the
goal of clarity and usability,
* may be distributed under GNU license conditions, and
* can generate code for and run on any computer for which the GNU C
compiler can generate code and run on.
The current release implements Standard Pascal (ISO 7185, levels 0 and
1), a large subset of Extended Pascal (ISO 10206, aiming for full
compliance), is highly compatible to Borland Pascal (version 7.0) with
some Delphi extensions, and provides a lot of useful GNU extensions.
2003-02-17 19:47:15 +01:00
|
|
|
|
|
|
|
HAS_CONFIGURE= # defined
|
|
|
|
CONFIGURE_SCRIPT= ${WRKSRC}/configure
|
|
|
|
CONFIGURE_ARGS= --host=${MACHINE_GNU_PLATFORM}
|
|
|
|
CONFIGURE_ARGS+= --prefix=${GPC_PREFIX}
|
|
|
|
CONFIGURE_ARGS+= --infodir=${PREFIX}/info
|
|
|
|
CONFIGURE_ARGS+= --enable-shared
|
|
|
|
CONFIGURE_ARGS+= --enable-languages=pascal
|
|
|
|
|
|
|
|
PLIST_SUBST+= GPC_SUBPREFIX=${GPC_SUBPREFIX}
|
|
|
|
|
|
|
|
CONFIGURE_DIRS= ${WRKDIR}/objdir
|
|
|
|
BUILD_DIRS= ${CONFIGURE_DIRS}
|
|
|
|
INSTALL_DIRS= ${BUILD_DIRS}/gcc
|
|
|
|
|
|
|
|
INSTALL_TARGET= pascal.install
|
|
|
|
|
2003-07-05 15:25:44 +02:00
|
|
|
USE_NEW_TEXINFO= YES
|
Initial import of gpc.
GNU Pascal is the free 32/64-bit Pascal compiler of the GNU Compiler
Collection (GNU CC or GCC). It combines a Pascal front-end with the
proven GCC back-end for code generation and optimization. Unlike
utilities such as p2c, this is a true compiler, not just a converter.
The purpose of the GNU Pascal project is to produce a Pascal compiler
(called GNU Pascal or GPC) which
* combines the clarity of Pascal with powerful tools suitable for
real-life programming,
* supports both the Pascal standard and the Extended Pascal standard
as defined by ISO, ANSI and IEEE (ISO 7185:1990, ISO/IEC
10206:1991, ANSI/IEEE 770X3.160-1989),
* supports other Pascal standards (UCSD Pascal, Borland Pascal,
parts of Borland Delphi and Pascal-SC) in so far as this serves the
goal of clarity and usability,
* may be distributed under GNU license conditions, and
* can generate code for and run on any computer for which the GNU C
compiler can generate code and run on.
The current release implements Standard Pascal (ISO 7185, levels 0 and
1), a large subset of Extended Pascal (ISO 10206, aiming for full
compliance), is highly compatible to Borland Pascal (version 7.0) with
some Delphi extensions, and provides a lot of useful GNU extensions.
2003-02-17 19:47:15 +01:00
|
|
|
INFO_FILES= gpc.info gpcs.info
|
|
|
|
|
|
|
|
post-extract:
|
|
|
|
${MKDIR} ${WRKSRC}
|
|
|
|
${CP} ${.CURDIR}/../gcc/files/xm-netbsd.h ${WRKSRC}/gcc/config
|
|
|
|
${CP} ${.CURDIR}/../gcc/files/xm-target64.h ${WRKSRC}/gcc/config
|
|
|
|
for file in ${.CURDIR}/../gcc/files/*_* ; do \
|
|
|
|
arch=`${BASENAME} $${file} | ${SED} -e "s/_.*//"`; \
|
|
|
|
dest=`${BASENAME} $${file} | ${SED} -e "s/$${arch}_//"`; \
|
|
|
|
${MKDIR} ${WRKSRC}/gcc/config/$${arch}; \
|
|
|
|
${CP} $${file} ${WRKSRC}/gcc/config/$${arch}/$${dest}; \
|
|
|
|
done
|
|
|
|
${RM} ${WRKSRC}/gcc/config/alpha/netbsd-elf.h
|
|
|
|
${RM} ${WRKSRC}/gcc/config/arm/t-netbsd
|
|
|
|
${RM} ${WRKSRC}/gcc/config/mips/x-netbsd
|
|
|
|
|
|
|
|
pre-patch:
|
|
|
|
${MV} -f ${WRKDIR}/gpc-20020510/p ${WRKDIR}/gcc-2.95.3/gcc/
|
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
${MKDIR} ${BUILD_DIRS}
|
|
|
|
|
2003-06-06 07:46:22 +02:00
|
|
|
.if ${OPSYS} != "NetBSD"
|
2003-06-02 16:05:00 +02:00
|
|
|
.include "../../mk/gcc.buildlink2.mk"
|
2003-06-06 07:46:22 +02:00
|
|
|
.endif
|
Initial import of gpc.
GNU Pascal is the free 32/64-bit Pascal compiler of the GNU Compiler
Collection (GNU CC or GCC). It combines a Pascal front-end with the
proven GCC back-end for code generation and optimization. Unlike
utilities such as p2c, this is a true compiler, not just a converter.
The purpose of the GNU Pascal project is to produce a Pascal compiler
(called GNU Pascal or GPC) which
* combines the clarity of Pascal with powerful tools suitable for
real-life programming,
* supports both the Pascal standard and the Extended Pascal standard
as defined by ISO, ANSI and IEEE (ISO 7185:1990, ISO/IEC
10206:1991, ANSI/IEEE 770X3.160-1989),
* supports other Pascal standards (UCSD Pascal, Borland Pascal,
parts of Borland Delphi and Pascal-SC) in so far as this serves the
goal of clarity and usability,
* may be distributed under GNU license conditions, and
* can generate code for and run on any computer for which the GNU C
compiler can generate code and run on.
The current release implements Standard Pascal (ISO 7185, levels 0 and
1), a large subset of Extended Pascal (ISO 10206, aiming for full
compliance), is highly compatible to Borland Pascal (version 7.0) with
some Delphi extensions, and provides a lot of useful GNU extensions.
2003-02-17 19:47:15 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|