From nobody Fri Nov 10 20:21:14 2023 X-Original-To: dev-commits-ports-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SRqwB4JzVz50Fhx; Fri, 10 Nov 2023 20:21:14 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SRqwB3snGz4cg7; Fri, 10 Nov 2023 20:21:14 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1699647674; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=c4BnhXij9V25c875iHK41xKLRjpcHACaRk+DQCpCC0Q=; b=LdDC5Ht/RPOQd3F1C9oTK8E9e4XgijWj+zhJpzgfQec6GsoJztzBlcxh4LrnUPY75qII30 zysunZz9FRrlF/Hj2eIMe14B1oEi7w7nksQAanOHy/a6HtkVh/doYegpHJ2/IH03CxPorj MNlSzlzTlLRmsbH0wvricRlF82/w/tqXTzmPocgwVmd2fqEQXKoXNq691Dq1817bI9rTfd hXkGGzvYBfzXLtmIPeUhUqhM71zv4aSBRIqVfL9SSc3679UdUlVAxkFXWLJJDRYSY92Y6S 5WKf4pu+8zI0+QDTiSPjzHYqhkbC4xJumJMZFXkg85TSjV+XHahjaxzaypCtQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1699647674; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=c4BnhXij9V25c875iHK41xKLRjpcHACaRk+DQCpCC0Q=; b=e93o0BarvXJ+mSfIAV5XfxvE1g4SfCkn6toSuiE7x/wKnDfyjWkRtkc2c7j22u4/iVuYJf 0m5fCAu8/Vy73gcpG3QVsXpcIsT00VR8OzM3m+dpwVPyAQtj8rJCFdn1+fgezc4bPNbL6c 8eTjmeVMPh3xJNbDFqPi6NnTP+iUMxN8lSJHilgCWn8/Rem+xdcMlDrtGgN1Sh3S5bIXhR HpVfBCVfrQTuDuGPLp1FqvQ0fKQpQCszq098+nNBO1Li6wZ7o51nYJqlsdxKT0lMHIo5FY pUj4VG+NH0yPQ+ned3pIbryKdlSMIewaAogIr2qpfHEg8bQE0OO0jCljMoaOjA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1699647674; a=rsa-sha256; cv=none; b=dWfASqNlX4lmJMP0yWGdx5wQnEPXEwTFgl1lPYWppYWCIpImIOw6XI2wXwomQdGiP+TTtV ynOCLwv5bWiC6SlFINmi9lNA8OzZ7SzMjbFK2U39DZyG2x4AkuRYSzRK0C5E1M/0tEQOZi faqeuUzHjNUlPTK3vmuVxGSv43CS2DGmnDqlffEkoPzq6XMnfmi7TCfKY7zQnp7Bv9/sFv kQaYfgBmZ6hG+iDUBsl1uC6CQy9ewKqolol4iKgcI/NEzphVRXdG4w6lz2thkKSsz84VG2 SfUrq3txTjEPgjsKztXe6U8AoFsmzqMv8nW4h4DYoQa1VAPqX+1qcDRtRTyIRA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4SRqwB2zdxz1BBX; Fri, 10 Nov 2023 20:21:14 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3AAKLEwi046829; Fri, 10 Nov 2023 20:21:14 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3AAKLEfo046827; Fri, 10 Nov 2023 20:21:14 GMT (envelope-from git) Date: Fri, 10 Nov 2023 20:21:14 GMT Message-Id: <202311102021.3AAKLEfo046827@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org From: Jose Alonso Cardenas Marquez Subject: git: 9c6fef652d8d - 2023Q4 - lang/fpc-devel-source: New port: Free Pascal compiler with Turbo and Delphi compatibility (source) List-Id: Commits to the quarterly branches of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-branches@freebsd.org X-BeenThere: dev-commits-ports-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: acm X-Git-Repository: ports X-Git-Refname: refs/heads/2023Q4 X-Git-Reftype: branch X-Git-Commit: 9c6fef652d8dec8ba308bdf5b0086755e0dfd922 Auto-Submitted: auto-generated The branch 2023Q4 has been updated by acm: URL: https://cgit.FreeBSD.org/ports/commit/?id=9c6fef652d8dec8ba308bdf5b0086755e0dfd922 commit 9c6fef652d8dec8ba308bdf5b0086755e0dfd922 Author: Jose Alonso Cardenas Marquez AuthorDate: 2023-10-28 22:56:20 +0000 Commit: Jose Alonso Cardenas Marquez CommitDate: 2023-11-10 20:21:06 +0000 lang/fpc-devel-source: New port: Free Pascal compiler with Turbo and Delphi compatibility (source) Free Pascal is a mature, versatile, open source Pascal compiler. It can target many processor architectures: Intel x86 (16 and 32 bit), AMD64/x86-64, PowerPC, PowerPC64, SPARC, SPARC64, ARM, AArch64, MIPS, Motorola 68k, AVR, and the JVM. Supported operating systems include Windows (16/32/64 bit, CE, and native NT), Linux, Mac OS X/iOS/iPhoneSimulator/Darwin, FreeBSD and other BSD flavors, DOS (16 bit, or 32 bit DPMI), OS/2, AIX, Android, Haiku, Nintendo GBA/DS/Wii, AmigaOS, MorphOS, AROS, Atari TOS, and various embedded platforms. Additionally, support for RISC-V (32/64), Xtensa, and Z80 architectures, and for the LLVM compiler infrastructure is available in the development version. Additionally, the Free Pascal team maintains a transpiler for pascal to Javascript called pas2js. (cherry picked from commit 90d03b74c9096c9a4d4f239ae56e6ba8204b0506) --- lang/Makefile | 1 + lang/fpc-devel-source/Makefile | 111 ++++++++++++++++++++++++++++++++++++++++ lang/fpc-devel-source/distinfo | 3 ++ lang/fpc-devel-source/pkg-descr | 12 +++++ 4 files changed, 127 insertions(+) diff --git a/lang/Makefile b/lang/Makefile index 61bf1f1c69e4..fe06e32b36fd 100644 --- a/lang/Makefile +++ b/lang/Makefile @@ -74,6 +74,7 @@ SUBDIR += fpc SUBDIR += fpc-base SUBDIR += fpc-devel + SUBDIR += fpc-devel-source SUBDIR += fpc-docs SUBDIR += fpc-lua SUBDIR += fpc-pastojs diff --git a/lang/fpc-devel-source/Makefile b/lang/fpc-devel-source/Makefile new file mode 100644 index 000000000000..b5f86a1c3124 --- /dev/null +++ b/lang/fpc-devel-source/Makefile @@ -0,0 +1,111 @@ +PORTNAME= fpc-devel +PORTVERSION= 3.3.1.20231027 +PORTREVISION= 0 +CATEGORIES= lang +PKGNAMESUFFIX= -source +DIST_SUBDIR= freepascal + +MAINTAINER= acm@FreeBSD.org +COMMENT= Free Pascal compiler with Turbo and Delphi compatibility (source) +WWW= https://www.freepascal.org/ + +ONLY_FOR_ARCHS= amd64 i386 +NO_BUILD= yes + +USE_GITLAB= yes +GL_SITE= https://gitlab.com/freepascal.org +GL_ACCOUNT= fpc +GL_PROJECT= source +GL_COMMIT= 55e72fc0f1505c75f60af706736d32ceca9815a4 + +PORTDATA= * + +PATCHDIR= ${PORTSDIR}/lang/fpc-devel/files +DATADIR= ${PREFIX}/share/${PORTNAME}${PKGNAMESUFFIX}-${FPCBASEVER} +WRKSRC= ${WRKDIR}/${FPCSRCDIR} + +FPCBASEVER= 3.3.1 +FPCSRCDIR= source-${GL_COMMIT} + +.include + +.if ${ARCH} == "i386" +FPC_ARCH= i386 +.elif ${ARCH} == "amd64" +FPC_ARCH= x86_64 +.endif + +post-extract: + ${RM} -R ${WRKSRC}/.git* + +post-patch: +.if ${OPSYS} == FreeBSD + @${REINPLACE_CMD} -i "" -e 's|900044|${OSVERSION}|g' \ + -e 's|1201000|${OSVERSION}|g' \ + -e 's|1200000|${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} -i "" -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} -i "" -e '/samplecfg/ {s/INSTALLEXE/INSTALLSCR/;}' \ + ${WRKDIR}/${FPCSRCDIR}/compiler/Makefile + @${REINPLACE_CMD} -i "" -e 's|/usr/local|${PREFIX}|g' \ + ${WRKDIR}/${FPCSRCDIR}/packages/fpmkunit/src/fpmkunit.pp +# enable or disable 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/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/libnettle/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/wasmedge/fpmake.pp + @${REINPLACE_CMD} -i "" -e 's|linux|freebsd,linux|g' \ + ${WRKSRC}/packages/wasmtime/fpmake.pp + @${REINPLACE_CMD} -i "" -e 's|linux|freebsd,linux|g' \ + ${WRKSRC}/packages/zorba/fpmake.pp + +do-install: + (cd ${WRKSRC} && ${COPYTREE_SHARE} . \ + ${STAGEDIR}${DATADIR}) + +.include diff --git a/lang/fpc-devel-source/distinfo b/lang/fpc-devel-source/distinfo new file mode 100644 index 000000000000..5cfcc5b295e1 --- /dev/null +++ b/lang/fpc-devel-source/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1698525521 +SHA256 (freepascal/fpc-source-55e72fc0f1505c75f60af706736d32ceca9815a4_GL0.tar.gz) = 6e8cf9b2c0b76462645239c2cd555f854536c857a01b5afb46bb2f3b6ac33061 +SIZE (freepascal/fpc-source-55e72fc0f1505c75f60af706736d32ceca9815a4_GL0.tar.gz) = 55866150 diff --git a/lang/fpc-devel-source/pkg-descr b/lang/fpc-devel-source/pkg-descr new file mode 100644 index 000000000000..819965617bb1 --- /dev/null +++ b/lang/fpc-devel-source/pkg-descr @@ -0,0 +1,12 @@ +Free Pascal is a mature, versatile, open source Pascal compiler. It can target +many processor architectures: Intel x86 (16 and 32 bit), AMD64/x86-64, PowerPC, +PowerPC64, SPARC, SPARC64, ARM, AArch64, MIPS, Motorola 68k, AVR, and the JVM. + +Supported operating systems include Windows (16/32/64 bit, CE, and native NT), +Linux, Mac OS X/iOS/iPhoneSimulator/Darwin, FreeBSD and other BSD flavors, DOS +(16 bit, or 32 bit DPMI), OS/2, AIX, Android, Haiku, Nintendo GBA/DS/Wii, +AmigaOS, MorphOS, AROS, Atari TOS, and various embedded platforms. Additionally, +support for RISC-V (32/64), Xtensa, and Z80 architectures, and for the LLVM +compiler infrastructure is available in the development version. Additionally, +the Free Pascal team maintains a transpiler for pascal to Javascript called +pas2js.