summaryrefslogtreecommitdiff
path: root/lang/gpc/Makefile
diff options
context:
space:
mode:
authorjtb <jtb@pkgsrc.org>2003-02-17 18:47:15 +0000
committerjtb <jtb@pkgsrc.org>2003-02-17 18:47:15 +0000
commit897399ced061b6bc6cd0fe49e1bd1d8e2e62acf4 (patch)
tree8b650d510081c9a4be24d155597179029d2ffbc7 /lang/gpc/Makefile
parent3b0fd53f5a818d1645d3e7fdd87d456aa4c3d90f (diff)
downloadpkgsrc-897399ced061b6bc6cd0fe49e1bd1d8e2e62acf4.tar.gz
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.
Diffstat (limited to 'lang/gpc/Makefile')
-rw-r--r--lang/gpc/Makefile76
1 files changed, 76 insertions, 0 deletions
diff --git a/lang/gpc/Makefile b/lang/gpc/Makefile
new file mode 100644
index 00000000000..a1e8bfd33e8
--- /dev/null
+++ b/lang/gpc/Makefile
@@ -0,0 +1,76 @@
+# $NetBSD: Makefile,v 1.1.1.1 2003/02/17 18:47:15 jtb Exp $
+
+DISTNAME= gpc-2.1
+CATEGORIES= lang
+MASTER_SITES= http://www.gnu-pascal.de/
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
+DISTFILES+= gcc-2.95.3.tar.gz
+
+MAINTAINER= packages@netbsd.org
+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
+
+DEPENDS+= gmp-[0-9]*:../../devel/gmp
+DEPENDS+= ncurses-[0-9]*:../../devel/ncurses
+DEPENDS+= rx-[0-9]*:../../devel/rx
+
+BUILD_DEPENDS+= bison-[0-9]*:../../devel/bison
+BUILD_DEPENDS+= gsed-[0-9]*:../../textproc/gsed
+
+WRKSRC= ${WRKDIR}/gcc-2.95.3
+USE_GMAKE= # defined
+USE_NCURSES= # defined
+USE_PKGSRC_GCC= # defined
+
+GPC_PREFIX= ${_GCC_PREFIX}
+GPC_SUBPREFIX= ${_GCC_SUBPREFIX}
+
+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
+
+INFO_FILES= gpc.info gpcs.info
+
+.include "../../mk/bsd.prefs.mk"
+
+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}
+ ${TOUCH} ${TOUCH_FLAGS} ${WRKSRC}/gcc/c-gperf.h
+ ${ECHO} "bogus" > ${WRKSRC}/gcc/cstamp-h.in
+
+.include "../../lang/gcc/buildlink2.mk"
+.include "../../mk/texinfo.mk"
+.include "../../mk/bsd.pkg.install.mk"
+.include "../../mk/bsd.pkg.mk"