Skip site navigation (1)Skip section navigation (2)
Date:      Mon,  9 Feb 2004 00:25:48 -0800 (PST)
From:      John Merryweather Cooper <coop9211@uidaho.edu>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/62574: [NEW PORT] editors/fpc-ide
Message-ID:  <20040209082548.09F5DBAA@borgdemon.losaca.adelphia.net>
Resent-Message-ID: <200402090830.i198UMOa074286@freefall.freebsd.org>

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

>Number:         62574
>Category:       ports
>Synopsis:       [NEW PORT] editors/fpc-ide
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 09 00:30:22 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     John Merryweather Cooper
>Release:        FreeBSD 4.9-STABLE i386
>Organization:
>Environment:
System: FreeBSD borgdemon.losaca.adelphia.net 4.9-STABLE FreeBSD 4.9-STABLE #11: Sun Feb 8 00:49:01 PST 2004 root@borgdemon.losaca.adelphia.net:/usr/obj/usr/src/sys/K6-2 i386


>Description:
	editors/fpc-ide is a Turbo Pascal-like IDE/compiler/debugger for
	Free Pascal.

>How-To-Repeat:
	N/A

>Fix:


--- new-port-fpc-ide begins here ---
# 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:
#
#	fpc-ide
#	fpc-ide/Makefile
#	fpc-ide/distinfo
#	fpc-ide/pkg-descr
#	fpc-ide/pkg-plist
#	fpc-ide/files
#	fpc-ide/files/patch-share::src::fpc-1.0.10::ide::compiler::Makefile.fpc
#
echo c - fpc-ide
mkdir -p fpc-ide > /dev/null 2>&1
echo x - fpc-ide/Makefile
sed 's/^X//' >fpc-ide/Makefile << 'END-of-fpc-ide/Makefile'
X# New ports collection makefile for:	Free Pascal Compiler
X# Date created: 			28 November 2001
X# Whom: 				John Merryweather Cooper et al
X#
X# $FreeBSD$
X#
X
XPORTNAME=	ide
XPORTVERSION=	1.0.10
XCATEGORIES=	editors lang
XMASTER_SITES=	ftp://ftp.freepascal.org/pub/fpc/dist/FreeBSD/ \
X		http://planetmirror.com/pub/fpc/dist/FreeBSD/ \
X		ftp://ftp.jp.freepascal.org/mirror/fpc/dist/FreeBSD/ \
X		ftp://freepascal.stack.nl/pub/fpc/dist/FreeBSD/ \
X		ftp://ftp.no.freepascal.org/pub/fpc/dist/FreeBSD/ \
X		ftp://ftp.us.freepascal.org/pub/fpc/dist/FreeBSD/ \
X		${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=	freepascal
XPKGNAMEPREFIX=	fpc-
XDISTNAME=	fpc-${PORTVERSION}.ELF
XEXTRACT_SUFX=	.tar
X
XMAINTAINER=	coop9211@uidaho.edu
XCOMMENT=	Free Pascal integrated IDE/compiler
X
X.include <bsd.port.pre.mk>
X
XBUILD_DEPENDS=	ppc386:${PORTSDIR}/lang/fpc \
X		${LOCALBASE}/lib/fpc/${PORTVERSION}/units/freebsd/gdbint/gdbint.ppu:${PORTSDIR}/devel/fpc-gdbint \
X		${LOCALBASE}/lib/fpc/${PORTVERSION}/units/freebsd/fv/drivers.ppu:${PORTSDIR}/devel/fpc-fvision
XRUN_DEPENDS=	${BUILD_DEPENDS}
X.if ${OSVERSION} < 470000
XEXTRACT_DEPENDS=	gtar:${PORTSDIR}/archivers/gtar
XTAR=			${LOCALBASE}/bin/gtar
X.endif
XUSE_GMAKE=	yes
XUSE_REINPLACE=	yes
XONLY_FOR_ARCHS=	i386
X
XDOCSDIR=	${PREFIX}/share/doc/fpc
XPLIST_SUB+=	PORTVERSION=${PORTVERSION}
X
XMAKE_ENV+=	PATH=${LOCALBASE}/bin:$$PATH \
X		FPC=${LOCALBASE}/bin/ppc386 \
X		INSTALL_BASEDIR=${PREFIX}/lib/fpc/${PORTVERSION} \
X		INSTALL_BINDIR=${PREFIX}/bin \
X		INSTALL_DOCDIR=${DOCSDIR} \
X		GCCLIBDIR=/usr/lib \
X		GDBLIBDIR=${LOCALBASE}/lib/fpc/${PORTVERSION}/units/freebsd/gdbint/libgdb \
X		RELEASE=1
X
Xdo-extract:
X# unpack distribution
X	@${MKDIR} ${WRKSRC}
X	@${TAR} xf ${DISTDIR}/${DISTNAME}.tar --directory ${WRKSRC}
X# unpack sources distribution
X	@${MKDIR} ${WRKSRC}/sources
X	@${TAR} xf ${WRKSRC}/sources.tar --directory ${WRKSRC}/sources
X# further extract base sources
X#
X# ide and compiler sources
X	@${TAR} zxf ${WRKSRC}/sources/compilersrc.tar.gz \
X		--directory ${WRKSRC}
X	@${TAR} zxf ${WRKSRC}/sources/idesrc.tar.gz \
X		--directory ${WRKSRC}
X
Xpost-patch:
X# change to alter amount of optimization
X	@${FIND} ${WRKSRC}/share/src -name "Makefile*" | \
X		${XARGS} ${REINPLACE_CMD} 's|-OG2p3|-OG2p1|g'
X
Xpre-build:
X	cd ${WRKSRC}/share/src/fpc-${PORTVERSION}/ide/compiler && \
X		fpcmake
X
Xdo-build:
X	@${SETENV} ${MAKE_ENV} ${GMAKE} -C \
X		${WRKSRC}/share/src/fpc-${PORTVERSION}/ide \
X		all
X
Xdo-install:
X	@${SETENV} ${MAKE_ENV} ${GMAKE} -C \
X		${WRKSRC}/share/src/fpc-${PORTVERSION}/ide \
X		install
X
X.include <bsd.port.post.mk>
END-of-fpc-ide/Makefile
echo x - fpc-ide/distinfo
sed 's/^X//' >fpc-ide/distinfo << 'END-of-fpc-ide/distinfo'
XMD5 (fpc-1.0.10.ELF.tar) = 6ad56eb115152174683499da3ece7667
XSIZE (fpc-1.0.10.ELF.tar) = 17448960
END-of-fpc-ide/distinfo
echo x - fpc-ide/pkg-descr
sed 's/^X//' >fpc-ide/pkg-descr << 'END-of-fpc-ide/pkg-descr'
XRegexpr is part of the base packages of Free Pascal,
Xa 32-bit Turbo Pascal/Delphi compatible compiler.  Regexpr
Xprovides regular expression routines.
X
XWWW: http://www.freepascal.org/
X
X--
XJohn Merryweather Cooper <coop9211@uidaho.edu>
END-of-fpc-ide/pkg-descr
echo x - fpc-ide/pkg-plist
sed 's/^X//' >fpc-ide/pkg-plist << 'END-of-fpc-ide/pkg-plist'
Xbin/fp
Xlib/fpc/%%PORTVERSION%%/ide/cvsco.tdf
Xlib/fpc/%%PORTVERSION%%/ide/cvsdiff.tdf
Xlib/fpc/%%PORTVERSION%%/ide/cvsup.tdf
Xlib/fpc/%%PORTVERSION%%/ide/fp.ans
Xlib/fpc/%%PORTVERSION%%/ide/gplprog.pt
Xlib/fpc/%%PORTVERSION%%/ide/gplunit.pt
Xlib/fpc/%%PORTVERSION%%/ide/grep.tdf
Xlib/fpc/%%PORTVERSION%%/ide/program.pt
Xlib/fpc/%%PORTVERSION%%/ide/tpgrep.tdf
Xlib/fpc/%%PORTVERSION%%/ide/unit.pt
X%%DOCSDIR%%/readme.ide
X@dirrm %%DOCSDIR%%
X@dirrm lib/fpc/%%PORTVERSION%%/ide
X@dirrm lib/fpc/%%PORTVERSION%%
X@dirrm lib/fpc
END-of-fpc-ide/pkg-plist
echo c - fpc-ide/files
mkdir -p fpc-ide/files > /dev/null 2>&1
echo x - fpc-ide/files/patch-share::src::fpc-1.0.10::ide::compiler::Makefile.fpc
sed 's/^X//' >fpc-ide/files/patch-share::src::fpc-1.0.10::ide::compiler::Makefile.fpc << 'END-of-fpc-ide/files/patch-share::src::fpc-1.0.10::ide::compiler::Makefile.fpc'
X--- share/src/fpc-1.0.10/ide/compiler/Makefile.fpc.old	Fri Jan 16 00:23:44 2004
X+++ share/src/fpc-1.0.10/ide/compiler/Makefile.fpc	Fri Jan 16 00:25:03 2004
X@@ -18,7 +18,7 @@
X fpcdir=../..
X 
X [prerules]
X-COMPILERDIR=$(FPCDIR)/compiler
X+COMPILERDIR=../../compiler
X 
X # Use 1.0.2 and 1.0.4 require -Ca to generate simple ppu
X ifneq ($(findstring 1.0.2,$(FPC_VERSION)),)
END-of-fpc-ide/files/patch-share::src::fpc-1.0.10::ide::compiler::Makefile.fpc
exit
--- new-port-fpc-ide ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



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