Changeset View
Changeset View
Standalone View
Standalone View
Mk/Uses/xorg-cat.mk
| # xorg ports categories and other things needed to build xorg ports. | # xorg ports categories and other things needed to build xorg ports. | ||||
| # This is intended only for ports of xorg and freedesktop.org applications. | # This is intended only for ports of xorg and freedesktop.org applications. | ||||
| # | # | ||||
| # Use USES=xorg and USE_XORG to depend on various xorg components. | # Use USES=xorg and USE_XORG to depend on various xorg components. | ||||
| # | # | ||||
| # Feature: xorg-cat | # Feature: xorg-cat | ||||
| # Usage: USES=xorg-cat:category[,buildsystem] | # Usage: USES=xorg-cat:category[,buildsystem] | ||||
| # | # | ||||
| # category is one of: | # category is one of: | ||||
| # * app Installs applications, no shared libraries. | # * app Installs applications, no shared libraries. | ||||
| # * data Installs only data. | # * data Installs only data. | ||||
| # * 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 | |||||
| # build time. | |||||
| # * util no particular notes | # * util no particular notes | ||||
| # | # | ||||
| # 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_TAGNAME, it is possible to pull code straight | # By defining USE_GITLAB and GL_TAGNAME, 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 | _XORG_CATEGORIES= app data doc driver font lib 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 106 Lines • ▼ Show 20 Lines | |||||
| . if ${_XORG_BUILDSYS} == meson | . if ${_XORG_BUILDSYS} == meson | ||||
| # put meson stuff here | # put meson stuff here | ||||
| . else | . else | ||||
| 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 | |||||
| .include "${USESDIR}/pathfix.mk" | |||||
| . 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 | ||||