ports

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

xorglibxcb.mk (1175B)


      1 # make deps: python2.7 (with python 3 won't work atm (2014-04-30)).
      2 #            xcbgen: python-xcbgen (debian), xorg-xcb-proto (crux).
      3 TARG = xorglibxcb
      4 DEPS = xorgxcbproto xorgxproto xorglibxau xorglibxdmcp
      5 
      6 <$mkbuild/mk.common-noinst
      7 
      8 xorglibxcb:QV:
      9 	export CFLAGS="$CFLAGS $DEPS_CFLAGS"
     10 	export LDFLAGS="$LDFLAGS $DEPS_LDFLAGS"
     11 	export PYTHON="python2.7"
     12 	export XCBPROTO_CFLAGS="-I${xorgxcbproto_includedir}"
     13 	export XCBPROTO_LIBS="-L${xorgxcbproto_libdir}"
     14 	export XDMCP_CFLAGS="-I${xorglibxdmcp_includedir}"
     15 	export XDMCP_LIBS="-L${xorglibxdmcp_libdir}"
     16 	export NEEDED_CFLAGS="${CFLAGS}"
     17 	export NEEDED_LIBS="${LDFLAGS}"
     18 	# TODO: better flags.
     19 #	export NEEDED_CFLAGS="-I${xorgxproto_includedir}"
     20 #	export NEEDED_LIBS="-L${xorgxproto_libdir}"
     21 	./configure \
     22         --build="${TOOLCHAIN_TRIPLET}" \
     23         --host="${HOST_TOOLCHAIN_TRIPLET}" \
     24 		--prefix="$PREFIX" \
     25 		--mandir="$ROOT/share/man" \
     26 		--disable-shared \
     27 		--enable-static
     28 	make -j$nprocs install XCBPROTO_XCBINCLUDEDIR="${xorgxcbproto_includedir}" \
     29 		XCBPROTO_XCBPYTHONDIR="${xorgxcbproto_pythonlibdir}" \
     30 		DESTDIR="`pwd`/lib"
     31 	# remove .la files for now ?
     32 	find `pwd`/lib -iname "*.la" -exec rm {} \;