2006-03-04 22:28:51 +01:00
|
|
|
# $NetBSD: Makefile,v 1.27 2006/03/04 21:29:54 jlam 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
|
2006-02-06 00:08:03 +01:00
|
|
|
PKGREVISION= 4
|
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-09-17 21:39:58 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL}
|
|
|
|
MASTER_SITES+= http://www.gnu-pascal.de/current/ \
|
2003-02-17 23:39:33 +01:00
|
|
|
${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
|
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2003-12-30 18:27:31 +01:00
|
|
|
HOMEPAGE= http://www.gnu-pascal.de/
|
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
|
|
|
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
|
|
|
|
|
2005-11-09 22:25:39 +01:00
|
|
|
NOT_FOR_PLATFORM+= Interix-*-*
|
|
|
|
|
2004-01-20 13:18:15 +01:00
|
|
|
WRKSRC= ${WRKDIR}/gcc-2.95.3
|
2005-05-22 22:07:36 +02:00
|
|
|
USE_TOOLS+= gmake
|
2005-12-05 21:49:47 +01:00
|
|
|
USE_NCURSES= yes
|
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
|
|
|
|
2004-02-01 02:43:28 +01:00
|
|
|
GCC_REQD+= 2.95.3
|
2003-09-17 21:39:58 +02: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
|
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
|
|
|
|
2005-09-28 22:52:18 +02:00
|
|
|
HAS_CONFIGURE= 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
|
|
|
CONFIGURE_SCRIPT= ${WRKSRC}/configure
|
2005-12-06 00:55:01 +01:00
|
|
|
CONFIGURE_ARGS+= --host=${MACHINE_GNU_PLATFORM:Q}
|
|
|
|
CONFIGURE_ARGS+= --prefix=${GPC_PREFIX:Q}
|
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
|
|
|
CONFIGURE_ARGS+= --infodir=${PREFIX}/info
|
|
|
|
CONFIGURE_ARGS+= --enable-shared
|
|
|
|
CONFIGURE_ARGS+= --enable-languages=pascal
|
|
|
|
|
2005-12-05 21:49:47 +01:00
|
|
|
PLIST_SUBST+= GPC_SUBPREFIX=${GPC_SUBPREFIX:Q}
|
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
|
|
|
|
|
|
|
CONFIGURE_DIRS= ${WRKDIR}/objdir
|
|
|
|
BUILD_DIRS= ${CONFIGURE_DIRS}
|
|
|
|
INSTALL_DIRS= ${BUILD_DIRS}/gcc
|
|
|
|
|
|
|
|
INSTALL_TARGET= pascal.install
|
|
|
|
|
2004-03-02 12:28:22 +01:00
|
|
|
INFO_FILES= gpc.info gpcs.info gpcs-de.info gpcs-hr.info
|
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
|
|
|
|
|
|
|
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}
|
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|