summaryrefslogtreecommitdiff
path: root/Ports
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-06-09 12:20:43 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-06-09 12:20:43 +0200
commit3bc699a336190981afec80d9da47f6b4ab8e5b3a (patch)
tree7b03fc1aefc8515ce6c7ca31fa86dbf6c0502e9b /Ports
parent9da62f52a198a8e043f5ca8ff43570fa040d15d2 (diff)
downloadserenity-3bc699a336190981afec80d9da47f6b4ab8e5b3a.zip
Ports: Add 'figlet' port.
This was the first piece of 3rd party software I got running on Serenity, so having it as a port feels like some kind of milestone. I think :^)
Diffstat (limited to 'Ports')
-rw-r--r--Ports/figlet/figlet-no-toilet-fonts.patch11
-rwxr-xr-xPorts/figlet/figlet.sh23
2 files changed, 34 insertions, 0 deletions
diff --git a/Ports/figlet/figlet-no-toilet-fonts.patch b/Ports/figlet/figlet-no-toilet-fonts.patch
new file mode 100644
index 0000000000..44cad8fc8e
--- /dev/null
+++ b/Ports/figlet/figlet-no-toilet-fonts.patch
@@ -0,0 +1,11 @@
+--- figlet-2.2.5/Makefile 2012-06-01 14:51:09.000000000 +0200
++++ figlet-2.2.5-patched/Makefile 2019-06-09 12:15:01.817177188 +0200
+@@ -26,7 +26,7 @@
+
+ # Feature flags:
+ # define TLF_FONTS to use TOIlet TLF fonts
+-XCFLAGS = -DTLF_FONTS
++#XCFLAGS = -DTLF_FONTS
+
+ # Where to install files
+ prefix = /usr/local
diff --git a/Ports/figlet/figlet.sh b/Ports/figlet/figlet.sh
new file mode 100755
index 0000000000..f38af411ed
--- /dev/null
+++ b/Ports/figlet/figlet.sh
@@ -0,0 +1,23 @@
+#!/bin/sh
+PORT_DIR=figlet
+INSTALLOPTS="DESTDIR=$SERENITY_ROOT/Root/"
+
+fetch() {
+ run_fetch_web "http://ftp.figlet.org/pub/figlet/program/unix/figlet-2.2.5.tar.gz"
+
+ run_patch figlet-no-toilet-fonts.patch -p1
+}
+
+configure() {
+ echo "No configure script"
+}
+
+build() {
+ run_make CC=i686-pc-serenity-gcc LD=i686-pc-serenity-gcc
+}
+
+install() {
+ run_make_install
+}
+
+. ../.port_include.sh