ports

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

commit eccc057f0148c99f847b61c448043e2f0c4e13d5
parent d4c1ddedb3f9f4bea15210bbfd03663d49110320
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Sat,  7 Jun 2014 14:47:57 +0200

add elinks

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

Diffstat:
Aelinks/checksums | 1+
Aelinks/elinks.mk | 46++++++++++++++++++++++++++++++++++++++++++++++
Aelinks/mkfile | 6++++++
Aelinks/v.mk | 1+
4 files changed, 54 insertions(+), 0 deletions(-)

diff --git a/elinks/checksums b/elinks/checksums @@ -0,0 +1 @@ +bff70faafea7c4739695a7fad8f659109894b318588f5a035a5594a6053238789259ce6067c2f5cb97448f138db143adebb23f84bf689bea209ba37573484b7f elinks-0.12pre6.tar.bz2 diff --git a/elinks/elinks.mk b/elinks/elinks.mk @@ -0,0 +1,46 @@ +TARG = elinks +DEPS = zlib bzip2 openssl + +<$mkbuild/mk.common-noinst + +elinks:QV: + # TODO: enable TRE search? (--with-tre). + # fix VA_COPY, __va_copy is va_copy. + export CFLAGS="$CFLAGS $DEPS_CFLAGS -DVA_COPY=va_copy" + export LDFLAGS="$LDFLAGS $DEPS_LDFLAGS" + CC="$CC -static" ./configure \ + --prefix="$prefix" \ + --mandir="$ROOT/share/man" \ + --disable-shared \ + --disable-nls \ + --disable-bittorrent \ + --disable-cgi \ + --disable-finger \ + --disable-smb \ + --disable-nntp \ + --without-ruby \ + --without-perl \ + --without-lua \ + --without-gnutls \ + --without-tre \ + --with-openssl \ + --with-zlib \ + --with-bzlib \ + --enable-mouse \ + --enable-gopher \ + --enable-ipv6 \ + --enable-mailcap \ + --enable-256-colors \ + --enable-static + # fix warnings: sys/signal.h -> signal.h + find . -type f -name "*.[ch]" -exec sed 's@sys/signal.h@signal.h@g' -i {} \; + # NOTE: LD is set to "ld", not gcc, because Makefile.lib specifies: + # ld -r -o ... + make -j$nprocs \ + V="1" CC="${CC} -static" \ + LD="${TOOLCHAIN_TRIPLET}-ld" CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" + +install:QV: + make -j$nprocs install DESTDIR="$ROOT" \ + V="1" CC="${CC} -static" \ + LD="${TOOLCHAIN_TRIPLET}-ld" CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" diff --git a/elinks/mkfile b/elinks/mkfile @@ -0,0 +1,6 @@ +<$mkbuild/mk.3rdparty + +<v.mk +src = elinks-$v +url = http://elinks.or.cz/download/elinks-$v.tar.bz2 +mkfile = ../elinks.mk diff --git a/elinks/v.mk b/elinks/v.mk @@ -0,0 +1 @@ +v = 0.12pre6