morpheus

suckless linux distro
git clone git://git.2f30.org/morpheus
Log | Files | Refs | Submodules | README | LICENSE

commit e62c2a7619e560010822e7faa1e12b3efd3a697f
parent 8e8fedf1cb4d1d1ac716f9828fa1f4f421b1580b
Author: sin <sin@2f30.org>
Date:   Mon, 17 Feb 2014 15:38:40 +0000

Add tinyxlib and tinyxserver

Diffstat:
MDEPS | 1+
Across-scripts/tinyxlib | 25+++++++++++++++++++++++++
Apkgs/tinyxserver | 26++++++++++++++++++++++++++
Mprepare-root | 2+-
4 files changed, 53 insertions(+), 1 deletion(-)

diff --git a/DEPS b/DEPS @@ -1,2 +1,3 @@ irc ncurses +tinyxserver tinyxlib tmux libevent ncurses diff --git a/cross-scripts/tinyxlib b/cross-scripts/tinyxlib @@ -0,0 +1,25 @@ +url=$mirror/tinyxlib.tar.gz + +fetch() { + wget -c $url -O src/tinyxlib.tar.gz +} + +unpack() { + cd src + [ -d tinyxlib ] || tar xzf tinyxlib.tar.gz + cd - +} + +build() { + cd src/tinyxlib + make clean + make CC=x86_64-linux-musl-gcc BINDIR="/bin" LIBDIR="/lib" STATIC=1 \ + FONT_ENCODINGS_DIRECTORY="/usr/share/fonts/encodings/encodings.dir" + cd - +} + +install() { + cd src/tinyxlib + make DESTDIR="$libcroot" BINDIR="/bin" LIBDIR="/lib" STATIC=1 install + cd - +} diff --git a/pkgs/tinyxserver b/pkgs/tinyxserver @@ -0,0 +1,26 @@ +url=$mirror/tinyxserver.tar.gz + +fetch() { + wget -c $url -O src/tinyxserver.tar.gz +} + +unpack() { + cd src + [ -d tinyxserver ] || tar xzf tinyxserver.tar.gz + cd - +} + +build() { + cd src/tinyxserver + make clean + make CC=x86_64-linux-musl-gcc EXTRA_CFLAGS="-D_XSERVER64=1 -I$libcroot/include" \ + LDFLAGS="-static -L$libcroot/lib" \ + FONTDIR="/usr/share/fonts" + cd - +} + +install() { + cd src/tinyxserver + make DESTDIR="$root" BINDIR="/bin" install + cd - +} diff --git a/prepare-root b/prepare-root @@ -1,7 +1,7 @@ mkdir -p $root cd $root mkdir -p boot bin dev emul etc home opt proc root share src sys tmp var -mkdir -p dev/pts dev/shm opt/cross share/doc share/man var/empty var/log var/run +mkdir -p dev/pts dev/shm opt/cross share/doc share/fonts/encodings share/man var/empty var/log var/run ln -sf . usr ln -sf bin sbin ln -sf ../tmp var/tmp