ports

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

xorglibx11.mk (1260B)


      1 TARG = xorglibx11
      2 DEPS = xorgxproto xorglibxcb xorgxcbproto xorgkbproto \
      3 	xorginputproto xorgxf86bigfontproto xorgxtrans
      4 
      5 <$mkbuild/mk.common-noinst
      6 
      7 xorglibx11:QV:
      8 	# fix makekeys Makefile to use host cc
      9 	# build makekeys staticly.
     10 	cp ../makekeys_Makefile src/util/Makefile.in
     11 	# set flags.
     12 	export CFLAGS="$CFLAGS $DEPS_CFLAGS"
     13 	export LDFLAGS="$LDFLAGS $DEPS_LDFLAGS"
     14 	# set these to make sure these are used.
     15 	export BIGFONT_CFLAGS="-I${xorgxf86bigfontproto_includedir}"
     16 	export BIGFONT_LIBS="-L${xorgxf86bigfontproto_libdir}"
     17 	export X11_CFLAGS="${CFLAGS}"
     18 	export X11_LIBS="${LDFLAGS}"
     19 	./configure \
     20         --build="${TOOLCHAIN_TRIPLET}" \
     21         --host="${HOST_TOOLCHAIN_TRIPLET}" \
     22 		--prefix="$PREFIX" \
     23 		--mandir="$ROOT/share/man" \
     24 		--with-keysymdefdir="${xorgxproto_includedir}/X11" \
     25 		--disable-shared \
     26 		--enable-static
     27 	# make and install.
     28 	export HOSTCC_CFLAGS="-I${xorgxproto_includedir}"
     29 	make -j$nprocs install DESTDIR="`pwd`/lib"
     30 	# remove .la files for now ?
     31 	find `pwd`/lib -iname "*.la" -exec rm {} \;
     32 
     33 # /share/X11/locale/* etc
     34 install:QV:
     35 	export HOSTCC_CFLAGS="-I${xorgxproto_includedir}"
     36 	make -j$nprocs install DESTDIR="$ROOT"
     37 	rm -rf "$ROOT/lib"
     38 	rm -rf "$ROOT/include"
     39 	rm -rf "$ROOT/share/doc"
     40 	rm -rf "$ROOT/share/man"