diff options
author | madpilot <madpilot@FreeBSD.org> | 2019-03-13 00:00:23 +0800 |
---|---|---|
committer | madpilot <madpilot@FreeBSD.org> | 2019-03-13 00:00:23 +0800 |
commit | 5f8d5b578cfb0aa348f2dfc0c2ee6fb839dc23e4 (patch) | |
tree | ba40b7a797618c64c2bbbb9811af8b70a174f55c | |
parent | c426fe32d2ade320b122da80f19347f4257437f5 (diff) | |
download | freebsd-ports-gnome-5f8d5b578cfb0aa348f2dfc0c2ee6fb839dc23e4.tar.gz freebsd-ports-gnome-5f8d5b578cfb0aa348f2dfc0c2ee6fb839dc23e4.tar.zst freebsd-ports-gnome-5f8d5b578cfb0aa348f2dfc0c2ee6fb839dc23e4.zip |
Add option to disable X11 support.
Requested by: driesm.michiels@gmail.com
-rw-r--r-- | multimedia/libva-utils/Makefile | 9 | ||||
-rw-r--r-- | multimedia/libva-utils/files/patch-Makefile.am | 15 | ||||
-rw-r--r-- | multimedia/libva-utils/pkg-plist | 4 |
3 files changed, 23 insertions, 5 deletions
diff --git a/multimedia/libva-utils/Makefile b/multimedia/libva-utils/Makefile index 28970528308f..d9d19c978114 100644 --- a/multimedia/libva-utils/Makefile +++ b/multimedia/libva-utils/Makefile @@ -14,15 +14,15 @@ LIB_DEPENDS= libva.so:multimedia/libva \ libdrm.so:graphics/libdrm USES= autoreconf compiler:c++11-lang gmake libtool pkgconfig tar:bzip2 -USE_XORG= x11 xext xfixes + GNU_CONFIGURE= yes INSTALL_TARGET= install-strip USE_GITHUB= yes GH_ACCOUNT= intel -OPTIONS_DEFINE= DEBUG WAYLAND -OPTIONS_DEFAULT=WAYLAND +OPTIONS_DEFINE= DEBUG WAYLAND X11 +OPTIONS_DEFAULT=WAYLAND X11 WAYLAND_DESC= Support wayland protocol OPTIONS_SUB= yes @@ -32,4 +32,7 @@ DEBUG_CFLAGS_OFF= -DNDEBUG WAYLAND_CONFIGURE_ENABLE= wayland WAYLAND_LIB_DEPENDS= libwayland-client.so:graphics/wayland +X11_CONFIGURE_ENABLE= x11 +X11_USE= XORG=x11,xext,xfixes + .include <bsd.port.mk> diff --git a/multimedia/libva-utils/files/patch-Makefile.am b/multimedia/libva-utils/files/patch-Makefile.am new file mode 100644 index 000000000000..62ae428f4ba8 --- /dev/null +++ b/multimedia/libva-utils/files/patch-Makefile.am @@ -0,0 +1,15 @@ +--- Makefile.am.orig 2019-02-01 23:11:33 UTC ++++ Makefile.am +@@ -24,10 +24,10 @@ ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS} + + AUTOMAKE_OPTIONS = foreign + +-SUBDIRS = common decode encode vainfo videoprocess vendor/intel vendor/intel/sfcsample ++SUBDIRS = common decode encode vainfo videoprocess vendor/intel + + if USE_X11 +-SUBDIRS += putsurface ++SUBDIRS += putsurface vendor/intel/sfcsample + else + if USE_WAYLAND + SUBDIRS += putsurface diff --git a/multimedia/libva-utils/pkg-plist b/multimedia/libva-utils/pkg-plist index b5b716341521..1bada8e7b792 100644 --- a/multimedia/libva-utils/pkg-plist +++ b/multimedia/libva-utils/pkg-plist @@ -6,9 +6,9 @@ bin/jpegenc bin/loadjpeg bin/mpeg2vaenc bin/mpeg2vldemo -bin/putsurface +%%X11%%bin/putsurface %%WAYLAND%%bin/putsurface_wayland -bin/sfcsample +%%X11%%bin/sfcsample bin/vainfo bin/vavpp bin/vp8enc |