head	1.46;
access;
symbols
	RELEASE_8_3_0:1.40
	RELEASE_9_0_0:1.40
	RELEASE_7_4_0:1.37
	RELEASE_8_2_0:1.37
	RELEASE_6_EOL:1.36
	RELEASE_8_1_0:1.34
	RELEASE_7_3_0:1.34
	RELEASE_8_0_0:1.34
	RELEASE_7_2_0:1.31
	RELEASE_7_1_0:1.29
	RELEASE_6_4_0:1.29
	RELEASE_5_EOL:1.27
	RELEASE_7_0_0:1.26
	RELEASE_6_3_0:1.26
	PRE_XORG_7:1.25
	RELEASE_4_EOL:1.25
	RELEASE_6_2_0:1.25
	RELEASE_6_1_0:1.19
	RELEASE_5_5_0:1.19
	RELEASE_6_0_0:1.17
	RELEASE_5_4_0:1.16
	RELEASE_4_11_0:1.15
	RELEASE_5_3_0:1.15
	RELEASE_4_10_0:1.14
	RELEASE_5_2_1:1.9
	RELEASE_5_2_0:1.9
	RELEASE_4_9_0:1.9
	RELEASE_5_1_0:1.5
	RELEASE_4_8_0:1.5
	RELEASE_5_0_0:1.4
	RELEASE_4_7_0:1.2
	RELEASE_4_6_2:1.2
	RELEASE_4_6_1:1.2
	RELEASE_4_6_0:1.2
	RELEASE_5_0_DP1:1.2
	RELEASE_4_5_0:1.2;
locks; strict;
comment	@# @;


1.46
date	2013.03.23.07.14.11;	author svnexp;	state Exp;
branches;
next	1.45;

1.45
date	2012.11.17.05.58.49;	author svnexp;	state Exp;
branches;
next	1.44;

1.44
date	2012.05.17.19.27.39;	author acm;	state Exp;
branches;
next	1.43;

1.43
date	2012.05.16.21.49.29;	author acm;	state Exp;
branches;
next	1.42;

1.42
date	2012.05.07.18.51.22;	author acm;	state Exp;
branches;
next	1.41;

1.41
date	2012.04.19.06.19.58;	author acm;	state Exp;
branches;
next	1.40;

1.40
date	2011.08.27.19.13.11;	author ohauer;	state Exp;
branches;
next	1.39;

1.39
date	2011.08.27.09.54.28;	author ohauer;	state Exp;
branches;
next	1.38;

1.38
date	2011.06.23.05.05.26;	author acm;	state Exp;
branches;
next	1.37;

1.37
date	2010.12.29.20.04.21;	author pgollucci;	state Exp;
branches;
next	1.36;

1.36
date	2010.11.15.22.49.59;	author acm;	state Exp;
branches;
next	1.35;

1.35
date	2010.08.16.17.45.10;	author acm;	state Exp;
branches;
next	1.34;

1.34
date	2009.08.27.18.31.06;	author amdmi3;	state Exp;
branches;
next	1.33;

1.33
date	2009.05.04.23.51.05;	author acm;	state Exp;
branches;
next	1.32;

1.32
date	2009.05.04.15.23.04;	author acm;	state Exp;
branches;
next	1.31;

1.31
date	2009.01.14.06.12.03;	author acm;	state Exp;
branches;
next	1.30;

1.30
date	2009.01.05.20.36.28;	author pav;	state Exp;
branches;
next	1.29;

1.29
date	2008.07.25.08.52.23;	author pav;	state Exp;
branches;
next	1.28;

1.28
date	2008.06.24.15.18.12;	author acm;	state Exp;
branches;
next	1.27;

1.27
date	2008.01.06.21.20.11;	author acm;	state Exp;
branches;
next	1.26;

1.26
date	2007.09.18.06.53.23;	author acm;	state Exp;
branches;
next	1.25;

1.25
date	2006.09.18.18.41.08;	author acm;	state Exp;
branches;
next	1.24;

1.24
date	2006.09.07.21.32.23;	author acm;	state Exp;
branches;
next	1.23;

1.23
date	2006.07.29.02.48.19;	author acm;	state Exp;
branches;
next	1.22;

1.22
date	2006.07.24.11.21.24;	author acm;	state Exp;
branches;
next	1.21;

1.21
date	2006.06.21.16.52.56;	author garga;	state Exp;
branches;
next	1.20;

1.20
date	2006.05.09.20.52.12;	author edwin;	state Exp;
branches;
next	1.19;

1.19
date	2006.01.15.08.34.12;	author pav;	state Exp;
branches;
next	1.18;

1.18
date	2005.11.24.01.18.44;	author pav;	state Exp;
branches;
next	1.17;

1.17
date	2005.05.17.16.09.29;	author sem;	state Exp;
branches;
next	1.16;

1.16
date	2005.02.13.18.28.19;	author linimon;	state Exp;
branches;
next	1.15;

1.15
date	2004.05.29.16.36.55;	author krion;	state Exp;
branches;
next	1.14;

1.14
date	2004.02.22.02.05.13;	author marcus;	state Exp;
branches;
next	1.13;

1.13
date	2004.02.22.00.41.57;	author kris;	state Exp;
branches;
next	1.12;

1.12
date	2004.02.07.00.20.53;	author kris;	state Exp;
branches;
next	1.11;

1.11
date	2004.02.04.05.21.34;	author marcus;	state Exp;
branches;
next	1.10;

1.10
date	2004.01.07.10.14.04;	author znerd;	state Exp;
branches;
next	1.9;

1.9
date	2003.07.12.21.03.30;	author obraun;	state Exp;
branches;
next	1.8;

1.8
date	2003.07.08.10.03.20;	author kuriyama;	state Exp;
branches;
next	1.7;

1.7
date	2003.07.08.10.02.37;	author kuriyama;	state Exp;
branches;
next	1.6;

1.6
date	2003.06.01.01.38.54;	author billf;	state Exp;
branches;
next	1.5;

1.5
date	2003.02.21.12.35.01;	author knu;	state Exp;
branches;
next	1.4;

1.4
date	2002.11.17.23.06.20;	author edwin;	state Exp;
branches;
next	1.3;

1.3
date	2002.11.08.23.03.48;	author edwin;	state Exp;
branches;
next	1.2;

1.2
date	2001.12.10.01.50.42;	author lioux;	state Exp;
branches;
next	1.1;

1.1
date	2001.12.09.02.28.27;	author lioux;	state Exp;
branches;
next	;


desc
@@


1.46
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/314989
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@# Created by:	John Merryweather Cooper et al
# $FreeBSD: head/lang/fpc/Makefile 314989 2013-03-23 05:25:05Z acm $

PORTNAME=	fpc
PORTVERSION=	2.6.2
PORTREVISION?=	0
CATEGORIES?=	lang
MASTER_SITES=	ftp://ftp.freepascal.org/pub/fpc/dist/${PORTVERSION}/source/:source \
		ftp://planetmirror.com/pub/fpc/dist/${PORTVERSION}/source/:source \
		ftp://ftp.jp.freepascal.org/mirror/fpc/dist/${PORTVERSION}/source/:source \
		ftp://freepascal.stack.nl/pub/fpc/dist/${PORTVERSION}/source/:source \
		ftp://ftp.no.freepascal.org/pub/fpc/dist/${PORTVERSION}/source/:source \
		ftp://ftp.us.freepascal.org/pub/fpc/dist/${PORTVERSION}/source/:source \
		SF/freepascal/Source/${PORTVERSION}:source \
		${MASTER_SITE_GOOGLE_CODE}:bootstrap \
		${MASTER_SITE_LOCAL:S|$|acm/freepascal/:bootstrap|} \
		${MASTER_SITE_GOOGLE_CODE}:man \
		${MASTER_SITE_LOCAL:S|$|acm/freepascal/:man|}
DISTFILES=	${DISTNAME:S/$/.source/}${EXTRACT_SUFX}:source
DIST_SUBDIR=	freepascal

MAINTAINER?=	acm@@FreeBSD.org
COMMENT?=	Free Pascal compiler with Turbo and Delphi

PROJECTHOST=	bsdistfiles
USE_GMAKE=	yes
ONLY_FOR_ARCHS=	i386 amd64

OPTIONSFILE=	${PORT_DBDIR}/${PORTNAME}${PKGNAMESUFFIX}/options

#OPT?=-Ur -CX
OPT?=-CX
FPCSRCDIR=	${PORTNAME}-${PORTVERSION}

.include <bsd.port.pre.mk>

.if ${ARCH} == "i386"
PPNAME=		ppc386
FPC_ARCH=	i386
PLIST_SUB=	FPC_I386="" \
		FPC_AMD64="@@comment "
.elif ${ARCH} == "amd64"
PPNAME=		ppcx64
FPC_ARCH=	x86_64
PLIST_SUB=	FPC_I386="@@comment " \
		FPC_AMD64=""
.endif

.if !defined(PKGNAMESUFFIX)
SUB_FILES=	pkg-message

BUILDNAME=	${FPC_ARCH}-freebsd
PLIST_SUB+=	PORTVERSION=${PORTVERSION} \
		BUILDNAME=${BUILDNAME}
DISTFILES+=	${PPNAME}-${PORTVERSION}-${OPSYS:L}${EXTRACT_SUFX}:bootstrap \
		${DISTNAME:S/$/.man/}${EXTRACT_SUFX}:man
MAKE_ENV+=	PP=${WRKDIR}/${PPNAME}-${PORTVERSION}-${OPSYS:L} \
		FPCMAKE=${WRKDIR}/${FPCSRCDIR}/utils/fpcm/fpcmake \
		FPCTARGET=${BUILDNAME} \
		ARCH=${FPC_ARCH} \
		OPT="${OPT}" \
		BSDHIER=1

MAN1=	bin2obj.1 \
	chmcmd.1 \
	chmls.1 \
	data2inc.1 \
	delp.1 \
	fd2pascal.1 \
	fp.1 \
	fpc.1 \
	fpclasschart.1 \
	fpcmake.1 \
	fpcmkcfg.1 \
	fpdoc.1 \
	fprcp.1 \
	fpcres.1 \
	fpcsubst.1 \
	fppkg.1 \
	grab_vcsa.1 \
	h2pas.1 \
	h2paspp.1 \
	makeskel.1 \
	plex.1 \
	postw32.1 \
	ppc386.1 \
	ppcarm.1 \
	ppcppc.1 \
	ppcsparc.1 \
	ppcx64.1 \
	ppdep.1 \
	ppudump.1 \
	ppufiles.1 \
	ppumove.1 \
	ptop.1 \
	pyacc.1 \
	rmcvsdir.1 \
	rstconv.1 \
	unitdiff.1
MAN5=	fpc.cfg.5 fpcmake.5 ptop.cfg.5

do-extract:
# unpack binary distribution
	@@${MKDIR} ${WRKDIR}
	@@${TAR} xfz ${_DISTDIR}/${PPNAME}-${PORTVERSION}-${OPSYS:L}${EXTRACT_SUFX} --directory \
		${WRKDIR} && ${CHMOD} +x ${WRKDIR}/${PPNAME}-${PORTVERSION}-${OPSYS:L}
# unpack man files
	@@${TAR} xfz ${_DISTDIR}/${DISTNAME:S/$/.man/}${EXTRACT_SUFX} --directory \
		${WRKDIR}
# unpack source distribution
	@@cd ${WRKDIR} && \
		${GZIP_CMD} -dc ${_DISTDIR}/${DISTNAME:S/$/.source/}${EXTRACT_SUFX} \
			| ${TAR} xf - ${FPCSRCDIR}/compiler ${FPCSRCDIR}/rtl \
				${FPCSRCDIR}/utils/fpcmkcfg ${FPCSRCDIR}/packages/fcl-base \
					${FPCSRCDIR}/packages/fcl-process ${FPCSRCDIR}/utils/fpcm

post-patch:
.if ${ARCH} == "i386"
	@@${REINPLACE_CMD} -i "" -e 's|504000|${OSVERSION}|g' ${WRKDIR}/${FPCSRCDIR}/rtl/freebsd/${FPC_ARCH}/cprt0.as
.elif ${ARCH} == "amd64"
	@@${REINPLACE_CMD} -i "" -e 's|700055|${OSVERSION}|g' ${WRKDIR}/${FPCSRCDIR}/rtl/freebsd/${FPC_ARCH}/cprt0.as
	@@${REINPLACE_CMD} -i "" -e 's|502110|${OSVERSION}|g' ${WRKDIR}/${FPCSRCDIR}/rtl/freebsd/${FPC_ARCH}/gprt0.as
	@@${REINPLACE_CMD} -i "" -e 's|700055|${OSVERSION}|g' ${WRKDIR}/${FPCSRCDIR}/rtl/freebsd/${FPC_ARCH}/prt0.as
.endif

do-build:
# build fpc compiler
	@@cd ${WRKDIR}/${FPCSRCDIR}/compiler && ${GMAKE} cycle ${MAKE_ENV}
# build fpcmkcfg
	@@cd ${WRKDIR}/${FPCSRCDIR}/utils/fpcm && ${GMAKE} ${MAKE_ENV}
	@@cd ${WRKDIR}/${FPCSRCDIR}/packages/fcl-base && ${GMAKE} ${MAKE_ENV}
	@@cd ${WRKDIR}/${FPCSRCDIR}/packages/fcl-process && ${GMAKE} ${MAKE_ENV}
	@@cd ${WRKDIR}/${FPCSRCDIR}/utils/fpcmkcfg && ${GMAKE} ${MAKE_ENV}

do-install:
# 	Installing fpc compiler
	@@cd ${WRKDIR}/${FPCSRCDIR}/rtl && ${GMAKE} install ${MAKE_ENV}
# 	Installing fpc runtime
	@@cd ${WRKDIR}/${FPCSRCDIR}/compiler && ${GMAKE} install ${MAKE_ENV}
# 	Installng fpcmkcfg
	@@cd ${WRKDIR}/${FPCSRCDIR}/utils/fpcmkcfg && ${GMAKE} install ${MAKE_ENV}
# 	Installng fpcmake
	@@cd ${WRKDIR}/${FPCSRCDIR}/utils/fpcm && ${GMAKE} install ${MAKE_ENV}
# 	Installing manpages
	${INSTALL_DATA} ${WRKDIR}/man/man1/* ${MAN1PREFIX}/man/man1
	${INSTALL_DATA} ${WRKDIR}/man/man5/* ${MAN1PREFIX}/man/man5

post-install:
	if [ -e "${PREFIX}/bin/${PPNAME}" ]; then ${RM} -f "${PREFIX}/bin/${PPNAME}"; fi
	${LN} -s "${PREFIX}/lib/fpc/${PORTVERSION}/${PPNAME}" "${PREFIX}/bin"
	${SH} "${PREFIX}/lib/fpc/${PORTVERSION}/samplecfg" "${PREFIX}/lib/fpc/${PORTVERSION}" "${PREFIX}/etc"
	@@${REINPLACE_CMD} -i "" -e 's|^-Fl/usr/local/lib|-Fl${LOCALBASE}/lib;${LOCALBASE}/lib/qt4|g' ${PREFIX}/etc/fpc.cfg.sample
	@@if [ ! -f ${PREFIX}/etc/fpc.cfg ]; then \
		${CP} ${PREFIX}/etc/fpc.cfg.sample ${PREFIX}/etc/fpc.cfg; \
	fi
	@@${CAT} ${PKGMESSAGE}

.else
.include "${MASTERDIR}/Makefile.units"
.endif
.include <bsd.port.post.mk>
@


1.45
log
@Switch exporter over
@
text
@d1 2
a2 6
# New ports collection makefile for:	Free Pascal Compiler
# Date created: 			28 November 2001
# Whom: 				John Merryweather Cooper et al
#
# $FreeBSD: head/lang/fpc/Makefile 300896 2012-07-14 13:54:48Z beat $
#
d5 2
a6 2
PORTVERSION=	2.6.0
PORTREVISION?=	2
a83 1
	mkxmlrpc.1 \
@


1.44
log
@- Fix install

Reported by:	pav
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.43
log
@- Fix a problem when fpc.cfg is removed on deinstall time
- Bump PORTREVISION

Reported by:	erwin
@
text
@d157 1
a157 1
	@@${REINPLACE_CMD} -i "" -e 's|^-Fl/usr/local/lib|-Fl${LOCALBASE}/lib;${LOCALBASE}/lib/qt4|g' ${PREFIX}/etc/fpc.cfg
@


1.42
log
@- Add ${LOCALBASE}/lib/qt4 path to fpc.cfg config file
- Bump PORTREVISION
@
text
@d10 1
a10 1
PORTREVISION?=	1
d157 1
a160 1
	@@${REINPLACE_CMD} -i "" -e 's|^-Fl/usr/local/lib|-Fl${LOCALBASE}/lib;${LOCALBASE}/lib/qt4|g' ${PREFIX}/etc/fpc.cfg
@


1.41
log
@- Update to 2.6.0
@
text
@d10 1
a10 1
PORTREVISION?=	0
d160 1
@


1.40
log
@Last commit message is wrong!

New commit message:
- Fix: comments should begin with the line whithout whitespaces in front.
@
text
@d9 1
a9 1
PORTVERSION=	2.4.4
d118 3
a120 1
			| ${TAR} xf - ${FPCSRCDIR}/compiler ${FPCSRCDIR}/rtl ${FPCSRCDIR}/utils/fpcm
d134 1
a134 1
# build fpcmake
d136 3
d145 2
d148 1
a148 1
	@@@@cd ${WRKDIR}/${FPCSRCDIR}/utils/fpcm && ${GMAKE} install ${MAKE_ENV}
@


1.39
log
@- set EXPIRATION_DATE to "one week after FreeBSD 9.0-RELEASE-p0"

with hat apache@@
@
text
@@


1.38
log
@- Update to 2.4.4
@
text
@d136 1
a136 1
	# Installing fpc compiler
d138 1
a138 1
      	# Installing fpc runtime
d140 1
a140 1
	# Installng fpcmake
d142 1
a142 1
	# Installing manpages
@


1.37
log
@- DISTNAME= ${PORTNAME}-${PORTVERSION} is the default and not needed.

PR:             ports/153292
Submitted by:   myself (pgollucci)
Tested by:      -exp run by pav
Approved by:    portmgr (pav)
@
text
@d9 1
a9 1
PORTVERSION=	2.4.2
a33 1
SUB_FILES=	pkg-message
d35 1
d54 2
d143 2
a144 2
	${INSTALL_DATA} ${WRKDIR}/${PORTNAME}-${PORTVERSION:S/$/.man/}/man/man1/* ${MAN1PREFIX}/man/man1
	${INSTALL_DATA} ${WRKDIR}/${PORTNAME}-${PORTVERSION:S/$/.man/}/man/man5/* ${MAN1PREFIX}/man/man5
@


1.36
log
@- Update to 2.4.2

See changelog at: http://wiki.freepascal.org/User_Changes_2.4.2
@
text
@a22 1
DISTNAME=	${PORTNAME}-${PORTVERSION}
@


1.35
log
@- Update to 2.4.0
- Add support for amd64 [1]
- Add 23 new ports to  to bsd.fpc.mk
- Remove obsolete patch file patch-packages-fcl-db_Makefile
- Turn off some optional dependencies like databases/unixODBC,
  graphics/svgalib, databases/oracle8-client for avoid break amd64 support
- Clean up

PR:	ports/146001
Submmitted by:	Christopher Key <cjk32__ at _cam.ac.uk>
Patch reviewed by:	marcov_ at _pascalprogramming.com (fpc developer)[1]
@
text
@d9 1
a9 1
PORTVERSION=	2.4.0
d75 1
@


1.34
log
@- Fix some more SF URLs, including ones in PATCH_SITES and comments (for consistency)

Approved by:	portmgr (pav)
@
text
@d9 1
a9 1
PORTVERSION=	2.2.4
d19 4
a22 2
		${MASTER_SITE_GOOGLE_CODE}:bin \
		${MASTER_SITE_LOCAL:S|$|acm/freepascal/:bin|}
d32 1
a32 1
ONLY_FOR_ARCHS=	i386
d42 12
d55 2
a56 2
BUILDNAME=	${ARCH}-freebsd
PLIST_SUB=	PORTVERSION=${PORTVERSION} \
d58 4
a61 3
DISTFILES+=	${DISTNAME:S/$/.bin/}${EXTRACT_SUFX}:bin
MAKE_ENV+=	PP=${WRKDIR}/${PORTNAME}-${PORTVERSION:S/$/.bin/}/lib/${PORTNAME}/${PORTVERSION}/ppc386 \
		FPCMAKE=${WRKDIR}/${PORTNAME}-${PORTVERSION:S/$/.bin/}/bin/fpcmake \
d63 1
d108 4
a111 1
	@@${TAR} xfz ${_DISTDIR}/${DISTNAME:S/$/.bin/}${EXTRACT_SUFX} --directory \
d119 7
a125 2
# patch fpc rtl
	@@${REINPLACE_CMD} -i "" -e 's|504000|${OSVERSION}|g' ${WRKDIR}/${FPCSRCDIR}/rtl/freebsd/${ARCH}/cprt0.as
d141 2
a142 2
	${INSTALL_DATA} ${WRKDIR}/${PORTNAME}-${PORTVERSION:S/$/.bin/}/man/man1/* ${MAN1PREFIX}/man/man1
	${INSTALL_DATA} ${WRKDIR}/${PORTNAME}-${PORTVERSION:S/$/.bin/}/man/man5/* ${MAN1PREFIX}/man/man5
d145 2
a146 2
	if [ -e "${PREFIX}/bin/ppc386" ]; then ${RM} -f "${PREFIX}/bin/ppc386"; fi
	${LN} -s "${PREFIX}/lib/fpc/${PORTVERSION}/ppc386" "${PREFIX}/bin"
@


1.33
log
@- Fix all MASTER_SITES entries. Now it will compile without problems

Reported by:	Zahemszky Gbor <Gabor __ at__zahemszky.hu> via email
@
text
@d18 1
a18 1
		${MASTER_SITE_SOURCEFORGE:S|$|freepascal/|}:source \
@


1.32
log
@- Update to 2.2.4
- Add convertors/fpc-iconvenc port to bsd.fpc.mk
- pkg-plist fixes
@
text
@d12 7
a18 7
MASTER_SITES=	ftp://ftp.freepascal.org/pub/fpc/dist/source-${PORTVERSION}/:source \
		ftp://planetmirror.com/pub/fpc/dist/source-${PORTVERSION}/:source \
		ftp://ftp.jp.freepascal.org/mirror/fpc/dist/source-${PORTVERSION}/:source \
		ftp://freepascal.stack.nl/pub/fpc/dist/source-${PORTVERSION}/:source \
		ftp://ftp.no.freepascal.org/pub/fpc/dist/source-${PORTVERSION}/:source \
		ftp://ftp.us.freepascal.org/pub/fpc/dist/source-${PORTVERSION}/:source \
		${MASTER_SITE_SOURCEFORGE}:source \
a20 1
MASTER_SITE_SUBDIR=	freepascal
@


1.31
log
@- Update to 2.2.2
@
text
@d9 1
a9 1
PORTVERSION=	2.2.2
d19 1
d29 1
d53 2
d61 1
d64 3
d71 1
d85 1
d100 4
@


1.30
log
@- Remove conditional checks for FreeBSD 5.x and older
@
text
@d9 2
a10 2
PORTVERSION=	2.2.0
PORTREVISION?=	2
a27 2
LIB_DEPENDS=	c.5:${PORTSDIR}/misc/compat5x

d48 2
a49 1
		BSDHIER=1	
@


1.29
log
@- PREFIX is always present in MAKE_ENV, no need to add it again
@
text
@d28 2
a80 5
# only need misc/compat4x if using the pre-built ppc386
.if ${OSVERSION} >= 600000
LIB_DEPENDS+=	c.5:${PORTSDIR}/misc/compat5x
.endif

@


1.28
log
@- Use new freepascal stuff
- Bump PORTREVISION
@
text
@a44 1
		PREFIX=${PREFIX} \
@


1.27
log
@- Add a better way to install fpc.cfg config file, now lazarus will compile
  without problems :)
- Bump PORTREVISION

PR		:	119385
Submitted by	:	bsam
@
text
@d10 1
a10 1
PORTREVISION?=	1
d30 1
a30 6
BUILDNAME=	${ARCH}-freebsd
OPT?=-CX
MAKE_ENV=	PREFIX=${PREFIX} \
		FPCTARGET=${BUILDNAME} \
		OPT="${OPT}" \
		BSDHIER=1
a31 2
PLIST_SUB+=	PORTVERSION=${PORTVERSION} \
		BUILDNAME=${BUILDNAME}
d33 2
d40 3
d45 5
a49 1
		FPCMAKE=${WRKDIR}/${PORTNAME}-${PORTVERSION:S/$/.bin/}/bin/fpcmake
d93 1
a93 1
			| ${TAR} xf - ${FPCSRCDIR}/compiler ${FPCSRCDIR}/rtl
d98 2
d106 2
@


1.26
log
@- Update to 2.2.0
@
text
@d10 1
a10 1
PORTREVISION?=	0
d110 3
@


1.25
log
@- Add OPTIONS to some freepascal ports. Now, we can install the external libs
  optionally.[1]
- Other tiny modifications

Suggested by:	Ales Catona <almindor__at__gmail.com> [1]
Approved by:	garga(mentor, implicit)
@
text
@d9 2
a10 2
PORTVERSION=	2.0.4
PORTREVISION?=	1
d22 1
a22 1
DISTFILES=	${PORTNAME:S/$/build/}-${PORTVERSION}${EXTRACT_SUFX}:source
d36 1
d40 1
a40 1
FPCSRCDIR=	${PORTNAME:S/$/build_/}${PORTVERSION:S/$/_exp/}/${PORTNAME:S/$/src/}
a43 4
.if ${OSVERSION} < 500000
BROKEN=		does not compile
.endif

d46 2
a47 2
MAKE_ENV+=	PP=${WRKDIR}/${PORTNAME:S/$/-bin/}/lib/${PORTNAME}/${PORTVERSION}/ppc386 \
		FPCMAKE=${WRKDIR}/${PORTNAME:S/$/-bin/}/bin/fpcmake
d90 1
a90 1
		${GZIP_CMD} -dc ${_DISTDIR}/${PORTNAME:S/$/build/}-${PORTVERSION}${EXTRACT_SUFX} \
d103 2
a104 2
	${INSTALL_DATA} ${WRKDIR}/fpc-bin/man/man1/* ${MAN1PREFIX}/man/man1
	${INSTALL_DATA} ${WRKDIR}/fpc-bin/man/man5/* ${MAN1PREFIX}/man/man5
@


1.24
log
@- Update to 2.0.4
- Add new dependencies to editors/lazarus

Approved by:	garga (mentor,implicit)
@
text
@d10 1
a10 1
PORTREVISION?=	0
@


1.23
log
@- Added post-extract on Makefiles.units. It remove the svn directories from
  some fpc ports.
- Added PORTREVISION for each port
- Fixed pkg-plist on fpc-gtk2 and fpc-gtk ports
- Fixed the gtk, glib and gdk libraries linking for fpc-gtk
- Removed obsolete patches from fpc-gtk. Now it's using ${REINPLACE_CMD}
- Removed post-extract from fpc-fcl. I just added it to makefiles.units file

Approved by:	garga (mentor)
@
text
@d9 2
a10 2
PORTVERSION=	2.0.2
PORTREVISION?=	1
d22 1
a22 1
DISTFILES=	${DISTNAME:S/$/.source/}${EXTRACT_SUFX}:source
d39 1
d44 1
a44 1
BROKEN=	does not compile
d55 1
d60 1
d93 2
a94 2
		${GZIP_CMD} -dc ${_DISTDIR}/${DISTNAME:S/$/.source/}${EXTRACT_SUFX} \
			| ${TAR} xf - ${PORTNAME}/compiler ${PORTNAME}/rtl
d98 1
a98 3
	@@cd ${WRKDIR}/${PORTNAME}/compiler && ${GMAKE} cycle ${MAKE_ENV}
# build fpc runtime
#	@@cd ${WRKDIR}/${PORTNAME}/rtl && ${GMAKE} all ${MAKE_ENV}
d102 1
a102 1
	@@cd ${WRKDIR}/${PORTNAME}/rtl && ${GMAKE} install ${MAKE_ENV}
d104 1
a104 1
	@@cd ${WRKDIR}/${PORTNAME}/compiler && ${GMAKE} install ${MAKE_ENV}
@


1.22
log
@- The big change on ports of freepascal, now all ports are compiled
- Adding entry for lang/fpc-utils

Approved by:	garga (mentor)
@
text
@d10 1
a10 1
PORTREVISION=	1
@


1.21
log
@- Update fpc to 2.0.2

PR:		98628, 98629, 98630, 98632, 98641, 98646, 98650, 98652,
		98654, 98656, 98657, 98658, 98720, 98724
Submitted by:	Jose Alonso Cardenas Marquez <acardenas@@bsd.org.pe>
@
text
@d10 1
d12 8
a19 7
MASTER_SITES=	ftp://ftp.freepascal.org/pub/fpc/dist/i386-freebsd-${PORTVERSION}/ \
		ftp://planetmirror.com/pub/fpc/dist/i386-freebsd-${PORTVERSION}/ \
		ftp://ftp.jp.freepascal.org/mirror/fpc/dist/i386-freebsd-${PORTVERSION}/ \
		ftp://freepascal.stack.nl/pub/fpc/dist/i386-freebsd-${PORTVERSION}/ \
		ftp://ftp.no.freepascal.org/pub/fpc/dist/i386-freebsd-${PORTVERSION}/ \
		ftp://ftp.us.freepascal.org/pub/fpc/dist/i386-freebsd-${PORTVERSION}/ \
		${MASTER_SITE_SOURCEFORGE}
d21 3
a23 2
DISTNAME=	${PORTNAME}-${PORTVERSION}.${BUILDNAME}
EXTRACT_SUFX=	.tar
d25 1
a25 1
MAINTAINER?=	acardenas@@bsd.org.pe
d28 1
a28 1
BUILDNAME=	i386-freebsd
d30 6
a35 1
NO_BUILD=	yes
d42 4
d47 3
d84 14
a97 12
# unpack distribution
	@@${MKDIR} ${WRKSRC}
	@@${TAR} xf ${DISTDIR}/${DISTNAME}.tar --directory ${WRKSRC}
# unpack pre-compiled binaries distribution
	@@${MKDIR} ${WRKSRC}/binary
	@@${TAR} xf ${WRKSRC}/binary.${BUILDNAME}.tar --directory ${WRKSRC}/binary
# create a local binary ppc386
	@@${MKDIR} ${WRKSRC}/boot
	@@${TAR} zxf ${WRKSRC}/binary/base.${BUILDNAME}.tar.gz \
		--directory ${WRKSRC}/boot
	@@${TAR} zxf ${WRKSRC}/binary/utils.${BUILDNAME}.tar.gz \
		--directory ${WRKSRC}/boot
d100 4
a103 8
	# Installing binaries
	${INSTALL_SCRIPT} ${WRKSRC}/boot/bin/* ${PREFIX}/bin
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/boot/share/doc/fpc-${PORTVERSION}/* ${DOCSDIR}
.endif
	# Installing fpc libs
	${CP} -r ${WRKSRC}/boot/lib/* ${PREFIX}/lib
d105 2
a106 2
	${INSTALL_DATA} ${WRKSRC}/boot/man/man1/* ${MAN1PREFIX}/man/man1
	${INSTALL_DATA} ${WRKSRC}/boot/man/man5/* ${MAN1PREFIX}/man/man5
@


1.20
log
@Remove USE_REINPLACE from the categories starting with L
@
text
@d9 9
a17 4
PORTVERSION=	1.0.10
PORTREVISION=	3
CATEGORIES=	lang
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
d19 1
a19 1
DISTNAME=	${PORTNAME}-${PORTVERSION}.ELF
d22 2
a23 2
MAINTAINER=	ports@@FreeBSD.org
COMMENT=	Free Pascal compiler with Turbo, Delphi and other extensions
d25 1
a25 9
.include <bsd.port.pre.mk>

LIB_DEPENDS+=	gds.1:${PORTSDIR}/databases/firebird-client
.if ${OSVERSION} < 470000
EXTRACT_DEPENDS+=	gtar:${PORTSDIR}/archivers/gtar
TAR=			${LOCALBASE}/bin/gtar
.endif
USE_MYSQL=	yes
USE_GMAKE=	yes
d27 4
a30 1
PKGDEINSTALL=	${PKGINSTALL}
d32 1
a32 1
PLIST_SUB+=	PORTVERSION=${PORTVERSION}
d34 27
a60 2
MAN1=	delp.1 fpc.1 fpcmake.1 fpdoc.1 h2pas.1 plex.1 ppc386.1 ppdep.1 \
	ppudump.1 ppufiles.1 ppumove.1 ptop.1 pyacc.1 rstconv.1
a62 27
NO_LATEST_LINK=	yes

# FreePascal is not self-bootstrapping.  Hence, the need for a working
# pppc386.  Check for ppc386 in a manner similar to lang/gnat.
#
# Look in PREFIX
.ifdef PREFIX
have_boot!=	if [ -x ${PREFIX}/bin/ppc386 ]; then \
			${ECHO_CMD} "${PREFIX}/bin"; \
		else \
			${ECHO_CMD} ""; \
		fi
.else
have_boot=
.endif

# Then look in LOCALBASE
.if empty(have_boot)
have_boot!=	if [ -x ${LOCALBASE}/bin/ppc386 ]; then \
			${ECHO_CMD} "${LOCALBASE}/bin"; \
		else \
			${ECHO_CMD} ""; \
		fi
.endif

.if empty(have_boot)
have_boot=	${WRKSRC}/boot/bin
d64 2
a65 2
.if ${OSVERSION} >= 500000
LIB_DEPENDS+=	c.4:${PORTSDIR}/misc/compat4x
a66 8
.endif

MAKE_ENV+=	PATH=${have_boot}:$$PATH \
		FPC=${have_boot}/ppc386 \
		INSTALL_BASEDIR=${PREFIX}/lib/fpc/${PORTVERSION} \
		INSTALL_BINDIR=${PREFIX}/bin \
		GCCLIBDIR=/usr/lib \
		RELEASE=1
d74 1
a74 4
	@@${TAR} xf ${WRKSRC}/binary.tar --directory ${WRKSRC}/binary
# unpack sources distribution
	@@${MKDIR} ${WRKSRC}/sources
	@@${TAR} xf ${WRKSRC}/sources.tar --directory ${WRKSRC}/sources
d77 1
a77 1
	@@${TAR} zxf ${WRKSRC}/binary/basefreebsd.tar.gz \
d79 1
a79 1
	@@${TAR} zxf ${WRKSRC}/binary/utilfreebsd.tar.gz \
a80 53
	@@${LN} -sf ${WRKSRC}/boot/lib/fpc/${PORTVERSION}/ppc386 \
		${WRKSRC}/boot/bin/ppc386
# further extract base sources
#
# mandatory sources
	@@${TAR} zxf ${WRKSRC}/sources/basesrc.tar.gz \
		--directory ${WRKSRC}
	@@${TAR} zxf ${WRKSRC}/sources/compilersrc.tar.gz \
		--directory ${WRKSRC}
	@@${TAR} zxf ${WRKSRC}/sources/rtlsrc.tar.gz \
		--directory ${WRKSRC}
# dependencies of FCL
	@@${TAR} zxf ${WRKSRC}/sources/unitspaszlibsrc.tar.gz \
		--directory ${WRKSRC}
	@@${TAR} zxf ${WRKSRC}/sources/unitsnetdbsrc.tar.gz \
		--directory ${WRKSRC}
	@@${TAR} zxf ${WRKSRC}/sources/unitslibasyncsrc.tar.gz \
		--directory ${WRKSRC}
	@@${TAR} zxf ${WRKSRC}/sources/unitsmysqlsrc.tar.gz \
		--directory ${WRKSRC}
	@@${TAR} zxf ${WRKSRC}/sources/unitsibasesrc.tar.gz \
		--directory ${WRKSRC}
# FCL is required for some of the compiler utilities
	@@${TAR} zxf ${WRKSRC}/sources/fclsrc.tar.gz \
		--directory ${WRKSRC}
# compiler utilities
	@@${TAR} zxf ${WRKSRC}/sources/utilssrc.tar.gz \
		--directory ${WRKSRC}

post-patch:
# change to alter amount of optimization
	@@${FIND} ${WRKSRC}/share/src/fpc-${PORTVERSION} -name \
		"Makefile*" | ${XARGS} ${REINPLACE_CMD} 's|-OG2p3|-OG2p1|g'

do-build:
	@@${SETENV} ${MAKE_ENV} ${GMAKE} -C \
		${WRKSRC}/share/src/fpc-${PORTVERSION}/rtl \
		all
	@@${SETENV} ${MAKE_ENV} ${GMAKE} -C \
		${WRKSRC}/share/src/fpc-${PORTVERSION}/compiler \
		all
	@@${SETENV} ${MAKE_ENV} ${GMAKE} -C \
		${WRKSRC}/share/src/fpc-${PORTVERSION}/packages/base/libasync \
		all
	@@${SETENV} ${MAKE_ENV} ${GMAKE} -C \
		${WRKSRC}/share/src/fpc-${PORTVERSION}/fcl \
		all
# kludge so that bin2obj finds ZSTREAM and builds
	cd ${WRKSRC}/share/src/fpc-${PORTVERSION} && \
		${CP} fcl/inc/zstream.pp utils
	@@${SETENV} ${MAKE_ENV} ${GMAKE} -C \
		${WRKSRC}/share/src/fpc-${PORTVERSION}/utils \
		all
d83 11
a93 21
	@@${SETENV} ${MAKE_ENV} ${GMAKE} -C \
		${WRKSRC}/share/src/fpc-${PORTVERSION}/rtl \
		install
	@@${SETENV} ${MAKE_ENV} ${GMAKE} -C \
		${WRKSRC}/share/src/fpc-${PORTVERSION}/compiler \
		install
	@@${SETENV} ${MAKE_ENV} ${GMAKE} -C \
		${WRKSRC}/share/src/fpc-${PORTVERSION}/packages/base/libasync \
		install
	@@${SETENV} ${MAKE_ENV} ${GMAKE} -C \
		${WRKSRC}/share/src/fpc-${PORTVERSION}/fcl \
		install
	@@${SETENV} ${MAKE_ENV} ${GMAKE} -C \
		${WRKSRC}/share/src/fpc-${PORTVERSION}/utils \
		install
	@@${MKDIR} ${PREFIX}/man/man1
	cd ${WRKSRC}/boot/man/man1 && ${INSTALL_MAN} ${MAN1} \
		${PREFIX}/man/man1
	@@${MKDIR} ${PREFIX}/man/man5
	cd ${WRKSRC}/boot/man/man5 && ${INSTALL_MAN} ${MAN5} \
		${PREFIX}/man/man5
d96 4
a99 2
	@@${SETENV} PKG_PREFIX=${PREFIX} ${SH} \
		${PKGINSTALL} ${PKGNAME} POST-INSTALL
d101 3
@


1.19
log
@- No latest link, to prevent clash with lang/fpc2

Reported by:	kris
@
text
@a28 1
USE_REINPLACE=	yes
@


1.18
log
@- Remove dead MASTER_SITES
@
text
@d39 2
@


1.17
log
@- Fix after spliting firebird
- Bump PORTREVISION

PR:		ports/79337
Submitted by:	Renato Botelho <freebsd@@galle.com.br> (firebird maintainer)
@
text
@d12 1
a12 7
MASTER_SITES=	ftp://ftp.freepascal.org/pub/fpc/dist/FreeBSD/ \
		ftp://planetmirror.com/pub/fpc/dist/FreeBSD/ \
		ftp://ftp.jp.freepascal.org/mirror/fpc/dist/FreeBSD/ \
		ftp://freepascal.stack.nl/pub/fpc/dist/FreeBSD/ \
		ftp://ftp.no.freepascal.org/pub/fpc/dist/FreeBSD/ \
		ftp://ftp.us.freepascal.org/pub/fpc/dist/FreeBSD/ \
		${MASTER_SITE_SOURCEFORGE}
@


1.16
log
@With portmgr hat on, reset maintainership of these ports.  Maintainer's
old email address bounces, and he has not been responsive to email on the
only other one we have for him.

These ports are now available for adoption.

Come back coop, we miss ya ...
@
text
@d10 1
a10 1
PORTREVISION=	2
d28 1
a28 1
LIB_DEPENDS+=	gds.1:${PORTSDIR}/databases/firebird
@


1.15
log
@- Fix MASTER_SITES

PR:		ports/67345
Submitted by:	Roman Neuhauser <neuhauser@@chello.cz>
@
text
@d23 1
a23 1
MAINTAINER=	coop9211@@uidaho.edu
@


1.14
log
@* Fix the build on -CURRENT
* Clean up Makefile
* Fix build when an earlier version of fpc was already installed

PR:		62485
Submitted by:	maintainer
@
text
@d13 1
a13 1
		http://planetmirror.com/pub/fpc/dist/FreeBSD/ \
@


1.13
log
@This is broken on 4.x as well.
@
text
@d10 1
a10 1
PORTREVISION=	1
a25 2
BROKEN=		"Install fails"

d28 1
a28 4
LIB_DEPENDS=	gds.1:${PORTSDIR}/databases/firebird
.if ${OSVERSION} >= 500000
LIB_DEPENDS+=   c.4:${PORTSDIR}/misc/compat4x
.endif
d30 1
a30 1
EXTRACT_DEPENDS=	gtar:${PORTSDIR}/archivers/gtar
d69 5
a73 1
have_boot=	${WRKSRC}/boot
d76 2
a77 2
MAKE_ENV+=	PATH=${have_boot}/bin:$$PATH \
		FPC=${have_boot}/bin/ppc386 \
d134 12
a145 8
	cd ${WRKSRC}/share/src/fpc-${PORTVERSION}/rtl && \
		${GMAKE} ${MAKE_ENV} all
	cd ${WRKSRC}/share/src/fpc-${PORTVERSION}/compiler && \
		${GMAKE} ${MAKE_ENV} all
	cd ${WRKSRC}/share/src/fpc-${PORTVERSION}/packages/base/libasync && \
		${GMAKE} ${MAKE_ENV} all
	cd ${WRKSRC}/share/src/fpc-${PORTVERSION}/fcl && \
		${GMAKE} ${MAKE_ENV} all
d149 3
a151 2
	cd ${WRKSRC}/share/src/fpc-${PORTVERSION}/utils && \
		${GMAKE} ${MAKE_ENV} all
d154 15
a168 10
	cd ${WRKSRC}/share/src/fpc-${PORTVERSION}/rtl && \
		${GMAKE} ${MAKE_ENV} install
	cd ${WRKSRC}/share/src/fpc-${PORTVERSION}/compiler && \
		${GMAKE} ${MAKE_ENV} install
	cd ${WRKSRC}/share/src/fpc-${PORTVERSION}/packages/base/libasync && \
		${GMAKE} ${MAKE_ENV} install
	cd ${WRKSRC}/share/src/fpc-${PORTVERSION}/fcl && \
		${GMAKE} ${MAKE_ENV} install
	cd ${WRKSRC}/share/src/fpc-${PORTVERSION}/utils && \
		${GMAKE} ${MAKE_ENV} install
@


1.12
log
@BROKEN on 5.x: install fails
@
text
@d26 2
a28 4

.if ${OSVERSION} >= 502000
BROKEN=		"Install fails"
.endif
@


1.11
log
@Bump PORTREVISION on all ports that depend on gettext to aid with upgrading.

(Part 2)
@
text
@d28 4
@


1.10
log
@Update to 1.0.10.

Additional change according to the submitter:
- Port compiles for the first time
- Port has 'gone on a diet'

PR:		60912
Submitted by:	maintainer
@
text
@d10 1
@


1.9
log
@* Upgrade to 1.0.6.
* Fix build on -current.

PR:		ports/53884
Submitted by:	Matthew West <mwest@@uct.ac.za>
Approved by:	maintainer
@
text
@d2 2
a3 2
# Date created:				28 November 2001
# Whom:					John Merryweather Cooper et al
d9 1
a9 1
PORTVERSION=	1.0.6
d11 9
a19 10
MASTER_SITES=	ftp://ftp.freepascal.org/pub/fpc/dist/freebsd-${PORTVERSION}/ \
		ftp://ftp.epix.net/pub/languages/pascal/dist/freebsd-${PORTVERSION}/ \
		http://gd.tuwien.ac.at/languages/pascal/dist/freebsd-${PORTVERSION}/ \
		http://www.zeus.rug.ac.be/freepascal/files/dist/freebsd-${PORTVERSION}/ \
		ftp://ftp.darklands.cx/pub/fpc/dist/freebsd-${PORTVERSION}/ \
		ftp://ftp.jp.freepascal.org/mirror/fpc/dist/freebsd-${PORTVERSION}/ \
		ftp://deadlock.et.tudelft.nl/pub/fpc/dist/freebsd-${PORTVERSION}/ \
		ftp://ftp.no.freepascal.org/pub/fpc/dist/freebsd-${PORTVERSION}/
DISTNAME=	${PORTNAME}-${PORTVERSION}.ELF.FreeBSD

d27 1
d29 1
a29 1
LIB_DEPENDS+=	c_r.4:${PORTSDIR}/misc/compat4x
a30 1

d32 2
a33 2
EXTRACT_DEPENDS=	${LOCALBASE}/bin/gtar:${PORTSDIR}/archivers/gtar
TAR=		${LOCALBASE}/bin/gtar
d35 3
a37 3

RUN_DEPENDS=	${LOCALBASE}/bin/nasm:${PORTSDIR}/devel/nasm

a38 3
NO_WRKSUBDIR=	yes
NO_BUILD=	yes
USE_PERL5=	yes
d43 16
a58 96
MAN1=		delp.1 fpc.1 fpcmake.1 h2pas.1 plex.1 ppc386.1 ppdep.1 \
		ppudump.1 ppufiles.1 ppumove.1 ptop.1 pyacc.1 rstconv.1
MAN5=		fpc.cfg.5 fpcmake.5 ptop.cfg.5

# programs
SORT?=		/usr/bin/sort
# macro for creating directory with DATA perms
INSTALL_DATA_DIR=	${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} -m 0755


LIBDIR=		${PREFIX}/lib/fpc/${PORTVERSION}
TEMP_PREFIX=	${WRKSRC}/temp

# install staging area
post-extract:
	@@${TAR} xf ${WRKSRC}/binary.tar --directory ${WRKSRC}
	@@${TAR} xf ${WRKSRC}/sources.tar --directory ${WRKSRC}
	@@${MKDIR} ${TEMP_PREFIX}
#unpack base system
	@@${TAR} zxf ${WRKSRC}/basefreebsd.tar.gz \
		--directory ${TEMP_PREFIX}
	@@${TAR} zxf ${WRKSRC}/utilfreebsd.tar.gz \
		--directory ${TEMP_PREFIX}
#unpack units
	@@${TAR} zxf ${WRKSRC}/unitsfclfreebsd.tar.gz --directory ${TEMP_PREFIX}
	@@${TAR} zxf ${WRKSRC}/unitsbfdfreebsd.tar.gz --directory ${TEMP_PREFIX}
	@@${TAR} zxf ${WRKSRC}/unitscmemfreebsd.tar.gz --directory ${TEMP_PREFIX}
	@@${TAR} zxf ${WRKSRC}/unitsformsfreebsd.tar.gz --directory ${TEMP_PREFIX}
	@@${TAR} zxf ${WRKSRC}/unitsfpasyncfreebsd.tar.gz --directory ${TEMP_PREFIX}
	@@${TAR} zxf ${WRKSRC}/unitsgdbintfreebsd.tar.gz --directory ${TEMP_PREFIX}
	@@${TAR} zxf ${WRKSRC}/unitsgdbmfreebsd.tar.gz --directory ${TEMP_PREFIX}
	@@${TAR} zxf ${WRKSRC}/unitsggifreebsd.tar.gz --directory ${TEMP_PREFIX}
	@@${TAR} zxf ${WRKSRC}/unitsgtkfreebsd.tar.gz --directory ${TEMP_PREFIX}
	@@${TAR} zxf ${WRKSRC}/unitsibasefreebsd.tar.gz --directory ${TEMP_PREFIX}
	@@${TAR} zxf ${WRKSRC}/unitsinetfreebsd.tar.gz --directory ${TEMP_PREFIX}
	@@${TAR} zxf ${WRKSRC}/unitslibasyncfreebsd.tar.gz --directory ${TEMP_PREFIX}
	@@${TAR} zxf ${WRKSRC}/unitslibgdfreebsd.tar.gz --directory ${TEMP_PREFIX}
	@@${TAR} zxf ${WRKSRC}/unitslibpngfreebsd.tar.gz --directory ${TEMP_PREFIX}
	@@${TAR} zxf ${WRKSRC}/unitsmysqlfreebsd.tar.gz --directory ${TEMP_PREFIX}
	@@${TAR} zxf ${WRKSRC}/unitsncursesfreebsd.tar.gz --directory ${TEMP_PREFIX}
	@@${TAR} zxf ${WRKSRC}/unitsopenglfreebsd.tar.gz --directory ${TEMP_PREFIX}
	@@${TAR} zxf ${WRKSRC}/unitsoraclefreebsd.tar.gz --directory ${TEMP_PREFIX}
	@@${TAR} zxf ${WRKSRC}/unitspaszlibfreebsd.tar.gz --directory ${TEMP_PREFIX}
	@@${TAR} zxf ${WRKSRC}/unitspostgresfreebsd.tar.gz --directory ${TEMP_PREFIX}
	@@${TAR} zxf ${WRKSRC}/unitsregexprfreebsd.tar.gz --directory ${TEMP_PREFIX}
	@@${TAR} zxf ${WRKSRC}/unitssvgalibfreebsd.tar.gz --directory ${TEMP_PREFIX}
	@@${TAR} zxf ${WRKSRC}/unitssyslogfreebsd.tar.gz --directory ${TEMP_PREFIX}
	@@${TAR} zxf ${WRKSRC}/unitsuncgifreebsd.tar.gz --directory ${TEMP_PREFIX}
	@@${TAR} zxf ${WRKSRC}/unitsunzipfreebsd.tar.gz --directory ${TEMP_PREFIX}
	@@${TAR} zxf ${WRKSRC}/unitsutmpfreebsd.tar.gz --directory ${TEMP_PREFIX}
	@@${TAR} zxf ${WRKSRC}/unitsx11freebsd.tar.gz --directory ${TEMP_PREFIX}
	@@${TAR} zxf ${WRKSRC}/unitszlibfreebsd.tar.gz --directory ${TEMP_PREFIX}
#unpack ide
	@@${TAR} zxf ${WRKSRC}/idefreebsd.tar.gz --directory ${TEMP_PREFIX}
.ifndef(NOPORTDOCS)
#unpack documentation, examples, and sources
	@@${TAR} zxf ${WRKSRC}/basesrc.tar.gz --directory ${TEMP_PREFIX}
	@@${TAR} zxf ${WRKSRC}/compilersrc.tar.gz \
		--directory ${TEMP_PREFIX}
	@@${TAR} zxf ${WRKSRC}/rtlsrc.tar.gz \
		--directory ${TEMP_PREFIX}
	@@${TAR} zxf ${WRKSRC}/fclsrc.tar.gz \
		--directory ${TEMP_PREFIX}
	@@${TAR} zxf ${WRKSRC}/idesrc.tar.gz \
		--directory ${TEMP_PREFIX}
	@@${TAR} zxf ${WRKSRC}/installersrc.tar.gz \
		--directory ${TEMP_PREFIX}
	@@${TAR} zxf ${WRKSRC}/unitsbfdsrc.tar.gz --directory ${TEMP_PREFIX}
	@@${TAR} zxf ${WRKSRC}/unitscmemsrc.tar.gz --directory ${TEMP_PREFIX}
	@@${TAR} zxf ${WRKSRC}/unitsformssrc.tar.gz --directory ${TEMP_PREFIX}
	@@${TAR} zxf ${WRKSRC}/unitsfpasyncsrc.tar.gz --directory ${TEMP_PREFIX}
	@@${TAR} zxf ${WRKSRC}/unitsgdbintsrc.tar.gz --directory ${TEMP_PREFIX}
	@@${TAR} zxf ${WRKSRC}/unitsgdbmsrc.tar.gz --directory ${TEMP_PREFIX}
	@@${TAR} zxf ${WRKSRC}/unitsggisrc.tar.gz --directory ${TEMP_PREFIX}
	@@${TAR} zxf ${WRKSRC}/unitsgtksrc.tar.gz --directory ${TEMP_PREFIX}
	@@${TAR} zxf ${WRKSRC}/unitsibasesrc.tar.gz --directory ${TEMP_PREFIX}
	@@${TAR} zxf ${WRKSRC}/unitsinetsrc.tar.gz --directory ${TEMP_PREFIX}
	@@${TAR} zxf ${WRKSRC}/unitslibasyncsrc.tar.gz --directory ${TEMP_PREFIX}
	@@${TAR} zxf ${WRKSRC}/unitslibgdsrc.tar.gz --directory ${TEMP_PREFIX}
	@@${TAR} zxf ${WRKSRC}/unitslibpngsrc.tar.gz --directory ${TEMP_PREFIX}
	@@${TAR} zxf ${WRKSRC}/unitsmysqlsrc.tar.gz --directory ${TEMP_PREFIX}
	@@${TAR} zxf ${WRKSRC}/unitsncursessrc.tar.gz --directory ${TEMP_PREFIX}
	@@${TAR} zxf ${WRKSRC}/unitsopenglsrc.tar.gz --directory ${TEMP_PREFIX}
	@@${TAR} zxf ${WRKSRC}/unitsoraclesrc.tar.gz --directory ${TEMP_PREFIX}
	@@${TAR} zxf ${WRKSRC}/unitspaszlibsrc.tar.gz --directory ${TEMP_PREFIX}
	@@${TAR} zxf ${WRKSRC}/unitspostgressrc.tar.gz --directory ${TEMP_PREFIX}
	@@${TAR} zxf ${WRKSRC}/unitsregexprsrc.tar.gz --directory ${TEMP_PREFIX}
	@@${TAR} zxf ${WRKSRC}/unitssvgalibsrc.tar.gz --directory ${TEMP_PREFIX}
	@@${TAR} zxf ${WRKSRC}/unitssyslogsrc.tar.gz --directory ${TEMP_PREFIX}
	@@${TAR} zxf ${WRKSRC}/unitsuncgisrc.tar.gz --directory ${TEMP_PREFIX}
	@@${TAR} zxf ${WRKSRC}/unitsunzipsrc.tar.gz --directory ${TEMP_PREFIX}
	@@${TAR} zxf ${WRKSRC}/unitsutmpsrc.tar.gz --directory ${TEMP_PREFIX}
	@@${TAR} zxf ${WRKSRC}/unitsx11src.tar.gz --directory ${TEMP_PREFIX}
	@@${TAR} zxf ${WRKSRC}/unitszlibsrc.tar.gz --directory ${TEMP_PREFIX}
	@@${TAR} zxf ${WRKSRC}/docs.tar.gz --directory ${TEMP_PREFIX}
	@@${TAR} zxf ${WRKSRC}/demo.tar.gz --directory ${TEMP_PREFIX}
d61 8
a68 1
do-install: install-parse-plist install-run-scripts run-pkg-install-script
d70 93
a162 37
# Contributed by <lioux@@FreeBSD.org>
install-parse-plist: generate-plist
	@@${PERL} -e 'open(FHANDLER,"${TMPPLIST}");' \
		-e 'open(FDIR,">${WRKDIR}/dirs.sh.tmp");' \
		-e 'open(FFILES,">${WRKDIR}/files.sh");' \
		-e 'while (!eof(FHANDLER)) {' \
			-e 'chop($$file = <FHANDLER>);' \
			-e '$$dir = $$file_partial = $$file;' \
			-e '$$file_partial =~ s!^${HLDSDIR:S!^/!!}!!;' \
			-e 'if ($$dir =~ s!(^\@@dirrm\s+)!!) {' \
				-e 'print FDIR "${INSTALL_DATA_DIR}", \
					" ", "\"${PREFIX}/$$dir\"", \
					"\n";' \
			-e '} elsif ($$file !~ m!^\@@!) {' \
				-e 'if ($$dir =~ m!^bin!) {' \
					-e 'print FFILES "${INSTALL_PROGRAM}";' \
				-e '} elsif ($$dir =~ m!^(lib|share)!) {' \
					-e 'print FFILES "${INSTALL_DATA}";' \
				-e '} elsif ($$dir =~ m!^man!) {' \
					-e 'print FFILES "${INSTALL_MAN}";' \
					-e '($$file_partial =~ s!${MANEXT}$$!!);' \
					-e '($$file =~ s!${MANEXT}$$!!);' \
				-e '}' \
				-e 'print FFILES " ", "\"${TEMP_PREFIX}/$$file_partial\"", \
					" ", "\"${PREFIX}/$$file\"", \
					"\n";' \
			-e '}' \
		-e '}' \
		-e 'close(FFILES);' \
		-e 'close(FDIR);' \
		-e 'close(FHANDLER);'
	@@${SORT} ${WRKDIR}/dirs.sh.tmp > ${WRKDIR}/dirs.sh

install-run-scripts:
.for script in dirs files
	@@${SH} ${WRKDIR}/${script}.sh
.endfor
d164 1
a164 1
run-pkg-install-script:
@


1.8
log
@Umm, I should bump PORTREVISION...
@
text
@d9 1
a9 2
PORTVERSION=	1.0.4
PORTREVISION=	1
d11 10
a20 9
MASTER_SITES=   ftp://ftp.freepascal.org/pub/fpc/dist/Freebsd/ \
		ftp://ftp.epix.net/pub/languages/pascal/dist/Freebsd/ \
		http://gd.tuwien.ac.at/languages/pascal/dist/Freebsd/ \
		http://www.zeus.rug.ac.be/freepascal/files/dist/Freebsd/ \
		ftp://ftp.darklands.cx/pub/fpc/dist/Freebsd/ \
		ftp://ftp.jp.freepascal.org/mirror/fpc/dist/Freebsd/ \
		ftp://deadlock.et.tudelft.nl/pub/fpc/dist/Freebsd/ \
		ftp://ftp.no.freepascal.org/pub/fpc/dist/Freebsd/
DISTNAME=	${PORTNAME}-${PORTVERSION}.freebsd4
d24 12
a35 1
COMMENT=	Free Pascal beta compiler with Turbo, Delphi and other extensions
a36 1
EXTRACT_DEPENDS= ${LOCALBASE}/bin/gtar:${PORTSDIR}/archivers/gtar
d45 2
d49 1
a49 1
MAN5=		fpcmake.5 ppc386.cfg.5 ptop.cfg.5
a52 1
TAR=		${LOCALBASE}/bin/gtar
a55 1
.include <bsd.port.pre.mk>
a57 1
DOCSDIR=	${PREFIX}/share/doc/fpc-${PORTVERSION}
a58 5
TEMP_DOCSDIR=	${TEMP_PREFIX}/share/doc/fpc-${PORTVERSION}
TEMP_LIBDIR=	${TEMP_PREFIX}/lib/fpc/${PORTVERSION}
TEMP_EXMPDIR=	${TEMP_PREFIX}/share/examples

PLIST_SUB=	LIBDIR=${LIBDIR}
a66 1
		--exclude-from ${FILESDIR}/tar-xlist \
d68 2
a69 4
	@@${MKDIR} ${TEMP_DOCSDIR}
	@@${TAR} zxf ${WRKSRC}/basefreebsd.tar.gz \
		--files-from ${FILESDIR}/tar-xlist \
		--directory ${TEMP_PREFIX}/share
a70 1
	@@${TAR} zxf ${WRKSRC}/utilfreebsd.tar.gz --directory ${TEMP_PREFIX}
d72 29
a100 6
	@@${TAR} zxf ${WRKSRC}/unitsapifreebsd.tar.gz --directory ${TEMP_PREFIX}
	@@${TAR} zxf ${WRKSRC}/unitsbasefreebsd.tar.gz --directory ${TEMP_PREFIX}
	@@${TAR} zxf ${WRKSRC}/unitsnetfreebsd.tar.gz --directory ${TEMP_PREFIX}
	@@${TAR} zxf ${WRKSRC}/unitsdbfreebsd.tar.gz --directory ${TEMP_PREFIX}
	@@${TAR} zxf ${WRKSRC}/unitsgfxfreebsd.tar.gz --directory ${TEMP_PREFIX}
	@@${TAR} zxf ${WRKSRC}/unitsmiscfreebsd.tar.gz --directory ${TEMP_PREFIX}
d103 1
a103 1
	@@${TAR} zxf ${WRKSRC}/basesrc.tar.gz --directory ${TEMP_PREFIX}/share
d105 1
a105 2
		--exclude-from ${FILESDIR}/tar-xlist2 \
		--directory ${TEMP_PREFIX}/share
d107 1
a107 2
		--exclude-from ${FILESDIR}/tar-xlist3 \
		--directory ${TEMP_PREFIX}/share
d109 34
a142 11
		--exclude-from ${FILESDIR}/tar-xlist4 \
		--directory ${TEMP_PREFIX}/share
	@@${TAR} zxf ${WRKSRC}/apisrc.tar.gz --directory ${TEMP_PREFIX}/share
	@@${TAR} zxf ${WRKSRC}/packagessrc.tar.gz --directory ${TEMP_PREFIX}/share
	@@${TAR} zxf ${WRKSRC}/utilsrc.tar.gz --directory ${TEMP_PREFIX}/share

	@@${TAR} zxf ${WRKSRC}/docs.tar.gz --directory ${TEMP_PREFIX}/share
	@@${MKDIR} ${TEMP_EXMPDIR}
	@@${TAR} zxf ${WRKSRC}/demo.tar.gz --directory ${TEMP_EXMPDIR}
	@@${MV} ${TEMP_EXMPDIR}/src/fpc-${PORTVERSION} \
		${TEMP_PREFIX}/share/examples
a143 4

do-patch:
#unpack and patch sample (working) configuration file
	@@${PATCH} --dir ${TEMP_LIBDIR} < ${FILESDIR}/fix-samplecfg
@


1.7
log
@Remove dependency on print/acroread4.

Run-depending on acroread is not required for *.pdf in plist.
@
text
@d10 1
@


1.6
log
@gtar is required for 'extract' not 'build'
@
text
@a26 3
.if !defined(NOPORTDOCS)
RUN_DEPENDS+=	${LOCALBASE}/bin/acroread4:${PORTSDIR}/print/acroread4
.endif
@


1.5
log
@De-pkg-comment.
@
text
@d25 1
a25 1
BUILD_DEPENDS=	${LOCALBASE}/bin/gtar:${PORTSDIR}/archivers/gtar
@


1.4
log
@Change of maintainers email address.

PR:		ports/45369
Submitted by:	John Merryweather Cooper <coop9211@@uidaho.edu>
@
text
@d23 1
@


1.3
log
@lang/fpc needed perl to complete its install, the others are renaming
of PERL to REINPLACE_CMD

Noticed on: bento
@
text
@d22 1
a22 1
MAINTAINER=	jmcoopr@@webmail.bmi.net
@


1.2
log
@o Uphold port style tradition: handle post extraction duties in
  post-extract instead of pre-install
o Handle per installation transient files in PKG{,DE}INSTALL instead
  of PLIST
o Do not install corrupted binary
o Do not @@ prefix inside PKG{,DE}INSTALL

PR:		32645
Submitted by:	Kuang-che Wu <kcwu@@ck.tp.edu.tw> (PR),
		maintainer (most of the fix)
@
text
@d33 1
@


1.1
log
@o New port fpc version 1.0.4: Free Pascal beta compiler with Turbo,
  Delphi and other extensions
o Borrows install scripting tricks from halflifeserver port

PR:		32385
Submitted by:	John Merryweather Cooper <jmcoopr@@webmail.bmi.net>
@
text
@d57 1
a57 1
pre-install:
a68 1
	@@${RM} -f ${TEMP_EXECDIR}/ppc386
a98 1
	@@${RM} -rfd ${TEMP_EXMPDIR}/src
d100 2
@

