git: 8faa16b6db4b - main - lang/fpc-source: update mirrors, apply patches and another minor changes
Date: Fri, 05 Jan 2024 00:17:28 UTC
The branch main has been updated by acm: URL: https://cgit.FreeBSD.org/ports/commit/?id=8faa16b6db4b95b746ad1c779bd000dd4424c840 commit 8faa16b6db4b95b746ad1c779bd000dd4424c840 Author: Jose Alonso Cardenas Marquez <acm@FreeBSD.org> AuthorDate: 2024-01-05 00:11:13 +0000 Commit: Jose Alonso Cardenas Marquez <acm@FreeBSD.org> CommitDate: 2024-01-05 00:17:13 +0000 lang/fpc-source: update mirrors, apply patches and another minor changes - Bump PORTREVISION --- lang/fpc-source/Makefile | 84 ++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 75 insertions(+), 9 deletions(-) diff --git a/lang/fpc-source/Makefile b/lang/fpc-source/Makefile index ec232b2d20bd..6c94eb4c9047 100644 --- a/lang/fpc-source/Makefile +++ b/lang/fpc-source/Makefile @@ -1,15 +1,10 @@ PORTNAME= fpc PORTVERSION= 3.2.2 -PORTREVISION= 3 +PORTREVISION= 4 DISTVERSIONSUFFIX=.source CATEGORIES= lang -MASTER_SITES= ftp://ftp.freepascal.org/pub/fpc/dist/${PORTVERSION}/source/ \ - ftp://planetmirror.com/pub/fpc/dist/${PORTVERSION}/source/ \ - ftp://ftp.jp.freepascal.org/mirror/fpc/dist/${PORTVERSION}/source/ \ - ftp://freepascal.stack.nl/pub/fpc/dist/${PORTVERSION}/source/ \ - ftp://ftp.no.freepascal.org/pub/fpc/dist/${PORTVERSION}/source/ \ - ftp://ftp.us.freepascal.org/pub/fpc/dist/${PORTVERSION}/source/ \ - SF/freepascal/Source/${PORTVERSION} +MASTER_SITES= SF/freepascal/Source/${PORTVERSION} \ + https://downloads.freepascal.org/${PORTNAME}/dist/${PORTVERSION}/source/ PKGNAMESUFFIX= -source DIST_SUBDIR= freepascal @@ -24,7 +19,78 @@ PORTDATA= * PATCHDIR= ${PORTSDIR}/lang/fpc/files DATADIR= ${PREFIX}/share/${PORTNAME}${PKGNAMESUFFIX}-${PORTVERSION} -WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION} +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} + +FPCSRCDIR= ${PORTNAME}-${PORTVERSION} + +.include <bsd.port.pre.mk> + +.if ${ARCH} == "i386" +FPC_ARCH= i386 +.elif ${ARCH} == "amd64" +FPC_ARCH= x86_64 +.endif + +post-patch: +.if ${OPSYS} == FreeBSD + @${REINPLACE_CMD} -i "" -e 's|900044|${OSVERSION}|g' \ + ${WRKSRC}/rtl/freebsd/${FPC_ARCH}/*.as \ + ${WRKSRC}/rtl/freebsd/${FPC_ARCH}/*.inc +.else + @${REINPLACE_CMD} -i "" -e 's|400000|${DFLYVERSION}|g' \ + ${WRKSRC}/rtl/dragonfly/${FPC_ARCH}/*.as +.endif +.if empty(ICONV_LIB) + @${REINPLACE_CMD} -e "s|s<>'c'|(s<>'c') and (s<>'iconv')|" \ + -e "s|%%FPC_LDPATH%%|${FPC_LDPATH}|g" \ + ${WRKDIR}/${FPCSRCDIR}/compiler/systems/t_bsd.pas + @${REINPLACE_CMD} -e 's|defined(bsd) and not ||' \ + ${WRKDIR}/${FPCSRCDIR}/rtl/unix/cwstring.pp +.endif + @${REINPLACE_CMD} -e '/samplecfg/ {s/INSTALLEXE/INSTALLSCR/;}' \ + ${WRKDIR}/${FPCSRCDIR}/compiler/Makefile + @${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|g' \ + ${WRKDIR}/${FPCSRCDIR}/packages/fpmkunit/src/fpmkunit.pp + +# enable units + @${REINPLACE_CMD} -i "" -e 's|linux|freebsd,linux|g' \ + ${WRKSRC}/packages/a52/fpmake.pp + @${REINPLACE_CMD} -i "" -e 's|linux|freebsd,linux|g' \ + ${WRKSRC}/packages/dbus/fpmake.pp + @${REINPLACE_CMD} -i "" -e 's|linux|freebsd,linux|g' \ + ${WRKSRC}/packages/dts/fpmake.pp + @${REINPLACE_CMD} -i "" -e 's|freebsd,||g' \ + ${WRKSRC}/packages/fpgtk/fpmake.pp + @${REINPLACE_CMD} -i "" -e 's|iphonesim|freebsd,iphonesim|g' \ + ${WRKSRC}/packages/gnome1/fpmake.pp + @${REINPLACE_CMD} -i "" -e 's|iphonesim|freebsd,iphonesim|g' \ + ${WRKSRC}/packages/gtk1/fpmake.pp + @${REINPLACE_CMD} -i "" -e 's|iphonesim|freebsd,iphonesim|g' \ + ${WRKSRC}/packages/imlib/fpmake.pp + @${REINPLACE_CMD} -i "" -e 's|linux|freebsd,linux|g' \ + ${WRKSRC}/packages/ldap/fpmake.pp + @${REINPLACE_CMD} -i "" -e 's|linux|freebsd,linux|g' \ + ${WRKSRC}/packages/libsee/fpmake.pp + @${REINPLACE_CMD} -i "" -e 's|linux|freebsd,linux|g' \ + ${WRKSRC}/packages/lua/fpmake.pp + @${REINPLACE_CMD} -i "" -e 's|linux|freebsd,linux|g' \ + ${WRKSRC}/packages/mad/fpmake.pp + @${REINPLACE_CMD} -i "" -e 's|linux|freebsd,linux|g' \ + ${WRKSRC}/packages/modplug/fpmake.pp + @${REINPLACE_CMD} -i "" -e 's|Linux|freebsd,linux|g' \ + ${WRKSRC}/packages/newt/fpmake.pp + @${REINPLACE_CMD} -i "" -e 's|linux|freebsd,linux|g' \ + ${WRKSRC}/packages/oggvorbis/fpmake.pp + @${REINPLACE_CMD} -i "" -e 's|linux|freebsd,linux|g' \ + ${WRKSRC}/packages/openal/fpmake.pp + @${REINPLACE_CMD} -i "" -e 's|linux|freebsd,linux|g' \ + ${WRKSRC}/packages/opencl/fpmake.pp + @${REINPLACE_CMD} -i "" -e 's|linux|freebsd,linux|g' \ + ${WRKSRC}/packages/proj4/fpmake.pp + @${REINPLACE_CMD} -i "" -e 's|os2|freebsd,os2|g' \ + ${WRKSRC}/packages/rexx/fpmake.pp + @${REINPLACE_CMD} -i "" -e 's|linux|freebsd,linux|g' \ + ${WRKSRC}/packages/zorba/fpmake.pp do-install: (cd ${WRKSRC} && ${COPYTREE_SHARE} . \