summaryrefslogtreecommitdiff
path: root/Ports/npiet
diff options
context:
space:
mode:
authorNoah Rosamilia <ivoahivoah@gmail.com>2022-01-06 18:28:55 -0500
committerAndreas Kling <kling@serenityos.org>2022-01-07 02:12:51 +0100
commitf3b5f03b2ac012dd9840b398be2b5e81c094a980 (patch)
treeb5356bd4e89b17aeaab80a0e5b440c77db1a9e9f /Ports/npiet
parente570f9abc56b84590fff14117dacc85d91c6dab3 (diff)
downloadserenity-f3b5f03b2ac012dd9840b398be2b5e81c094a980.zip
Ports: Add npiet
Add interpreter for piet programming language https://www.bertnase.de/npiet/ https://www.dangermouse.net/esoteric/piet.html
Diffstat (limited to 'Ports/npiet')
-rwxr-xr-xPorts/npiet/package.sh8
-rw-r--r--Ports/npiet/patches/npiet.patch24
2 files changed, 32 insertions, 0 deletions
diff --git a/Ports/npiet/package.sh b/Ports/npiet/package.sh
new file mode 100755
index 0000000000..2683fb7847
--- /dev/null
+++ b/Ports/npiet/package.sh
@@ -0,0 +1,8 @@
+#!/usr/bin/env -S bash ../.port_include.sh
+port=npiet
+useconfigure=true
+version=1.3f
+depends=("libgd" "libpng")
+configopts=()
+files="https://www.bertnase.de/npiet/npiet-${version}.tar.gz npiet-${version}.tar.gz 2ded856062abd73599e85e1e768ce6bc60ba2db22dc7d6a9b62763dca04b855a"
+auth_type=sha256
diff --git a/Ports/npiet/patches/npiet.patch b/Ports/npiet/patches/npiet.patch
new file mode 100644
index 0000000000..bb09f57c0e
--- /dev/null
+++ b/Ports/npiet/patches/npiet.patch
@@ -0,0 +1,24 @@
+diff -ruN npiet-1.3f/Makefile.in npiet-1.3f.patched/Makefile.in
+--- npiet-1.3f/Makefile.in 2014-12-04 15:59:51.000000000 -0500
++++ npiet-1.3f.patched/Makefile.in 2022-01-05 13:40:37.959967837 -0500
+@@ -67,7 +67,7 @@
+ ##
+ ## How to build the target:
+ ##
+-all: npiet npiet-foogol html
++all: npiet npiet-foogol
+
+ npiet: npiet.o
+ $(CC) $(LDFLAGS) $(PROF) -o npiet npiet.o $(LIBS)
+diff -ruN npiet-1.3f/npiet-foogol.c npiet-1.3f.patched/npiet-foogol.c
+--- npiet-1.3f/npiet-foogol.c 2020-08-09 09:18:46.000000000 -0400
++++ npiet-1.3f.patched/npiet-foogol.c 2022-01-05 13:39:49.922931168 -0500
+@@ -108,7 +108,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
+-#include <malloc.h>
++// #include <malloc.h>
+ #include <limits.h>
+ #include <time.h>
+