9d1b627466
Change the handling of xorg dependencies to use the USES framework instead of bsd.xorg.mk. bsd.xorg.mk is split into two parts: * USES=xorg for ports depending on xorg ports with USE_XORG * USES=xorg-cat for xorg ports with XORG_CAT USES=xorg is fairly straight forward. The components needed are specified with USE_XORG, and USES=xorg is needed to pull in this part of the framework. USES=xorg-cat requires that the category, previously specified with XORG_CAT, now be passed as an argument to xorg-cat, like this USES=xorg-cat:category. Not specifying a category is an error. Further, it is also possible to specify which build system to use. The default if nothing is specified is autoconf, but meson will also be supported. This is added with a second argument: USES=xorg-cat:category[,buildsystem]. Detailed changelog: * Add support in Uses/xorg-cat.mk to specify build system. Previously, only autoconf was supported for xorg ports, but with this change, it's possible to use meson instead. Autoconf is still the defaultx, if nothing else is specified. The meson support is still disabled, and requires more testing. * Add support in Uses/xorg-cat.mk to pull sources from freedesktop.org gitlab. When specifying USE_GITLAB in a port using xorg-cat, then various GL_* variables will be set up automatically, as well as needed changes to the build. * Switch x11-drivers/xf86-video-intel to use the USE_GITLAB framework. * While touching xf86-video-intel, switch to USES=xorg xorg-cat:driver, and pet portlint. * Add compat shims and warnings to bsd.port.mk, which will handle the old style ports Makefiles. * Change Uses/gl.mk and Uses/motif.mk to use this new framework. * Change Uses/autoreconf.mk to check and add dependencies later. This is needed because xorg-cat uses autoreconf, and without this fix dependencies were not added properly. * Be stricter about checking for arguments in USE_XORG, previously, :build and :run were accepted, but not supported. Only the default or :both supported. * Change multimedia/gstreamer1-vaapi to handle the stricter argument checking in USE_XORG, and add USES=xorg * change x11/xscope to get distinfo from xorg-cat, instead of rolling it's own, and add USES=xorg-cat PR: 238988 (exp-run) Reviewed by: antoine, tcberner, tijl, mat, tobik Approved by: portmgr (antoine) Obtained from: FreeBSD Graphics Team development repo https://github.com/FreeBSDDesktop/freebsd-ports/tree/feature/usesxorg Sponsored by: B3 Init (zeising) Differential Revision: https://reviews.freebsd.org/D20724
93 lines
3.9 KiB
Makefile
93 lines
3.9 KiB
Makefile
# $FreeBSD$
|
|
#
|
|
# Run autoreconf in AUTORECONF_WRKSRC to update configure, Makefile.in and
|
|
# other build scripts.
|
|
#
|
|
# Autoreconf runs the following commands provided by devel/autoconf and
|
|
# devel/automake. Each command applies to a single configure.ac or
|
|
# configure.in (old name). If configure.ac defines subdirectories with their
|
|
# own configure.ac (using AC_CONFIG_SUBDIRS), autoreconf will recursively
|
|
# update those as well.
|
|
#
|
|
# aclocal Looks up definitions of m4 macros used in configure.ac that are
|
|
# not provided by autoconf and copies them from their source *.m4
|
|
# file to aclocal.m4. Local *.m4 files included with the source
|
|
# code take precedence over systemwide *.m4 files.
|
|
# autoconf Generates configure from configure.ac using macro definitions
|
|
# provided by autoconf itself and aclocal.m4.
|
|
# autoheader Generates a configuration header (typically config.h.in) from
|
|
# configure.ac and the macro definitions in aclocal.m4. Run by
|
|
# autoreconf if configure.ac (or one of the macros it uses)
|
|
# contains AC_CONFIG_HEADERS, AC_CONFIG_HEADER (undocumented), or
|
|
# AM_CONFIG_HEADER (obsolete).
|
|
# automake Generates Makefile.in from Makefile.am for each Makefile
|
|
# listed in configure.ac (using AC_CONFIG_FILES). Also updates
|
|
# build scripts like compile, depcomp, install-sh, ylwrap,...
|
|
# Run by autoreconf if configure.ac (or one of the macros it
|
|
# uses) contains AM_INIT_AUTOMAKE.
|
|
#
|
|
# Autoreconf may also run these additional commands provided by other ports.
|
|
# A port needs to have a build depdendency on these ports when that's the case.
|
|
#
|
|
# autopoint Provided by devel/gettext-tools. Updates gettext related *.m4
|
|
# files included with the source code and build scripts such as
|
|
# config.rpath. Run by autoreconf if configure.ac (or one of the
|
|
# macros it uses) contains AM_GNU_GETTEXT. A build dependency on
|
|
# devel/gettext-tools can be added with USES+=gettext-tools.
|
|
# Note that autoreconf runs autopoint even if a port has an NLS
|
|
# option and the option is disabled. The build dependency on
|
|
# gettext-tools is not optional. If the run dependency on
|
|
# gettext is optional this can be specified with
|
|
# NLS_USES=gettext-runtime.
|
|
# libtoolize Provided by devel/libtool. Updates libtool related *.m4 files
|
|
# included with the source code and build scripts such as
|
|
# ltmain.sh. Run by autoreconf if configure.ac (or one of the
|
|
# macros it uses) contains AC_PROG_LIBTOOL or LT_INIT. A build
|
|
# dependency on devel/libtool is added implicitly when USES
|
|
# contains both autoreconf and libtool.
|
|
#
|
|
# Feature: autoreconf
|
|
# Usage: USES=autoreconf or USES=autoreconf:args
|
|
# Valid args: build Don't run autoreconf, only add build dependencies
|
|
#
|
|
# MAINTAINER: portmgr@FreeBSD.org
|
|
|
|
.if !defined(_INCLUDE_USES_AUTORECONF_MK)
|
|
_INCLUDE_USES_AUTORECONF_MK= yes
|
|
_USES_POST+= autoreconf
|
|
|
|
AUTORECONF?= ${LOCALBASE}/bin/autoreconf
|
|
AUTORECONF_WRKSRC?= ${WRKSRC}
|
|
|
|
.endif
|
|
|
|
.if defined(_POSTMKINCLUDED) && !defined(_INCLUDE_USES_AUTORECONF_POST_MK)
|
|
_INCLUDE_USES_AUTORECONF_POST_MK= yes
|
|
|
|
BUILD_DEPENDS+= autoconf>=2.69:devel/autoconf \
|
|
automake>=1.16.1:devel/automake
|
|
|
|
.if defined(libtool_ARGS) && empty(libtool_ARGS:Mbuild)
|
|
BUILD_DEPENDS+= libtoolize:devel/libtool
|
|
.endif
|
|
|
|
.if empty(autoreconf_ARGS)
|
|
_USES_configure+= 470:do-autoreconf
|
|
do-autoreconf:
|
|
.for f in AUTHORS ChangeLog INSTALL NEWS README
|
|
# Don't modify time stamps if the files already exist
|
|
@test -e ${AUTORECONF_WRKSRC}/${f} || ${TOUCH} ${AUTORECONF_WRKSRC}/${f}
|
|
.endfor
|
|
.if defined(_USE_GNOME) && ${_USE_GNOME:Mintltool}
|
|
@(cd ${AUTORECONF_WRKSRC} && \
|
|
if test -f configure.ac; then configure=configure.ac; \
|
|
else configure=configure.in; fi && \
|
|
if ${EGREP} -q '^(AC|IT)_PROG_INTLTOOL' $${configure}; \
|
|
then ${LOCALBASE}/bin/intltoolize -f -c; fi)
|
|
.endif
|
|
@(cd ${AUTORECONF_WRKSRC} && ${AUTORECONF} -f -i)
|
|
.elif ! ${autoreconf_ARGS:Mbuild}
|
|
IGNORE= Incorrect 'USES+=autoreconf:${autoreconf_ARGS}' expecting 'USES+=autoreconf[:build]'
|
|
.endif
|
|
|
|
.endif
|