head	1.4;
access;
symbols
	RELEASE_6_1_0:1.1
	RELEASE_5_5_0:1.1;
locks; strict;
comment	@# @;


1.4
date	2006.06.21.15.36.13;	author garga;	state dead;
branches;
next	1.3;

1.3
date	2006.05.01.19.31.49;	author sem;	state Exp;
branches;
next	1.2;

1.2
date	2006.04.18.15.13.24;	author linimon;	state Exp;
branches;
next	1.1;

1.1
date	2005.12.28.22.06.36;	author edwin;	state Exp;
branches;
next	;


desc
@@


1.4
log
@Remove lang/fpc2 in preparation to update lang/fpc to 2.0.2
@
text
@# New ports collection makefile for:	Free Pascal Compiler
# Date created: 			25 Jun 2005
# Whom:				Vsevolod Stakhov <vsevolod@@highsecure.ru>
#
# $FreeBSD: ports/lang/fpc2/Makefile,v 1.3 2006/05/01 19:31:49 sem Exp $
#

PORTNAME=	fpc
PORTVERSION=	2.0.2
CATEGORIES=	lang
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}
MASTER_SITE_SUBDIR=	freepascal
DISTNAME=	${PORTNAME}-${PORTVERSION}.i386-freebsd
EXTRACT_SUFX=	.tar

MAINTAINER=	almindor@@gmail.com
COMMENT=	Free Pascal compiler with Turbo, Delphi and other extensions

BUILDNAME=	i386-freebsd

.include <bsd.port.pre.mk>

ONLY_FOR_ARCHS=	i386
NO_BUILD=	yes
PKGDEINSTALL=	${PKGINSTALL}

PLIST_SUB+=	PORTVERSION=${PORTVERSION}

MAN1=	bin2obj.1 \
	data2inc.1 \
	delp.1 \
	fd2pascal.1 \
	fpc.1 \
	fpcmake.1 \
	fpdoc.1 \
	fprcp.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 \
	rstconv.1 \
	unitdiff.1
MAN5=	fpc.cfg.5 fpcmake.5 ptop.cfg.5

# only need misc/compat4x if using the pre-built ppc386
.if ${OSVERSION} >= 500000
LIB_DEPENDS+=	c.5:${PORTSDIR}/misc/compat5x
.endif

# Build units list
UNITS+=	bfd
UNITS+=	fcl
PLIST_SUB+=	FCL=""
UNITS+=	forms
PLIST_SUB+=	FORMS=""
UNITS+=	fpgtk
UNITS+=	fv
UNITS+=	gconf
UNITS+=	gdbint
UNITS+=	gdbm
UNITS+=	ggi
UNITS+=	gnome
UNITS+=	gtk
UNITS+=	gtk2
UNITS+=	ibase
UNITS+=	imlib
UNITS+=	libasync
UNITS+=	libgd
UNITS+=	libpng
UNITS+=	md5
UNITS+=	mysql
UNITS+=	ncurses
UNITS+=	netdb
UNITS+=	odbc
UNITS+=	opengl
UNITS+=	oracle
UNITS+=	pasjpeg
UNITS+=	paszlib
UNITS+=	postgres
UNITS+=	pthreads
UNITS+=	regexpr
UNITS+=	sqlite
UNITS+=	svgalib
UNITS+=	syslog
UNITS+=	tcl
UNITS+=	unzip
UNITS+=	utmp
UNITS+=	x11
UNITS+=	zlib
UNITS+=	zvt

do-extract:
# 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
# Install optional packages
.if defined(UNITS)
.  for unit in ${UNITS}
	@@${TAR} zxf ${WRKSRC}/binary/units-${unit}.${BUILDNAME}.tar.gz \
		--directory ${WRKSRC}/boot
	@@${LS} ${WRKSRC}/boot/lib/fpc/${PORTVERSION}/units/${BUILDNAME}/${unit} | \
		${SED} -e 's,^,lib/fpc/${PORTVERSION}/units/${BUILDNAME}/${unit}/,' \
		>> ${TMPPLIST}.modules
	@@${ECHO} "@@dirrm lib/fpc/${PORTVERSION}/units/${BUILDNAME}/${unit}" >> ${TMPPLIST}.modules
.  endfor
.endif

do-install:
	# 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
	# Installing manpages
	${INSTALL_DATA} ${WRKSRC}/boot/man/man1/* ${MAN1PREFIX}/man/man1
	${INSTALL_DATA} ${WRKSRC}/boot/man/man5/* ${MAN1PREFIX}/man/man5

post-install:
.if defined(UNITS)
	@@${CAT} ${TMPPLIST}.modules ${TMPPLIST} > ${TMPPLIST}.result
	@@${MV} ${TMPPLIST}.result ${TMPPLIST}
.endif
	if [ -e "${PREFIX}/bin/ppc386" ]; then ${RM} -f "${PREFIX}/bin/ppc386"; fi
	${LN} -s "${PREFIX}/lib/fpc/${PORTVERSION}/ppc386" "${PREFIX}/bin"
	${SH} "${PREFIX}/lib/fpc/${PORTVERSION}/samplecfg" "${PREFIX}/lib/fpc/${PORTVERSION}" "${PREFIX}/etc"

.include <bsd.port.post.mk>
@


1.3
log
@- Update to 2.0.2.
- Remove OPTIONS for units. They are installed all now.
- Pass maintainership to submitter.

PR:		ports/96505
Submitted by:	Ales Katona <almindor@@gmail.com>
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.2
log
@Reset vsevolod due to inactivity.  We hope to see him back.

Hat:	portmgr
@
text
@d3 1
a3 1
# Whom: 				Vsevolod Stakhov <vsevolod@@highsecure.ru>
d9 1
a9 1
PORTVERSION=	2.0.0
d22 1
a22 1
MAINTAINER=	ports@@FreeBSD.org
a26 40
# Define some libraries for fpc using OPTIONS
OPTIONS=	BFD "Install bfd support" off \
		FCL "Install fcl support" off \
		FORMS "Install forms support" off \
		FPGTK "Install fpgtk support" off \
		FV "Install fv support" off \
		GCONF "Install gconf support" off \
		GDBINT "Install gdbint support" off \
		GDBM "Install GDBM support" off \
		GGI "Install ggi support" off \
		GNOME "Install gnome support" off \
		GTK "Install gtk support" off \
		GTK2 "Install gtk2 support" off \
		IBASE "Install interbase support" off \
		IMLIB "Install imlib support" off \
		ASYNC "Install libacync support" off \
		GD "Install libgd support" off \
		PNG "Install libpng support" off \
		MD5 "Install md5 support" off \
		MYSQL "Install mysql support" off \
		NCURSES "Install ncurses support" off \
		NETDB "Install netdb support" off \
		ODBC "Install odbc support" off \
		OPENGL "Install opengl support" off \
		ORACLE "Install oracle support" off \
		PASJPEG "Install pascal libjpeg support" off \
		PASZLIB "Install pascal zlib support" off \
		POSTGRES "Install postgresql support" off \
		PTHREADS "Install pthreads support" off \
		REGEXP "Install regexp support" off \
		SQLITE "Install sqlite support" off \
		SVGALIB "Install svgalib support" off \
		SYSLOG "Install syslog support" off \
		TCL "Install tcl support" off \
		UTMP "Install utmp support" off \
		UNZIP "Install unzip support" off \
		X11 "Install x11 support" off \
		ZLIB "Install zlib support" off \
		ZVT "Install zvt support" off

a28 1
USE_REINPLACE=	yes
d65 1
a65 1
LIB_DEPENDS+=	c.4:${PORTSDIR}/misc/compat4x
a68 1
.if defined(WITH_BFD)
a69 2
.endif
.if defined(WITH_FCL)
a71 4
.else
PLIST_SUB+=	FCL="@@comment "
.endif
.if defined(WITH_FORMS)
a73 4
.else
PLIST_SUB+=	FORMS="@@comment "
.endif
.if defined(WITH_FPGTK)
a74 2
.endif
.if defined(WITH_FV)
a75 2
.endif
.if defined(WITH_GCONF)
a76 2
.endif
.if defined(WITH_GDBINT)
a77 2
.endif
.if defined(WITH_GDBM)
a78 2
.endif
.if defined(WITH_GGI)
a79 2
.endif
.if defined(WITH_GNOME)
a80 2
.endif
.if defined(WITH_GTK)
a81 2
.endif
.if defined(WITH_GTK2)
a82 2
.endif
.if defined(WITH_IBASE)
a83 2
.endif
.if defined(WITH_IMLIB)
a84 2
.endif
.if defined(WITH_ASYNC)
a85 2
.endif
.if defined(WITH_GD)
a86 2
.endif
.if defined(WITH_PNG)
a87 2
.endif
.if defined(WITH_MD5)
a88 2
.endif
.if defined(WITH_MYSQL)
a89 2
.endif
.if defined(WITH_NCURSES)
a90 2
.endif
.if defined(WITH_NETDB)
a91 2
.endif
.if defined(WITH_ODBC)
a92 2
.endif
.if defined(WITH_OPENGL)
a93 2
.endif
.if defined(WITH_ORACLE)
a94 2
.endif
.if defined(WITH_PASJPEG)
a95 2
.endif
.if defined(WITH_PASZLIB)
a96 2
.endif
.if defined(WITH_POSTGRES)
a97 2
.endif
.if defined(WITH_PTHREADS)
a98 2
.endif
.if defined(WITH_REGEXP)
a99 2
.endif
.if defined(WITH_SQLITE)
a100 2
.endif
.if defined(WITH_SVGALIB)
a101 2
.endif
.if defined(WITH_SYSLOG)
a102 2
.endif
.if defined(WITH_TCL)
a103 2
.endif
.if defined(WITH_UNZIP)
a104 2
.endif
.if defined(WITH_UTMP)
a105 2
.endif
.if defined(WITH_X11)
a106 2
.endif
.if defined(WITH_ZLIB)
a107 2
.endif
.if defined(WITH_ZVT)
a108 1
.endif
d140 1
a140 1
	${INSTALL_DATA} ${WRKSRC}/boot/share/doc/fpc-${PORTVERSION}/fpc/* ${DOCSDIR}
d153 3
a155 2
	@@${LN} -s ${PREFIX}/lib/fpc/${PORTVERSION}/ppc386 ${PREFIX}/bin
	${SH} ${PREFIX}/lib/fpc/${PORTVERSION}/samplecfg ${PREFIX}/lib/fpc/${PORTVERSION} ${PREFIX}/etc
@


1.1
log
@New port: lang/fpc2

	Freepascal 2.0.0 is the latest release of freepascal compiler
	suite.

	Originally named FPK-Pascal, the Free Pascal compiler is a
	32 bit Turbo Pascal compatible Pascal compiler for DOS,
	Linux, Win32, OS/2, (based on an older version) the AmigaOS,
	FreeBSD/ELF, and BeOS.

	WWW: http://www.freepascal.org/

PR:		ports/82640
Submitted by:	Vsevolod Stakhov <vsevolod@@highsecure.ru>
@
text
@d22 1
a22 1
MAINTAINER=	vsevolod@@highsecure.ru
@

