summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmet Hikory <persia@shipstone.jp>2014-06-12 17:05:36 +0000
committerSam Thursfield <sam.thursfield@codethink.co.uk>2014-06-26 15:51:30 +0000
commit5d2b53054d476ac304956c110eabf9b0d755c7ba (patch)
treeda4384032d5f3e21b1f8ad87eece01365bfa2929
parente40eedac019fac3931b339af0399f1074e032f39 (diff)
downloadfpc-baserock/2.6.4.tar.gz
Add morphologiesbaserock/2.6.4
* fpc-bootstrap.morph : this is for the bootstrap build * fpc-bootstrap-setup.morph : Creates bootstrap configuration file * fpc.morph : this is for the normal build * fpc-setup.morph : Creates normal configuration file It would be nice if one could reuse things, because the bootstrap and non-bootstrap versions are just copies of each other.
-rw-r--r--fpc-bootstrap-setup.morph13
-rw-r--r--fpc-bootstrap.morph7
-rw-r--r--fpc-setup.morph13
-rw-r--r--fpc.morph7
4 files changed, 40 insertions, 0 deletions
diff --git a/fpc-bootstrap-setup.morph b/fpc-bootstrap-setup.morph
new file mode 100644
index 0000000000..647f893a8a
--- /dev/null
+++ b/fpc-bootstrap-setup.morph
@@ -0,0 +1,13 @@
+name: fpc-bootstrap-setup
+kind: chunk
+build-system: manual
+install-commands:
+- mkdir -p "$DESTDIR/etc"
+- /usr/bin/fpcmkcfg -0 -d "basepath=/usr/lib/fpc/\$fpcversion" > "$DESTDIR/etc/fpc.cfg"
+- mkdir -p "$DESTDIR/usr/bin"
+- |
+ [ "armv7l" = "$MORPH_ARCH" ] && FPCARCH="arm"
+ [ "armv7lhf" = "$MORPH_ARCH" ] && FPCARCH="arm"
+ [ "x86_32" = "$MORPH_ARCH" ] && FPCARCH="386"
+ [ "x86_64" = "$MORPH_ARCH" ] && FPCARCH="x64"
+ ln -s "/usr/lib/fpc/2.6.4/ppc$FPCARCH" "$DESTDIR/usr/bin/ppc$FPCARCH"
diff --git a/fpc-bootstrap.morph b/fpc-bootstrap.morph
new file mode 100644
index 0000000000..e4316dac67
--- /dev/null
+++ b/fpc-bootstrap.morph
@@ -0,0 +1,7 @@
+name: fpc-bootstrap
+kind: chunk
+build-system: manual
+build-commands:
+- make build
+install-commands:
+- make install INSTALL_PREFIX="$DESTDIR/usr"
diff --git a/fpc-setup.morph b/fpc-setup.morph
new file mode 100644
index 0000000000..025f404819
--- /dev/null
+++ b/fpc-setup.morph
@@ -0,0 +1,13 @@
+name: fpc-setup
+kind: chunk
+build-system: manual
+install-commands:
+- mkdir -p "$DESTDIR/etc"
+- /usr/bin/fpcmkcfg -0 -d "basepath=/usr/lib/fpc/\$fpcversion" > "$DESTDIR/etc/fpc.cfg"
+- mkdir -p "$DESTDIR/usr/bin"
+- |
+ [ "armv7l" = "$MORPH_ARCH" ] && FPCARCH="arm"
+ [ "armv7lhf" = "$MORPH_ARCH" ] && FPCARCH="arm"
+ [ "x86_32" = "$MORPH_ARCH" ] && FPCARCH="386"
+ [ "x86_64" = "$MORPH_ARCH" ] && FPCARCH="x64"
+ ln -s "/usr/lib/fpc/2.6.4/ppc$FPCARCH" "$DESTDIR/usr/bin/ppc$FPCARCH"
diff --git a/fpc.morph b/fpc.morph
new file mode 100644
index 0000000000..1953d611e4
--- /dev/null
+++ b/fpc.morph
@@ -0,0 +1,7 @@
+name: fpc
+kind: chunk
+build-system: manual
+build-commands:
+- make build
+install-commands:
+- make install INSTALL_PREFIX="$DESTDIR/usr"