ports

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

xorgserver.mk (2555B)


      1 # openssl is used for --with-sha1=libcrypto
      2 TARG = xorgserver
      3 DEPS = xorglibpixman xorglibx11 openssl xorglibpciaccess \
      4 	xorgprotoall xorglibxau xorglibxkbfile \
      5 	xorgxtrans xorglibxfont freetype xorglibfontenc libpng zlib
      6 
      7 <$mkbuild/mk.common-noinst
      8 
      9 xorgserver:QV:
     10 	# fix termio.h -> termios.h
     11 	sed 's@termio.h@termios.h@g' -i 'hw/xfree86/os-support/xf86_OSlib.h'
     12 	# fix __uid_t and __gid_t
     13 	sed 's@__uid_t@uid_t@g' -i 'hw/kdrive/linux/linux.c'
     14 	sed 's@__gid_t@gid_t@g' -i 'hw/kdrive/linux/linux.c'
     15 	# don't build tests.
     16 	printf "all:\n\ttrue\ninstall:\n\ttrue\n" > test/Makefile.in
     17 	#
     18 	export CFLAGS="$CFLAGS $DEPS_CFLAGS"
     19 	export LDFLAGS="$LDFLAGS $DEPS_LDFLAGS"
     20 	export CPPFLAGS="$CFLAGS"
     21 	export PCIACCESS_CFLAGS="-I${xorglibpciaccess_includedir}"
     22 	export PCIACCESS_LIBS="-L${xorglibpciaccess_libdir} -lpciaccess"
     23 	export PIXMAN_CFLAGS="-I${xorglibpixman_includedir}"
     24 	export PIXMAN_LIBS="-L${xorglibpixman_libdir} -lz -m -lpng -lpixman-1"
     25 	export XLIB_CFLAGS="-I${xorglibx11_includedir}"
     26 	export XLIB_LIBS="-L${xorglibx11_libdir} -lX11"
     27 	export XSERVERCFLAGS_CFLAGS="${CFLAGS}"
     28 	export XSERVERCFLAGS_LIBS="${LDFLAGS}"
     29 	export XSERVERLIBS_CFLAGS="${CFLAGS}"
     30 	export XSERVERLIBS_LIBS="${LDFLAGS}"
     31 	export XORG_MODULES_CFLAGS="${CFLAGS}"
     32 	export XORG_MODULES_LIBS="${LDFLAGS}"
     33 	export DGA_CFLAGS="-I${xorgxf86dgaproto_includedir}"
     34 	export DGA_LIBS="-L${xorgxf86dgaproto_libdir}"
     35 	# TODO: make able to run server rootless or setuid binary?
     36 	export CC="$CC -static"
     37 	# NOTE: xorgvideofbdev requires --enable-dga.
     38 	# NOTE: kdrive-kbd seems broken(?).
     39 	./configure \
     40 		--prefix="$PREFIX" \
     41 		--mandir="$ROOT/$PREFIX/share/man" \
     42 		--localstatedir=/var \
     43 		--with-fontrootdir="$PREFIX/share/fonts/X11" \
     44 		--with-xkb-output="/var/lib/xkb" \
     45 		--disable-dri \
     46 		--disable-dri2 \
     47 		--disable-aiglx \
     48 		--disable-glx-tls \
     49 		--disable-glx \
     50 		--disable-config-dbus \
     51 		--disable-config-hal \
     52 		--disable-shared \
     53 		--disable-kdrive-kbd \
     54 		--enable-static \
     55 		--enable-dga \
     56 		--enable-xfbdev \
     57 		--enable-kdrive \
     58 		--enable-kdrive-evdev \
     59 		--enable-kdrive-mouse \
     60 		--with-sha1=libcrypto
     61 	# NOTE: "-all-static" is needed.
     62 	make -j$nprocs LDFLAGS="-all-static $LDFLAGS"
     63 	# install include files for dependency aswell (xorg-server-devel).
     64 	make -j$nprocs install LDFLAGS="-all-static $LDFLAGS" DESTDIR="`pwd`/lib"
     65 	# remove .la files for now ?
     66 	find "`pwd`/lib" -iname "*.la" -exec rm {} \;
     67 
     68 install:QV:
     69 	# NOTE: "-all-static" is needed.
     70 	make -j$nprocs install DESTDIR="$ROOT" LDFLAGS="-all-static $LDFLAGS"
     71 	$INSTALL -m 755 -d "$ROOT/etc/X11/xorg.conf.d"