From 59d8f8162bdac71e7716d7de5c56486e4525b899 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Fri, 9 Jun 2006 11:04:55 +0000 Subject: - Repocopy devel/fpc-fvision -> devel/fpc-fv [1] - Update to 2.0.2 [2] - Take maintainership [2] PR: ports/98686 [1], ports/98732 [2] Submitted by: Jose Alonso Cardenas Marquez Repocopied by: marcus --- devel/fpc-fv/Makefile | 75 ++++++++++++++++++++++++++++++--------------------- 1 file changed, 44 insertions(+), 31 deletions(-) (limited to 'devel/fpc-fv/Makefile') diff --git a/devel/fpc-fv/Makefile b/devel/fpc-fv/Makefile index 540e2be52b16..f7b6f38e1e44 100644 --- a/devel/fpc-fv/Makefile +++ b/devel/fpc-fv/Makefile @@ -5,44 +5,57 @@ # $FreeBSD$ # -PORTNAME= fvision -PORTVERSION= 1.0.10 -CATEGORIES= devel -MASTER_SITES= http://www.borgsdemons.com/distfiles/ +PORTNAME= fv +PORTVERSION= 2.0.2 +CATEGORIES= devel 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 PKGNAMEPREFIX= fpc- +DISTNAME= ${PKGNAMEPREFIX}${PORTVERSION}.${BUILDNAME} +EXTRACT_SUFX= .tar -MAINTAINER= ports@FreeBSD.org +MAINTAINER= acardenas@bsd.org.pe COMMENT= FreeVision is a Free Pascal unit for Delphi support -BUILD_DEPENDS= ppc386:${PORTSDIR}/lang/fpc -RUN_DEPENDS= ${BUILD_DEPENDS} - -USE_GMAKE= yes +EXAMPLESDIR= share/examples/${PKGNAMEPREFIX}${PORTVERSION} ONLY_FOR_ARCHS= i386 +NO_BUILD= yes -.include - -PLIST_SUB+= PORTVERSION=${PORTVERSION} +BUILDNAME= i386-freebsd +PLIST_SUB+= PORTVERSION=${PORTVERSION} \ + BUILDNAME=${BUILDNAME} -MAKE_ENV+= PATH=${LOCALBASE}/bin:$$PATH \ - FPC=${LOCALBASE}/bin/ppc386 \ - INSTALL_BASEDIR=${PREFIX}/lib/fpc/${PORTVERSION} \ - INSTALL_BINDIR=${PREFIX}/bin \ - GCCLIBDIR=/usr/lib \ - RELEASE=1 +do-extract: +# unpack distribution + @${MKDIR} ${WRKSRC} + @${TAR} xf ${DISTDIR}/${DISTNAME}.tar \ + --directory ${WRKSRC} + @${TAR} xf ${WRKSRC}/binary.${BUILDNAME}.tar \ + --directory ${WRKSRC} -post-patch: -# change to alter amount of optimization - @${FIND} ${WRKDIR}/fvision -name "Makefile*" | ${XARGS} \ - ${REINPLACE_CMD} 's|-OG2p3|-OG2p1|g' - -do-build: - @${SETENV} ${MAKE_ENV} ${GMAKE} -C ${WRKDIR}/fvision all +# unpack binary and fv distribution + @${MKDIR} ${WRKSRC}/${PORTNAME} + @${TAR} zxf ${WRKSRC}/units-${PORTNAME}.${BUILDNAME}.tar.gz \ + --directory ${WRKSRC}/${PORTNAME} do-install: - @${SETENV} ${MAKE_ENV} ${GMAKE} -C ${WRKDIR}/fvision install - cd ${WRKDIR}/fvision && ${INSTALL_DATA} \ - asciitab.o asciitab.ppu \ - ${PREFIX}/lib/fpc/${PORTVERSION}/units/freebsd/fv - -.include +.for DIRE in lib + @cd ${WRKSRC}/${PORTNAME}/${DIRE} && \ + ${FIND} * -type d -exec ${MKDIR} "{}" "${PREFIX}/${DIRE}/{}" \; && \ + ${FIND} * -type f -exec ${INSTALL_SCRIPT} "{}" "${PREFIX}/${DIRE}/{}" \; +.endfor + +post-install: +.if !defined (NOPORTDOCS) + @cd ${WRKSRC}/${PORTNAME}/share && \ + ${FIND} * -type d -exec ${MKDIR} "{}" "${PREFIX}/share/{}" \; && \ + ${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${PREFIX}/share/{}" \; +.endif + +.include -- cgit v1.2.3