Changeset View
Changeset View
Standalone View
Standalone View
Mk/Uses/xorg-cat.mk
Show All 11 Lines | |||||
# * doc no particular notes | # * doc no particular notes | ||||
# * driver depends on xorgproto at least | # * driver depends on xorgproto at least | ||||
# * font don't install .pc file | # * font don't install .pc file | ||||
# * lib various dependencies, install .pc file, needs | # * lib various dependencies, install .pc file, needs | ||||
# pathfix | # pathfix | ||||
# * proto install .pc file, needs pathfix, most only needed at | # * proto install .pc file, needs pathfix, most only needed at | ||||
# build time. | # build time. | ||||
# * util no particular notes | # * util no particular notes | ||||
# * xserver xorg x servers | |||||
# | # | ||||
# These categories has to match upstream categories. Don't invent | # These categories has to match upstream categories. Don't invent | ||||
# your own. | # your own. | ||||
# | # | ||||
# builsystem is one of: | # builsystem is one of: | ||||
# * autotools (default) | # * autotools (default) | ||||
# * meson (experimental) | # * meson (experimental) | ||||
# | # | ||||
# | # | ||||
# By defining USE_GITLAB and GL_COMMIT, it is possible to pull code straight | # By defining USE_GITLAB and GL_COMMIT, it is possible to pull code straight | ||||
# from the freedesktop.org gitlab, instead of official release tarballs. | # from the freedesktop.org gitlab, instead of official release tarballs. | ||||
# | # | ||||
#.MAINTAINER: x11@FreeBSD.org | #.MAINTAINER: x11@FreeBSD.org | ||||
.if !defined(_INCLUDE_USES_XORG_CAT_MK) | .if !defined(_INCLUDE_USES_XORG_CAT_MK) | ||||
_INCLUDE_USES_XORG_CAT_MK=yes | _INCLUDE_USES_XORG_CAT_MK=yes | ||||
_XORG_CATEGORIES= app data doc driver font lib proto util xserver | _XORG_CATEGORIES= app data doc driver font lib proto util | ||||
_XORG_BUILDSYSTEMS= autotools meson | _XORG_BUILDSYSTEMS= autotools meson | ||||
_XORG_CAT= # empty | _XORG_CAT= # empty | ||||
_XORG_BUILDSYS= # empty | _XORG_BUILDSYS= # empty | ||||
. if empty(xorg-cat_ARGS) | . if empty(xorg-cat_ARGS) | ||||
IGNORE= no arguments specified to xorg-cat | IGNORE= no arguments specified to xorg-cat | ||||
. endif | . endif | ||||
▲ Show 20 Lines • Show All 110 Lines • ▼ Show 20 Lines | |||||
libtool_ARGS?= # empty | libtool_ARGS?= # empty | ||||
.include "${USESDIR}/libtool.mk" | .include "${USESDIR}/libtool.mk" | ||||
USE_LDCONFIG= yes | USE_LDCONFIG= yes | ||||
CONFIGURE_ARGS+=--enable-malloc0returnsnull | CONFIGURE_ARGS+=--enable-malloc0returnsnull | ||||
. endif | . endif | ||||
. elif ${_XORG_CAT} == proto | . elif ${_XORG_CAT} == proto | ||||
.include "${USESDIR}/pathfix.mk" | .include "${USESDIR}/pathfix.mk" | ||||
. elif ${_XORG_CAT} == xserver | |||||
DISTNAME?= xorg-server-${PORTVERSION} | |||||
CFLAGS+= -Werror=uninitialized | |||||
.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 | |||||
libtool_ARGS?= # empty | |||||
.include "${USESDIR}/libtool.mk" | |||||
. endif | |||||
LIB_PC_DEPENDS+= ${LOCALBASE}/libdata/pkgconfig/dri.pc:graphics/mesa-dri | |||||
USE_XORG+= fontutil | |||||
. endif # ${_XORG_CAT} == <category> | . endif # ${_XORG_CAT} == <category> | ||||
# We only need to include xorg.mk if we want USE_XORG modules | # We only need to include xorg.mk if we want USE_XORG modules | ||||
# USES+=xorg does not provide any functionality, it just silences an error | # USES+=xorg does not provide any functionality, it just silences an error | ||||
# message about USES=xorg not being set | # message about USES=xorg not being set | ||||
. if defined(USE_XORG) && !empty(USE_XORG) | . if defined(USE_XORG) && !empty(USE_XORG) | ||||
USES+= xorg | USES+= xorg | ||||
.include "${USESDIR}/xorg.mk" | .include "${USESDIR}/xorg.mk" | ||||
. endif | . endif | ||||
.endif | .endif |