ports

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

commit 5a9b8a68619c97a33e4bfcc7539240380a2f4c60
parent 97d98b85b72b36ec026234b1b3aea888287fd99b
Author: sin <sin@2f30.org>
Date:   Fri,  6 Jun 2014 15:20:45 +0100

Add xorglibdrm - not tested

Diffstat:
Axorglibdrm/checksums | 1+
Axorglibdrm/depsinc.mk | 6++++++
Axorglibdrm/mkfile | 6++++++
Axorglibdrm/v.mk | 1+
Axorglibdrm/xorglibdrm.mk | 21+++++++++++++++++++++
5 files changed, 35 insertions(+), 0 deletions(-)

diff --git a/xorglibdrm/checksums b/xorglibdrm/checksums @@ -0,0 +1 @@ +9e1699e28b034b5dd7acccd76b9f4e83ff10bb2b62107282f1e02046c1d6e8f0b5abbab318f23967dc23d4d5afdeb3e78793384801da5cfeaba7567f837242c6 libdrm-2.4.46.tar.bz2 diff --git a/xorglibdrm/depsinc.mk b/xorglibdrm/depsinc.mk @@ -0,0 +1,6 @@ +<$xorglibdrm_DEPDIR/v.mk + +xorglibdrm_libdir = $xorglibdrm_DEPDIR/libdrm-$v/lib/lib +xorglibdrm_includedir = $xorglibdrm_DEPDIR/libdrm-$v/lib/include +DEPS_CFLAGS = $DEPS_CFLAGS -I${xorglibdrm_includedir} +DEPS_LDFLAGS = $DEPS_LDFLAGS -L${xorglibdrm_libdir} -libdrm diff --git a/xorglibdrm/mkfile b/xorglibdrm/mkfile @@ -0,0 +1,6 @@ +<$mkbuild/mk.3rdparty + +<v.mk +src = libdrm-$v +url = http://dri.freedesktop.org/libdrm/libdrm-$v.tar.bz2 +mkfile = ../xorglibdrm.mk diff --git a/xorglibdrm/v.mk b/xorglibdrm/v.mk @@ -0,0 +1 @@ +v = 2.4.46 diff --git a/xorglibdrm/xorglibdrm.mk b/xorglibdrm/xorglibdrm.mk @@ -0,0 +1,21 @@ +TARG = xorgxinit +DEPS = libpthreadstubs xorglibpciaccess + +<$mkbuild/mk.common-noinst + +xorgxinit:QV: + export CFLAGS="$CFLAGS $DEPS_CFLAGS" + export LDFLAGS="$LDFLAGS $DEPS_LDFLAGS" + export PCIACCESS_CFLAGS="${CFLAGS}" + export PCIACCESS_LIBS="${LDFLAGS}" + CC="$CC" ./configure \ + --prefix="$PREFIX" \ + --mandir="$ROOT/share/man" \ + --disable-libkms \ + --disable-nouveau \ + --disable-vmwgfx \ + --disable-shared \ + --enable-static + make -j$nprocs + make -j$nprocs install DESTDIR=`pwd`/lib + find `pwd`/lib -iname "*.la" -exec rm {} \;