ports

morpheus ports
git clone git://git.2f30.org/ports
Log | Files | Refs | LICENSE

commit 7d43d000e471733fd17fd755626e6f2b0619213c
parent 9571098e8487bfe40b432d82cd465827b5a921bd
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Thu, 22 May 2014 16:00:34 +0200

add btpd (not working yet)

Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>

Diffstat:
Abtpd/btpd.mk | 58++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Abtpd/checksums | 1+
Abtpd/mkfile | 6++++++
Abtpd/v.mk | 1+
4 files changed, 66 insertions(+), 0 deletions(-)

diff --git a/btpd/btpd.mk b/btpd/btpd.mk @@ -0,0 +1,58 @@ +<../v.mk + +# TODO: mk clean doesn't work because $BIN files are not in base dir? +TARG = btpd +BIN = btpd btinfo btcli +LIB = libmisc.a libevloop.a +# TODO: remove CLEAN_FILES once above works? +CLEAN_FILES = btpd/btpd cli/btinfo cli/btcli + +libmisc_a_OBJ = `{ ls misc/*.c } +libmisc_a_CFLAGS = -I`{ echo $(pwd)/misc } +libmisc_a_LDFLAGS = -L`{ echo $(pwd)/misc } -lmisc + +libevloop_a_OBJ = `{ ls evloop/*.c | sed 's/.$/o/'} +libevloop_a_CFLAGS = -I`{ echo $(pwd)/evloop } +libevloop_a_LDFLAGS = -L`{ echo $(pwd)/evloop } -levloop + +btpd_OBJ = `{ ls btpd/*.c | sed 's/.$/o/'} +btpd_CFLAGS = -I./btpd $libmisc_a_CFLAGS $libevloop_a_CFLAGS +btpd_LDFLAGS = $libmisc_a_LDFLAGS $libevloop_a_LDFLAGS + +btinfo_OBJ = cli/btinfo.o +btinfo_CFLAGS = -I./cli $libmisc_a_CFLAGS +btinfo_LDFLAGS = $libmisc_a_LDFLAGS + +btcli_OBJ = \ + cli/btcli.o \ + cli/add.o \ + cli/del.o \ + cli/list.o \ + cli/kill.o \ + cli/start.o \ + cli/stop.o \ + cli/stat.o +btcli_CFLAGS = -I./cli $libmisc_a_CFLAGS +btcli_LDFLAGS = $libmisc_a_LDFLAGS + +INSTALL_BIN = \ + btpd/btpd \ + cli/btinfo \ + cli/btcli +INSTALL_MAN1 = `{ ls doc/*.1 } + +# EVLOOP_METHOD = [ EVLOOP_EPOLL, EVLOOP_KQUEUE, EVLOOP_POLL] +LOCAL_CFLAGS = \ + -DPACKAGE_NAME=\"btpd\" \ + -DPACKAGE_VERSION=\"$v\" \ + -D_FILE_OFFSET_BITS=64 -DEVLOOP_EPOLL \ + -std=c99 -I. -Icli -I./btpd $libmisc_a_CFLAGS $libevloop_a_CFLAGS +LOCAL_LDFLAGS = -L. -lm + +DEPS = openssl + +<$mkbuild/mk.default + +btcli: libmisc.a +btinfo: libmisc.a +btpd: libmisc.a libevloop.a diff --git a/btpd/checksums b/btpd/checksums @@ -0,0 +1 @@ +90d7574dec98649fb03973ca802f9ab3f0c43ac42761db2eb22146c985f2a43825ff6a5463d151950a8871ace9d73df2256eb926228ef4321b726c89ec3412f3 v0.16.tar.gz diff --git a/btpd/mkfile b/btpd/mkfile @@ -0,0 +1,6 @@ +<$mkbuild/mk.3rdparty + +<v.mk +src = btpd-$v +url = https://github.com/btpd/btpd/archive/v$v.tar.gz +mkfile = ../btpd.mk diff --git a/btpd/v.mk b/btpd/v.mk @@ -0,0 +1 @@ +v = 0.16