diff options
author | Andreas Kling <kling@serenityos.org> | 2020-02-01 22:52:33 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-02-01 22:52:33 +0100 |
commit | 0f81e8d9af5bf0a5a57cde48d3de6a71ca76da19 (patch) | |
tree | 3be87e093dae3703837bde9929db11a136ce0ad3 /Ports/klong | |
parent | c90409533380b59e7e0f1e26b51823ce296ab579 (diff) | |
download | serenity-0f81e8d9af5bf0a5a57cde48d3de6a71ca76da19.zip |
Ports: Add klong language port
Patch contributed by nut (casaca on IRC)
Diffstat (limited to 'Ports/klong')
-rwxr-xr-x | Ports/klong/package.sh | 6 | ||||
-rw-r--r-- | Ports/klong/patches/klong.patch | 26 |
2 files changed, 32 insertions, 0 deletions
diff --git a/Ports/klong/package.sh b/Ports/klong/package.sh new file mode 100755 index 0000000000..57ad72d7c8 --- /dev/null +++ b/Ports/klong/package.sh @@ -0,0 +1,6 @@ +#!/bin/bash ../.port_include.sh +port=klong +version=20190926 +files="http://t3x.org/klong/klong20190926.tgz klong20190926.tgz" +useconfigure=false +workdir=klong diff --git a/Ports/klong/patches/klong.patch b/Ports/klong/patches/klong.patch new file mode 100644 index 0000000000..4d8be18b94 --- /dev/null +++ b/Ports/klong/patches/klong.patch @@ -0,0 +1,26 @@ +--- klong/Makefile.orig 2019-10-01 13:06:39.000000000 +0200 ++++ klong/Makefile 2020-02-01 21:08:13.020202542 +0100 +@@ -1,12 +1,12 @@ + CFLAGS= -g -Wall -pedantic -O3 +-CC= cc $(CFLAGS) ++CC= i686-pc-serenity-gcc $(CFLAGS) + V= 20190330 + R= 20190926 + + # Modules to load into image file + OPTIONS=-l nstat -l nplot -l time + +-all: kg klong.image ++all: kg + + klong.image: kg + ./kg -n $(OPTIONS) -o klong.image +@@ -48,3 +48,8 @@ + + mksums: clean + find . -type f | grep -v _csums | grep -v klong2015 | csum >_csums ++ ++install: ++ install kg ${DESTDIR}/usr/local/bin ++ mkdir ${DESTDIR}/usr/local/lib/klong ++ install -m 644 lib/* ${DESTDIR}/usr/local/lib/klong |