ports

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

elinks.mk (1789B)


      1 TARG = elinks
      2 DEPS = zlib bzip2 libressl
      3 
      4 <$mkbuild/mk.common-noinst
      5 
      6 elinks:QV:
      7 	# TODO: enable TRE search? (--with-tre).
      8 	# fix VA_COPY, __va_copy is va_copy.
      9 	export CFLAGS="$CFLAGS $DEPS_CFLAGS -DVA_COPY=va_copy"
     10 	export CPPFLAGS="$CFLAGS"
     11 	export LDFLAGS="$LDFLAGS $DEPS_LDFLAGS"
     12 	CC="$CC -static" ./configure \
     13 		--build="${TOOLCHAIN_TRIPLET}" \
     14 		--host="${HOST_TOOLCHAIN_TRIPLET}" \
     15 		--prefix="$PREFIX" \
     16 		--mandir="$ROOT/share/man" \
     17 		--disable-shared \
     18 		--disable-nls \
     19 		--disable-bittorrent \
     20 		--disable-cgi \
     21 		--disable-finger \
     22 		--disable-smb \
     23 		--disable-nntp \
     24 		--without-ruby \
     25 		--without-perl \
     26 		--without-lua \
     27 		--without-gnutls \
     28 		--without-tre \
     29 		--with-openssl \
     30 		--with-zlib \
     31 		--with-bzlib \
     32 		--enable-mouse \
     33 		--enable-gopher \
     34 		--enable-ipv6 \
     35 		--enable-mailcap \
     36 		--enable-256-colors \
     37 		--enable-static
     38 	# fix warnings: sys/signal.h -> signal.h
     39 	find . -type f -name "*.[ch]" -exec sed 's@sys/signal.h@signal.h@g' -i {} \;
     40 	# NOTES:
     41 	# - LD is set to "ld", not gcc, because Makefile.lib specifies:
     42 	#   ld -r -o ...
     43 	# use $TOOLCHAIN-ld ($LD can be set to $CC).
     44 	printf '%s' "$LD" | grep -q 'ld' || export LD="`$CC -dumpmachine`-ld"
     45 	# - X_CFLAGS is set to blank, it's set to "-I/usr/include" which breaks
     46 	#   builds outside emul.
     47 	make -j$nprocs \
     48 		V="1" CC="${CC} -static" \
     49 		X_CFLAGS=" " \
     50 		LD="$LD" \
     51 		CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS"
     52 
     53 install:QV:
     54 	export CFLAGS="$CFLAGS $DEPS_CFLAGS -DVA_COPY=va_copy"
     55 	export CPPFLAGS="$CFLAGS"
     56 	export LDFLAGS="$LDFLAGS $DEPS_LDFLAGS"
     57 	# use $TOOLCHAIN-ld ($LD can be set to $CC).
     58 	printf '%s' "$LD" | grep -q 'ld' || export LD="`$CC -dumpmachine`-ld"
     59 	make -j$nprocs install DESTDIR="$ROOT" \
     60 		V="1" CC="${CC} -static" \
     61 		X_CFLAGS=" " \
     62 		LD="$LD" \
     63 		CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS"