aboutsummaryrefslogtreecommitdiff
path: root/editors/vis/build
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-08-23 00:27:20 +0300
committerCem Keylan <cem@ckyln.com>2020-08-23 00:27:20 +0300
commita30159f101aa153c00327f647e425fa5c0d03ffd (patch)
treeccbad2caa042713c3e9c81025b3d82e119f3c666 /editors/vis/build
parent2e9455c02650db9e23c72530d29a01c3f7a9c42f (diff)
downloadrepository-a30159f101aa153c00327f647e425fa5c0d03ffd.tar.gz
add editor repository
Diffstat (limited to 'editors/vis/build')
-rwxr-xr-xeditors/vis/build38
1 files changed, 38 insertions, 0 deletions
diff --git a/editors/vis/build b/editors/vis/build
new file mode 100755
index 0000000..571b43f
--- /dev/null
+++ b/editors/vis/build
@@ -0,0 +1,38 @@
+#!/bin/sh -e
+
+(
+ cd termkey
+
+ make termkey.h libtermkey.la
+
+ mkdir -p "../usr/lib" \
+ "../usr/include"
+
+ mv termkey.h "../usr/include"
+ mv .libs/*.a "../usr/lib"
+
+)
+
+(
+ # Lpeg doesn't have an option to create static libraries.
+ cd lpeg
+ for obj in lpcap lpcode lpprint lptree lpvm; do
+ "${CC:-cc}" $CFLAGS -c -o $obj.o $obj.c
+ done
+ ar rcs ../usr/lib/liblpeg.a ./*.o
+)
+
+(
+ cd vis
+
+ export CFLAGS="$CFLAGS -static -I../usr/include"
+ export LDFLAGS="$LDFLAGS -L../usr/lib"
+
+ ./configure \
+ --prefix=/usr \
+ --enable-lua \
+ --enable-liblpeg-static
+
+ make
+ make DESTDIR="$1" install
+)