-
Notifications
You must be signed in to change notification settings - Fork 8
/
build-dvtm.sh
executable file
·47 lines (40 loc) · 981 Bytes
/
build-dvtm.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/bin/bash -e
#
# Copyright 2016 (c) Yousong Zhou
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
PKG_NAME=dvtm
PKG_VERSION=0.15
PKG_SOURCE="$PKG_NAME-$PKG_VERSION.tar.gz"
PKG_SOURCE_URL="http://www.brain-dump.org/projects/dvtm/$PKG_SOURCE"
PKG_SOURCE_MD5SUM=887e162a3abe2ad8e86caefab20cdd63
PKG_DEPENDS=ncurses
. "$PWD/env.sh"
do_patch() {
cd "$PKG_SOURCE_DIR"
# fix for parallel build
patch -p0 <<"EOF"
--- Makefile.orig 2016-01-26 21:45:49.282609180 +0800
+++ Makefile 2016-01-26 21:46:06.022614368 +0800
@@ -3,7 +3,7 @@ include config.mk
SRC = dvtm.c vt.c
OBJ = ${SRC:.c=.o}
-all: clean options dvtm
+all: options dvtm
options:
@echo dvtm build options:
EOF
}
configure() {
true
}
if os_is_darwin; then
# necessary for SIGWINCH signo definition in /usr/include/sys/signal.h
# see "man 5 compat" for details
EXTRA_CFLAGS+=( -D_DARWIN_C_SOURCE)
fi
MAKE_VARS+=(
"PREFIX=$INSTALL_PREFIX"
)