freebsd-ports/x11-wm/compton/Makefile
Stefan Eßer b7f05445c0 Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.

Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.

There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.

This commit implements such a proposal and moves one of the WWW: entries
of each pkg-descr file into the respective port's Makefile. A heuristic
attempts to identify the most relevant URL in case there is more than
one WWW: entry in some pkg-descr file. URLs that are not moved into the
Makefile are prefixed with "See also:" instead of "WWW:" in the pkg-descr
files in order to preserve them.

There are 1256 ports that had no WWW: entries in pkg-descr files. These
ports will not be touched in this commit.

The portlint port has been adjusted to expect a WWW entry in each port
Makefile, and to flag any remaining "WWW:" lines in pkg-descr files as
deprecated.

Approved by:		portmgr (tcberner)
2022-09-07 23:10:59 +02:00

68 lines
1.9 KiB
Makefile

PORTNAME= compton
PORTVERSION= 20160907
PORTREVISION= 6
CATEGORIES= x11-wm
MAINTAINER= femc7488@gmail.com
COMMENT= Feature-rich compositing window manager for X11
WWW= https://github.com/chjj/compton
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= xprop:x11/xprop \
xwininfo:x11/xwininfo
USE_GITHUB= yes
GH_ACCOUNT= chjj
GH_TAGNAME= b7f43ee
USES= gmake pkgconfig xorg
USE_XORG= x11 xcomposite xdamage xext xfixes xrandr xrender
MAKE_ARGS= COMPTON_VERSION=git-${PORTVERSION}-${GH_TAGNAME} \
XDGDIR=${LOCALBASE}/etc/xdg
ALL_TARGET= ${PORTNAME}
OPTIONS_DEFINE= CONFIG PCRE DRM OPENGL DBUS XINERAMA DOCS
OPTIONS_DEFAULT= CONFIG PCRE DRM OPENGL DBUS XINERAMA
CONFIG_DESC= Configuration file parsing support
PCRE_DESC= Blacklist support (via libpcre)
DRM_DESC= DRM VSync method support
OPENGL_DESC= GLX backend, OpenGL VSync method, etc.
DOCS_DESC= Build manpages (requires AsciiDoc/DocBook)
CONFIG_LIB_DEPENDS= libconfig.so:devel/libconfig
CONFIG_MAKE_ARGS_OFF= NO_LIBCONFIG=yes
PCRE_LIB_DEPENDS= libpcre.so:devel/pcre
PCRE_MAKE_ARGS_OFF= NO_REGEX_PCRE=yes
DRM_LIB_DEPENDS= libdrm.so:graphics/libdrm
DRM_MAKE_ARGS_OFF= NO_VSYNC_DRM=yes
OPENGL_USES= gl
OPENGL_USE= GL=gl
OPENGL_MAKE_ARGS_OFF= NO_VSYNC_OPENGL=yes
DBUS_LIB_DEPENDS= libdbus-1.so:devel/dbus
DBUS_MAKE_ARGS_OFF= NO_DBUS=yes
XINERAMA_USE= XORG=xinerama
XINERAMA_MAKE_ARGS_OFF= NO_XINERAMA=yes
DOCS_BUILD_DEPENDS= a2x:textproc/asciidoc \
xsltproc:textproc/libxslt \
docbook-xml>0:textproc/docbook-xml \
${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl:textproc/docbook-xsl
DOCS_MAKE_ARGS= DOCDIR=${DOCSDIR} MANDIR=${MANPREFIX}/man/man1
DOCS_ALL_TARGET= docs
DOCS_PLIST_FILES= man/man1/compton.1.gz man/man1/compton-trans.1.gz
DOCS_PORTDOCS= README.md cdbus-driver.sh
post-patch:
@${REINPLACE_CMD} -e '/config_system_dir/s|/etc|${LOCALBASE}&|' \
${WRKSRC}/src/compton.c
.include <bsd.port.mk>