Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F156571523
D20724.id58917.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
23 KB
Referenced Files
None
Subscribers
None
D20724.id58917.diff
View Options
Index: Mk/Uses/xorg-cat.mk
===================================================================
--- /dev/null
+++ Mk/Uses/xorg-cat.mk
@@ -0,0 +1,192 @@
+# $FreeBSD$
+#
+# xorg ports categories and other things needed to build xorg ports.
+# This is intended only for ports of xorg and freedesktop.org applications.
+#
+# Use USES=xorg and USE_XORG to depend on various xorg components.
+#
+# Feature: xorg-cat
+# Usage: USES=xorg-cat:category[,buildsystem]
+#
+# category is one of:
+# * app Installs applications, no shared libraries.
+# * data Installs only data.
+# * doc no particular notes
+# * driver depends on xorgproto at least
+# * font don't install .pc file
+# * lib various dependencies, install .pc file, needs
+# pathfix
+# * proto install .pc file, needs pathfix, most only needed at
+# build time.
+# * util no particular notes
+# * xserver xorg x servers
+#
+# These categories has to match upstream categories. Don't invent
+# your own.
+#
+# builsystem is one of:
+# * autotools (default)
+# * meson (experimental)
+#
+#
+# By defining USE_GITLAB and GL_COMMIT, it is possible to pull code straight
+# from the freedesktop.org gitlab, instead of official release tarballs.
+#
+#.MAINTAINER: x11@FreeBSD.org
+
+.if !defined(_INCLUDE_USES_XORG_CAT_MK)
+_INCLUDE_USES_XORG_CAT_MK=yes
+
+_XORG_CATEGORIES= app data doc driver font lib proto util xserver
+_XORG_BUILDSYSTEMS= autotools meson
+
+_XORG_CAT= # empty
+_XORG_BUILDSYS= # empty
+
+.if empty(xorg-cat_ARGS)
+IGNORE= no arguments specified to xorg-cat
+.endif
+
+.for _arg in ${xorg-cat_ARGS}
+. if ${_XORG_CATEGORIES:M${_arg}}
+. if empty(_XORG_CAT)
+_XORG_CAT= ${_arg}
+. else
+IGNORE= multipe xorg categories specified via xorg-cat:${xorg-cat_ARGS:ts,}
+. endif
+. elif ${_XORG_BUILDSYSTEMS:M${_arg}}
+. if empty(_XORG_BUILDSYS)
+_XORG_BUILDSYS= ${_arg}
+. else
+IGNORE= multipe xorg build systems specified via xorg-cat:${xorg-cat_ARGS:ts,}
+. endif
+. else
+IGNORE= unknown argument specified via xorg-cat:${xorg-cat_ARGS:ts,}
+. endif
+.endfor
+
+# Default to the autotools build system
+.if empty(_XORG_BUILDSYS)
+_XORG_BUILDSYS= autotools
+.endif
+
+# Default variables, common to all new modular xorg ports.
+.if empty(USES:Mtar)
+EXTRACT_SUFX?= .tar.bz2
+.endif
+
+DIST_SUBDIR= xorg/${_XORG_CAT}
+
+.if ${_XORG_BUILDSYS} == "meson"
+.include "${USESDIR}/meson.mk"
+.elif ${_XORG_BUILDSYS} == "autotools"
+GNU_CONFIGURE= yes
+.else
+# This should not happen
+IGNORE= unknown build system specified via xorg-cat:${xorg-cat_ARGS:ts,}
+.endif
+
+.if defined(USE_GITLAB)
+# Set up things for fetching from freedesktop.org gitlab.
+# This can be overridden using normal GL_* macros in the ports Makefile.
+# We make a best guess for GL_ACCOUNT and GL_PROJECT.
+GL_SITE?= https://gitlab.freedesktop.org
+GL_ACCOUNT?= xorg/${_XORG_CAT}
+GL_PROJECT?= ${PORTNAME:tl}
+. if ${_XORG_BUILDSYS} == "meson"
+# set up meson stuff here
+. else
+# Things from GL doesn't come with pre-generated configure, add dependency on
+# autoreconf and run it, if we're using autotools.
+.include "${USESDIR}/autoreconf.mk"
+. endif
+.else
+MASTER_SITES?= ${MASTER_SITE_XORG}
+MASTER_SITE_SUBDIR?= individual/${_XORG_CAT}
+.endif
+
+# set up things for includes below
+libtool_ARGS?= # empty
+
+#
+## All xorg ports needs pkgconfig to build, but some ports look for pkgconfig
+## and then continues the build.
+.include "${USESDIR}/pkgconfig.mk"
+
+#
+## All xorg ports needs xorg-macros.
+.if ${PORTNAME} != xorg-macros
+USE_XORG+= xorg-macros
+.endif
+
+.if ${_XORG_CAT} == "app"
+# Nothing at the moment
+.endif
+
+.if ${_XORG_CAT} == "data"
+# Nothing at the moment.
+.endif
+
+.if ${_XORG_CAT} == "driver"
+USE_XORG+= xi xorg-server xorgproto
+. if ${_XORG_BUILDSYS} == "meson"
+# Put special stuff for meson here
+. else
+CONFIGURE_ENV+= DRIVER_MAN_SUFFIX=4x DRIVER_MAN_DIR='$$(mandir)/man4'
+.include "${USESDIR}/libtool.mk"
+INSTALL_TARGET= install-strip
+. endif
+.endif
+
+.if ${_XORG_CAT} == "font"
+FONTNAME?= ${PORTNAME:C/.*-//g:S/type/Type/:S/ttf/TTF/:S/speedo/Speedo/}
+. if ${_XORG_BUILDSYS} == "meson"
+# Put special stuff for meson here
+. else
+CONFIGURE_ARGS+= --with-fontrootdir=${PREFIX}/share/fonts
+CONFIGURE_ENV+= FONTROOTDIR=${PREFIX}/share/fonts
+. endif
+. if !defined(NOFONT)
+.include "${USESDIR}/fonts.mk"
+BUILD_DEPENDS+= mkfontscale>=0:x11-fonts/mkfontscale \
+ bdftopcf:x11-fonts/bdftopcf
+PLIST_FILES+= "@comment ${FONTSDIR}/fonts.dir" \
+ "@comment ${FONTSDIR}/fonts.scale"
+. endif
+.endif
+
+.if ${_XORG_CAT} == "lib"
+.include "${USESDIR}/pathfix.mk"
+. if ${_XORG_BUILDSYS} == "meson"
+# put meson stuff here
+. else
+.include "${USESDIR}/libtool.mk"
+USE_LDCONFIG= yes
+CONFIGURE_ARGS+=--enable-malloc0returnsnull
+. endif
+.endif
+
+.if ${_XORG_CAT} == "proto"
+.include "${USESDIR}/pathfix.mk"
+.endif
+
+.if ${_XORG_CAT} == "xserver"
+DISTFILES?= xorg-server-${PORTVERSION}.tar.bz2
+WRKSRC= ${WRKDIR}/xorg-server-${PORTVERSION}
+.include "${USESDIR}/pathfix.mk"
+. if ${_XORG_BUILDSYS} == "meson"
+# put meson stuff here
+. else
+CONFIGURE_ARGS+= --with-xkb-path=${LOCALBASE}/share/X11/xkb \
+ --with-fontrootdir=${LOCALBASE}/share/fonts
+. endif
+LIB_PC_DEPENDS+= ${LOCALBASE}/libdata/pkgconfig/dri.pc:graphics/mesa-dri
+USE_XORG+= fontutil
+.endif
+
+# We onlu need USES=xorg if we want USE_XORG modules
+.if defined(USE_XORG) && !empty(USE_XORG)
+.include "${USESDIR}/xorg.mk"
+.endif
+
+.endif
Index: Mk/Uses/xorg.mk
===================================================================
--- /dev/null
+++ Mk/Uses/xorg.mk
@@ -0,0 +1,174 @@
+# $FreeBSD$
+#
+# Originally from bsd.xorg.mk
+# Created by: Florent Thoumie <flz@FreeBSD.org>
+#
+# Feature: xorg
+# Usage: USES=xorg
+# USE_XORG=<component>
+#
+# Not specifying USE_XORG with USES=xorg is an error.
+#
+# Components can be found in the XORG_MODULES list below.
+#
+#
+# If you feel something is missing from the list, please let us know.
+#
+# MAINTAINER: x11@FreeBSD.org
+
+.if !defined(_INCLUDE_USES_XORG_MK)
+_INCLUDE_USES_XORG_MK= yes
+_USES_POST+= xorg
+.endif
+
+# Set up things after bsd.port.post.mk.
+# This way ports can add things to USE_XORG even after bsd.port.pre.mk is
+# included.
+.if defined(_POSTMKINCLUDED) && !defined(_INCLUDE_USES_XORG_POST_MK)
+_INCLUDE_USES_XORG_POST_MK= yes
+
+# List of xorg modules
+XORG_MODULES= dmx \
+ fontenc \
+ fontutil \
+ ice \
+ libfs \
+ oldx \
+ pciaccess \
+ pixman \
+ sm \
+ x11 \
+ xau \
+ xaw \
+ xaw6 \
+ xaw7 \
+ xbitmaps \
+ xcb \
+ xcomposite \
+ xcursor \
+ xdamage \
+ xdmcp \
+ xevie \
+ xext \
+ xfixes \
+ xfont \
+ xfont2 \
+ xfontcache \
+ xft \
+ xi \
+ xinerama \
+ xkbfile \
+ xkbui \
+ xmu \
+ xmuu \
+ xorg-macros \
+ xorg-server \
+ xorgproto \
+ xp \
+ xpm \
+ xprintapputil \
+ xprintutil \
+ xrandr \
+ xrender \
+ xres \
+ xscrnsaver \
+ xshmfence \
+ xt \
+ xtrans \
+ xtrap \
+ xtst \
+ xv \
+ xvmc \
+ xxf86dga \
+ xxf86misc \
+ xxf86vm
+
+# Register all xorg .pc files here.
+# foo_LIB_PC_DEPENDS means it should go to BUILD_DEPENDS *and* RUN_DEPENDS.
+dmx_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/dmx.pc:x11/libdmx
+fontenc_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/fontenc.pc:x11-fonts/libfontenc
+fontutil_BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/fontutil.pc:x11-fonts/font-util
+ice_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/ice.pc:x11/libICE
+libfs_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/libfs.pc:x11-fonts/libFS
+oldx_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/oldx.pc:x11/liboldX
+pciaccess_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/pciaccess.pc:devel/libpciaccess
+pixman_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/pixman-1.pc:x11/pixman
+sm_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/sm.pc:x11/libSM
+x11_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/x11.pc:x11/libX11
+xau_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xau.pc:x11/libXau
+xaw_LIB_PC_DEPENDS= ${xaw7_LIB_PC_DEPENDS}
+xaw6_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xaw6.pc:x11-toolkits/libXaw
+xaw7_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xaw7.pc:x11-toolkits/libXaw
+xbitmaps_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xbitmaps.pc:x11/xbitmaps
+xcb_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xcb.pc:x11/libxcb
+xcomposite_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xcomposite.pc:x11/libXcomposite
+xcursor_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xcursor.pc:x11/libXcursor
+xdamage_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xdamage.pc:x11/libXdamage
+xdmcp_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xdmcp.pc:x11/libXdmcp
+xevie_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xevie.pc:x11/libXevie
+xext_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xext.pc:x11/libXext
+xfixes_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xfixes.pc:x11/libXfixes
+xfont_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xfont.pc:x11-fonts/libXfont
+xfont2_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xfont2.pc:x11-fonts/libXfont2
+xfontcache_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xfontcache.pc:x11-fonts/libXfontcache
+xft_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xft.pc:x11-fonts/libXft
+xi_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xi.pc:x11/libXi
+xinerama_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xinerama.pc:x11/libXinerama
+xkbfile_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xkbfile.pc:x11/libxkbfile
+xkbui_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xkbui.pc:x11/libxkbui
+xmu_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xmu.pc:x11-toolkits/libXmu
+xmuu_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xmuu.pc:x11-toolkits/libXmu
+xorg-macros_BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xorg-macros.pc:devel/xorg-macros
+xorg-server_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xorg-server.pc:x11-servers/xorg-server
+xorgproto_BUILD_DEPENDS= xorgproto>=0:x11/xorgproto
+xp_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xp.pc:x11/libXp
+xpm_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xpm.pc:x11/libXpm
+xprintapputil_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xprintapputil.pc:x11/libXprintAppUtil
+xprintutil_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xprintutil.pc:x11/libXprintUtil
+xrandr_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xrandr.pc:x11/libXrandr
+xrender_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xrender.pc:x11/libXrender
+xres_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xres.pc:x11/libXres
+xscrnsaver_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xscrnsaver.pc:x11/libXScrnSaver
+xt_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xt.pc:x11-toolkits/libXt
+xshmfence_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xshmfence.pc:x11/libxshmfence
+xtrans_BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xtrans.pc:x11/xtrans
+xtrap_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xtrap.pc:x11/libXTrap
+xtst_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xtst.pc:x11/libXtst
+xv_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xv.pc:x11/libXv
+xvmc_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xvmc.pc:x11/libXvMC
+xxf86dga_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xxf86dga.pc:x11/libXxf86dga
+xxf86misc_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xxf86misc.pc:x11/libXxf86misc
+xxf86vm_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xxf86vm.pc:x11/libXxf86vm
+
+# Add explicit X options to avoid problems with false positives in configure
+.if defined(GNU_CONFIGURE)
+CONFIGURE_ARGS+=--x-libraries=${LOCALBASE}/lib --x-includes=${LOCALBASE}/include
+.endif
+
+.if !empty(xorg_ARGS)
+IGNORE= USES=xorg takes no arguments
+.endif
+
+.if !defined(USE_XORG)
+IGNORE= need to specify xorg modules with USE_XORG
+.endif
+
+.for _module in ${USE_XORG:M*\:both:C/\:.*//g}
+. if ${XORG_MODULES:M${_module}} == ""
+IGNORE= requires unknown xorg module (${_module})
+. endif
+RUN_DEPENDS+= ${${_module}_BUILD_DEPENDS}
+.endfor
+
+.for _module in ${USE_XORG:C/\:both$//g}
+. if ${XORG_MODULES:M${_module}} == ""
+IGNORE= requires unknown xorg module (${_module})
+. endif
+LIB_PC_DEPENDS+=${${_module}_LIB_PC_DEPENDS}
+BUILD_DEPENDS+= ${${_module}_BUILD_DEPENDS}
+.endfor
+
+RUN_DEPENDS+= ${LIB_PC_DEPENDS}
+BUILD_DEPENDS+= ${LIB_PC_DEPENDS}
+
+.endif
Index: Mk/bsd.port.mk
===================================================================
--- Mk/bsd.port.mk
+++ Mk/bsd.port.mk
@@ -396,9 +396,6 @@
# Implies NO_LICENSES_INSTALL=yes, NO_MTREE=yes, and causes
# Linux ldconfig to be used when USE_LDCONFIG is defined.
##
-# USE_XORG - Set to a list of X.org module dependencies.
-# Implies inclusion of bsd.xorg.mk.
-##
# USE_TEX - A list of the TeX dependencies the port has.
#
##
@@ -1331,10 +1328,6 @@
INDEXFILE?= INDEX-${OSVERSION:C/([0-9]*)[0-9]{5}/\1/}
-.if defined(USE_XORG) || defined(XORG_CAT)
-.include "${PORTSDIR}/Mk/bsd.xorg.mk"
-.endif
-
PACKAGES?= ${PORTSDIR}/packages
TEMPLATES?= ${PORTSDIR}/Templates
KEYWORDS?= ${PORTSDIR}/Keywords
@@ -1352,6 +1345,16 @@
.include "${PORTSDIR}/Mk/bsd.local.mk"
.endif
+.if defined(USE_XORG) && (!defined(USES) || !${USES:Mxorg})
+DEV_WARNING+= "Using USE_XORG alone is deprecated, please use USES=xorg"
+USES+= xorg
+.endif
+
+.if defined(XORG_CAT) && (!defined(USES) || !${USES:Mxorg-cat})
+DEV_WARNING+= "Using XORG_CAT is deprecated, please use USES=xorg-cat:category"
+USES+= xorg-cat:${XORG_CAT}
+.endif
+
.if defined(USE_PHP) && (!defined(USES) || ( defined(USES) && !${USES:Mphp*} ))
DEV_WARNING+= "Using USE_PHP alone is deprecated, please use USES=php"
USES+= php
@@ -1905,10 +1908,6 @@
.include "${PORTSDIR}/Mk/bsd.local.mk"
.endif
-.if defined(USE_XORG) || defined(XORG_CAT)
-.include "${PORTSDIR}/Mk/bsd.xorg.mk"
-.endif
-
.if defined(WANT_GSTREAMER) || defined(USE_GSTREAMER) || defined(USE_GSTREAMER1)
.include "${PORTSDIR}/Mk/bsd.gstreamer.mk"
.endif
@@ -1959,13 +1958,6 @@
MAKE_ENV+= LANG=${USE_LOCALE} LC_ALL=${USE_LOCALE}
.endif
-.if defined(USE_XORG)
-# Add explicit X options to avoid problems with false positives in configure
-.if defined(GNU_CONFIGURE)
-CONFIGURE_ARGS+=--x-libraries=${LOCALBASE}/lib --x-includes=${LOCALBASE}/include
-.endif
-.endif
-
# Macro for doing in-place file editing using regexps
REINPLACE_ARGS?= -i.bak
REINPLACE_CMD?= ${SED} ${REINPLACE_ARGS}
Index: Mk/bsd.xorg.mk
===================================================================
--- Mk/bsd.xorg.mk
+++ /dev/null
@@ -1,239 +0,0 @@
-#-*- tab-width: 4; -*-
-# ex:ts=4
-#
-# bsd.xorg.mk - Support for X.Org ports and dependencies
-#
-# Created by: Florent Thoumie <flz@FreeBSD.org>
-#
-# !!! Here be dragons !!! (yeah, here as well...)
-#
-# $FreeBSD$
-#
-
-.if !defined(_POSTMKINCLUDED) && !defined(Xorg_Pre_Include)
-
-Xorg_Include_MAINTAINER= x11@FreeBSD.org
-Xorg_Pre_Include= bsd.xorg.mk
-
-# Some notes:
-#
-# app - Installs applications, no shared libraries.
-# data - Installs only data.
-# doc - no particular notes
-# driver - depends on xorgproto at least
-# font - don't install .pc file
-# lib - various dependencies, install .pc file, needs pathfix
-# proto - install .pc file, needs pathfix, most only needed at build time.
-# xserver - there's only one atm, I guess everything can fit into the port itself
-
-.if defined(XORG_CAT)
-# Default variables, common to all new modular xorg ports.
-.if !defined(USES) || ! ${USES:Mtar*}
-USES+= tar:bzip2
-.endif
-GNU_CONFIGURE= yes
-# for some reason this makes mkfontscale and others fail in the install target
-#INSTALL_TARGET= install-strip
-DIST_SUBDIR= xorg/${XORG_CAT}
-
-MASTER_SITES?= ${MASTER_SITE_XORG}
-MASTER_SITE_SUBDIR?= individual/${XORG_CAT}
-
-# All xorg ports needs pkgconfig to build, but some ports look for pkgconfig and
-# then continues the build.
-USES+= pkgconfig
-
-# All xorg ports needs xorg-macros.
-. if ${PORTNAME} != xorg-macros
-USE_XORG+= xorg-macros
-. endif
-
-. if ${XORG_CAT} == "app"
-# Nothing at the moment
-. endif
-
-. if ${XORG_CAT} == "data"
-# Nothing at the moment.
-. endif
-
-. if ${XORG_CAT} == "driver"
-USE_XORG+= xorg-server xorgproto xi
-CONFIGURE_ENV+= DRIVER_MAN_SUFFIX=4x DRIVER_MAN_DIR='$$(mandir)/man4'
-USES+= libtool
-INSTALL_TARGET= install-strip
-. endif
-
-. if ${XORG_CAT} == "font"
-FONTNAME?= ${PORTNAME:C/.*-//g:S/type/Type/:S/ttf/TTF/:S/speedo/Speedo/}
-CONFIGURE_ARGS+= --with-fontrootdir=${PREFIX}/share/fonts
-CONFIGURE_ENV+= FONTROOTDIR=${PREFIX}/share/fonts
-. if !defined(NOFONT)
-USES+= fonts
-BUILD_DEPENDS+= mkfontscale>=0:x11-fonts/mkfontscale \
- bdftopcf:x11-fonts/bdftopcf
-PLIST_FILES+= "@comment ${FONTSDIR}/fonts.dir" \
- "@comment ${FONTSDIR}/fonts.scale"
-. endif
-. endif
-
-. if ${XORG_CAT} == "lib"
-USES+= pathfix libtool
-USE_LDCONFIG= yes
-CONFIGURE_ARGS+=--enable-malloc0returnsnull
-. endif
-
-. if ${XORG_CAT} == "proto"
-USES+= pathfix
-. endif
-
-. if ${XORG_CAT} == "xserver"
-DISTFILES?= xorg-server-${PORTVERSION}.tar.bz2
-WRKSRC= ${WRKDIR}/xorg-server-${PORTVERSION}
-USES+= pathfix
-CONFIGURE_ARGS+= --with-xkb-path=${LOCALBASE}/share/X11/xkb \
- --with-fontrootdir=${LOCALBASE}/share/fonts
-
-LIB_PC_DEPENDS+= ${LOCALBASE}/libdata/pkgconfig/dri.pc:graphics/mesa-dri
-USE_XORG+= fontutil:build
-. endif
-
-.endif
-
-.endif
-
-.if defined(_POSTMKINCLUDED) && !defined(Xorg_Post_Include)
-
-Xorg_Post_Include= bsd.xorg.mk
-
-# Register all xorg .pc files here.
-# foo_LIB_PC_DEPENDS means it should go to BUILD_DEPENDS *and* RUN_DEPENDS.
-
-XORG_MODULES= dmx \
- fontenc \
- fontutil \
- ice \
- libfs \
- oldx \
- pciaccess \
- pixman \
- sm \
- x11 \
- xau \
- xaw \
- xaw6 \
- xaw7 \
- xbitmaps \
- xcb \
- xcomposite \
- xcursor \
- xdamage \
- xdmcp \
- xevie \
- xext \
- xfixes \
- xfont \
- xfont2 \
- xfontcache \
- xft \
- xi \
- xinerama \
- xkbfile \
- xkbui \
- xmu \
- xmuu \
- xorg-macros \
- xorg-server \
- xorgproto \
- xp \
- xpm \
- xprintapputil \
- xprintutil \
- xrandr \
- xrender \
- xres \
- xscrnsaver \
- xshmfence \
- xt \
- xtrans \
- xtrap \
- xtst \
- xv \
- xvmc \
- xxf86dga \
- xxf86misc \
- xxf86vm
-
-dmx_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/dmx.pc:x11/libdmx
-fontenc_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/fontenc.pc:x11-fonts/libfontenc
-fontutil_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/fontutil.pc:x11-fonts/font-util
-ice_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/ice.pc:x11/libICE
-libfs_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/libfs.pc:x11-fonts/libFS
-oldx_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/oldx.pc:x11/liboldX
-pciaccess_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/pciaccess.pc:devel/libpciaccess
-pixman_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/pixman-1.pc:x11/pixman
-sm_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/sm.pc:x11/libSM
-x11_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/x11.pc:x11/libX11
-xau_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xau.pc:x11/libXau
-xaw_LIB_PC_DEPENDS= ${xaw7_LIB_PC_DEPENDS}
-xaw6_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xaw6.pc:x11-toolkits/libXaw
-xaw7_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xaw7.pc:x11-toolkits/libXaw
-xbitmaps_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xbitmaps.pc:x11/xbitmaps
-xcb_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xcb.pc:x11/libxcb
-xcomposite_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xcomposite.pc:x11/libXcomposite
-xcursor_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xcursor.pc:x11/libXcursor
-xdamage_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xdamage.pc:x11/libXdamage
-xdmcp_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xdmcp.pc:x11/libXdmcp
-xevie_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xevie.pc:x11/libXevie
-xext_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xext.pc:x11/libXext
-xfixes_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xfixes.pc:x11/libXfixes
-xfont_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xfont.pc:x11-fonts/libXfont
-xfont2_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xfont2.pc:x11-fonts/libXfont2
-xfontcache_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xfontcache.pc:x11-fonts/libXfontcache
-xft_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xft.pc:x11-fonts/libXft
-xi_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xi.pc:x11/libXi
-xinerama_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xinerama.pc:x11/libXinerama
-xkbfile_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xkbfile.pc:x11/libxkbfile
-xkbui_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xkbui.pc:x11/libxkbui
-xmu_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xmu.pc:x11-toolkits/libXmu
-xmuu_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xmuu.pc:x11-toolkits/libXmu
-xorg-macros_BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xorg-macros.pc:devel/xorg-macros
-xorg-server_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xorg-server.pc:x11-servers/xorg-server
-xorgproto_BUILD_DEPENDS= xorgproto>=0:x11/xorgproto
-xp_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xp.pc:x11/libXp
-xpm_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xpm.pc:x11/libXpm
-xprintapputil_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xprintapputil.pc:x11/libXprintAppUtil
-xprintutil_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xprintutil.pc:x11/libXprintUtil
-xrandr_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xrandr.pc:x11/libXrandr
-xrender_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xrender.pc:x11/libXrender
-xres_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xres.pc:x11/libXres
-xscrnsaver_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xscrnsaver.pc:x11/libXScrnSaver
-xt_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xt.pc:x11-toolkits/libXt
-xshmfence_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xshmfence.pc:x11/libxshmfence
-xtrans_BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xtrans.pc:x11/xtrans
-xtrap_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xtrap.pc:x11/libXTrap
-xtst_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xtst.pc:x11/libXtst
-xv_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xv.pc:x11/libXv
-xvmc_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xvmc.pc:x11/libXvMC
-xxf86dga_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xxf86dga.pc:x11/libXxf86dga
-xxf86misc_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xxf86misc.pc:x11/libXxf86misc
-xxf86vm_LIB_PC_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xxf86vm.pc:x11/libXxf86vm
-
-.for _module in ${USE_XORG:M*\:both:C/\:.*//g}
-. if ${XORG_MODULES:M${_module}} == ""
-IGNORE= requires unknown xorg module (${_module})
-. endif
-RUN_DEPENDS+= ${${_module}_BUILD_DEPENDS}
-.endfor
-
-.for _module in ${USE_XORG:C/\:.*//g}
-. if ${XORG_MODULES:M${_module}} == ""
-IGNORE= requires unknown xorg module (${_module})
-. endif
-LIB_PC_DEPENDS+= ${${_module}_LIB_PC_DEPENDS}
-BUILD_DEPENDS+= ${${_module}_BUILD_DEPENDS}
-.endfor
-
-RUN_DEPENDS+= ${LIB_PC_DEPENDS}
-BUILD_DEPENDS+= ${LIB_PC_DEPENDS}
-
-.endif
Index: multimedia/gstreamer1-vaapi/Makefile
===================================================================
--- multimedia/gstreamer1-vaapi/Makefile
+++ multimedia/gstreamer1-vaapi/Makefile
@@ -23,7 +23,7 @@
USE_GNOME= glib20
USE_GSTREAMER1= bad gl
USE_GL= gl
-USE_XORG= x11 xrandr xrender xorgproto:build
+USE_XORG= x11 xrandr xrender xorgproto
OPTIONS_DEFINE= DRM WAYLAND
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, May 15, 6:30 PM (14 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33094194
Default Alt Text
D20724.id58917.diff (23 KB)
Attached To
Mode
D20724: Change USE_XORG to USES=xorg and USES=xorg-cat
Attached
Detach File
Event Timeline
Log In to Comment