From 3aeb5e200e5ca9deb89a81e979d41aa6b4d6329d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20Arroyo=20Calle?= Date: Sat, 4 Jan 2014 13:25:52 +0000 Subject: [PATCH 1/3] Preliminary FreePascal --- dev-lang/fpc/fpc-2.6.2.recipe | 56 +++++++++++++++++++++++++++++++ dev-lang/fpc/fpc-2.6.2_bin.recipe | 43 ++++++++++++++++++++++++ 2 files changed, 99 insertions(+) create mode 100644 dev-lang/fpc/fpc-2.6.2.recipe create mode 100644 dev-lang/fpc/fpc-2.6.2_bin.recipe diff --git a/dev-lang/fpc/fpc-2.6.2.recipe b/dev-lang/fpc/fpc-2.6.2.recipe new file mode 100644 index 000000000..301605e54 --- /dev/null +++ b/dev-lang/fpc/fpc-2.6.2.recipe @@ -0,0 +1,56 @@ +SUMMARY="An open source compiler for Pascal and Object Pascal" +DESCRIPTION=" +Free Pascal (aka FPK Pascal) is a 32 and 64 bit professional Pascal compiler.\ +It can target multiple processor architectures: Intel x86, AMD64/x86-64,\ +PowerPC, PowerPC64, SPARC, and ARM. Supported operating systems include Linux,\ +FreeBSD, Haiku, Mac OS X/iOS/Darwin, DOS, Win32, Win64, WinCE, OS/2, MorphOS,\ +Nintendo GBA, Nintendo DS, and Nintendo Wii. Additionally, JVM, MIPS (big and\ +little endian variants) and Motorola 68k architecture targets are available in\ +the development versions." +HOMEPAGE="http://www.freespascal.org" +SRC_URI="http://sourceforge.net/projects/freepascal/files/Source/2.6.2/fpc-2.6.2.source.tar.gz/download" +CHECKSUM_MD5="d501bb766b728a50d3a38adbe195528e" +LICENSE=" + GNU LGPL v3 + GNU GPL v3 +" +COPYRIGHT="1993-2013 by Florian Klaempfl" +REVISION="1" + +DISABLE_SOURCE_PACKAGE=yes + +ARCHITECTURES="x86 ?x86_64" +if [ $effectiveTargetArchitecture != x86_gcc2 ]; then + ARCHITECTURES="$ARCHITECTURES x86_gcc2" +fi +SECONDARY_ARCHITECTURES="x86 ?x86_64" + +PROVIDES=" + fpc$secondaryArchSuffix = $portVersion + cmd:fpc$secondaryArchSuffix = $portVersion +" +REQUIRES=" + haiku$secondaryArchSuffix >= $haikuVersion +" +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel >= $haikuVersion + fpc == 2.6.2_bin +" +BUILD_PREREQUIRES=" + cmd:gcc$secondaryArchSuffix + cmd:ld$secondaryArchSuffix + cmd:make + cmd:tar + cmd:wget +" + +SOURCE_DIR="fpc-2.6.2" + +BUILD() +{ + make all +} +INSTALL() +{ + make install INSTALL_PREFIX=$prefix +} diff --git a/dev-lang/fpc/fpc-2.6.2_bin.recipe b/dev-lang/fpc/fpc-2.6.2_bin.recipe new file mode 100644 index 000000000..003e84789 --- /dev/null +++ b/dev-lang/fpc/fpc-2.6.2_bin.recipe @@ -0,0 +1,43 @@ +SUMMARY="FreePascalCompiler binary" +DESCRIPTION="FreePascalCompiler binary" +HOMEPAGE="http://www.freepascal.org" +SRC_URI="ftp://freepascal.stack.nl/pub/fpc/dist/2.6.0/i386-haiku/fpc-2.6.0.i386-haiku.tar" +CHECKSUM_MD5="e45911a932ff8fdb4578dae2f96c19a1" +LICENSE=" + GNU LGPL v3 + GNU GPL v3 +" +COPYRIGHT="1993-2013 by Florian Klaempfl" +REVISION="1" + +DISABLE_SOURCE_PACKAGE=yes + +BUILD_ACTIVATION_PHASE="INSTALL" + +ARCHITECTURES="x86" + +PROVIDES=" + fpc = $portVersion + cmd:fpc = $portVersion +" +REQUIRES=" + haiku$secondaryArchSuffix >= $haikuVersion +" +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel >= $haikuVersion +" +BUILD_PREREQUIRES=" + binutils + cmd:tar +" +SOURCE_DIR="fpc-2.6.0.i386-haiku" + +BUILD() +{ + echo "Please put as prefix: $prefix" + sh ./install.sh +} +INSTALL() +{ + true +} From 8d492a37b362e06406dff2cffb5a02d5a7184bad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20Arroyo=20Calle?= Date: Sat, 4 Jan 2014 22:32:32 +0000 Subject: [PATCH 2/3] FreePascalCompile 2.6.2 recipe --- dev-lang/fpc/fpc-2.6.2.recipe | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/dev-lang/fpc/fpc-2.6.2.recipe b/dev-lang/fpc/fpc-2.6.2.recipe index 301605e54..10f946561 100644 --- a/dev-lang/fpc/fpc-2.6.2.recipe +++ b/dev-lang/fpc/fpc-2.6.2.recipe @@ -42,13 +42,22 @@ BUILD_PREREQUIRES=" cmd:make cmd:tar cmd:wget + cmd:fpc == 2.6.2_bin " SOURCE_DIR="fpc-2.6.2" +#Create the fpc-2.6.2-1-x86.hpkg +#Download the FreePascalCompiler from www.freepascal.org +#Extract the tarball and run ./install.sh +#Create a .PackageInfo where the compiler is installed +#Run package create -0 fpc-2.6.2-1-x86.hpkg +#Put it on the common folders +MESSAGE="This recipe requires an existing fpc-2.6.2_bin-1-x86.hpkg package" BUILD() { - make all + fpcmake + make build } INSTALL() { From 42119c8d149b66e0167c81aadafeb0dabb4a9ce1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20Arroyo=20Calle?= Date: Sat, 4 Jan 2014 22:46:44 +0000 Subject: [PATCH 3/3] FreePascalCompile 2.6.2 recipe (fixed) --- dev-lang/fpc/fpc-2.6.2.recipe | 36 ++++++++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/dev-lang/fpc/fpc-2.6.2.recipe b/dev-lang/fpc/fpc-2.6.2.recipe index 10f946561..23055db6e 100644 --- a/dev-lang/fpc/fpc-2.6.2.recipe +++ b/dev-lang/fpc/fpc-2.6.2.recipe @@ -28,6 +28,40 @@ SECONDARY_ARCHITECTURES="x86 ?x86_64" PROVIDES=" fpc$secondaryArchSuffix = $portVersion cmd:fpc$secondaryArchSuffix = $portVersion + cmd:bin2obj$secondaryArchSuffix = $portVersion + cmd:fp$secondaryArchSuffix = $portVersion + cmd:fpcmake$secondaryArchSuffix = $portVersion + cmd:unitdiff$secondaryArchSuffix = $portVersion + cmd:chmcmd$secondaryArchSuffix = $portVersion + cmd:chmls$secondaryArchSuffix = $portVersion + cmd:data2inc$secondaryArchSuffix = $portVersion + cmd:delp$secondaryArchSuffix = $portVersion + cmd:fd2pascal$secondaryArchSuffix = $portVersion + cmd:fpclasschart$secondaryArchSuffix = $portVersion + cmd:fpcmkcfg$secondaryArchSuffix = $portVersion + cmd:fpcres$secondaryArchSuffix = $portVersion + cmd:fpcsubst$secondaryArchSuffix = $portVersion + cmd:fpdoc$secondaryArchSuffix = $portVersion + cmd:fppkg$secondaryArchSuffix = $portVersion + cmd:fprcp$secondaryArchSuffix = $portVersion + cmd:h2pas$secondaryArchSuffix = $portVersion + cmd:h2paspp$secondaryArchSuffix = $portVersion + cmd:instantfpc$secondaryArchSuffix = $portVersion + cmd:makeskel$secondaryArchSuffix = $portVersion + cmd:mkarmins$secondaryArchSuffix = $portVersion + cmd:mkx86ins$secondaryArchSuffix = $portVersion + cmd:plex$secondaryArchSuffix = $portVersion + cmd:postw32$secondaryArchSuffix = $portVersion + cmd:ppc386$secondaryArchSuffix = $portVersion + cmd:ppdep$secondaryArchSuffix = $portVersion + cmd:ppudump$secondaryArchSuffix = $portVersion + cmd:ppufiles$secondaryArchSuffix = $portVersion + cmd:ppumove$secondaryArchSuffix = $portVersion + cmd:ptop$secondaryArchSuffix = $portVersion + cmd:pyacc$secondaryArchSuffix = $portVersion + cmd:rmcvsdir$secondaryArchSuffix = $portVersion + cmd:rstconv$secondaryArchSuffix = $portVersion + cmd:unitdiff$secondaryArchSuffix = $portVersion " REQUIRES=" haiku$secondaryArchSuffix >= $haikuVersion @@ -56,7 +90,7 @@ MESSAGE="This recipe requires an existing fpc-2.6.2_bin-1-x86.hpkg package" BUILD() { - fpcmake + fpcmake -Tall -r make build } INSTALL()