freebsd-ports/x11-wm/compiz/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

84 lines
2.3 KiB
Makefile

PORTNAME= compiz
PORTVERSION= 0.8.8
PORTREVISION= 15
CATEGORIES= x11-wm
MASTER_SITES= https://BSDforge.com/projects/source/x11-wm/compiz/
MAINTAINER= portmaster@BSDforge.com
COMMENT= Compiz Composite/Window Manager
WWW= http://www.compiz.org/
LICENSE= GPLv2+ LGPL21+ MIT
LICENSE_COMB= multi
LICENSE_FILE_GPLv2+ = ${WRKSRC}/COPYING.GPL
LICENSE_FILE_LGPL21+ = ${WRKSRC}/COPYING.LGPL
LICENSE_FILE_MIT= ${WRKSRC}/COPYING.MIT
LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \
libfreetype.so:print/freetype2 \
libgtop-2.0.so:devel/libgtop \
libpng.so:graphics/png \
libstartup-notification-1.so:x11/startup-notification
RUN_DEPENDS= glxinfo:graphics/mesa-demos \
${RUN_DEPENDS_${ARCH}}
RUN_DEPENDS_amd64= nvidia-settings:x11/nvidia-settings
RUN_DEPENDS_i386= nvidia-settings:x11/nvidia-settings
USES= gettext-runtime gettext-tools gl gmake gnome libtool \
localbase pathfix tar:bzip2 xorg xorg-cat:app
USE_GL= gl glu
USE_GNOME= cairo intltool libxslt
USE_LDCONFIG= yes
USE_XORG= ice sm x11 xcomposite xdamage xext xfixes xinerama \
xorgproto xrandr xrender
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-kde4 \
--disable-kde \
--disable-gconf \
--disable-gnome \
--disable-gnome-keybindings \
--disable-metacity \
--disable-inotify
INSTALL_TARGET= install-strip
SUB_FILES= compiz-manager
DESKTOP_ENTRIES= "Compiz Manager" \
"Wrapper script for starting compiz" \
"" \
"compiz-manager" \
"System;Core;" \
false
OPTIONS_DEFINE= DBUS FUSE GTK2 SVG
OPTIONS_DEFAULT=DBUS GTK2 SVG
OPTIONS_SUB= yes
DBUS_CONFIGURE_ENABLE= dbus
DBUS_BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/dbus-1.pc:devel/dbus
DBUS_RUN_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/dbus-1.pc:devel/dbus
FUSE_CONFIGURE_ENABLE= fuse
FUSE_USES= fuse
GTK2_CONFIGURE_ENABLE= gtk
GTK2_USE= GNOME=glib20,libwnck
SVG_CONFIGURE_ENABLE= librsvg
SVG_USE= GNOME=librsvg2
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDBUS} && ${PORT_OPTIONS:MGTK2}
CONFIGURE_ARGS+= --enable-dbus-glib
BUILD_DEPENDS+= ${LOCALBASE}/libdata/pkgconfig/dbus-glib-1.pc:devel/dbus-glib
RUN_DEPENDS+= ${LOCALBASE}/libdata/pkgconfig/dbus-glib-1.pc:devel/dbus-glib
.else
CONFIGURE_ARGS+= --disable-dbus-glib
.endif
post-install:
${INSTALL_SCRIPT} ${WRKDIR}/compiz-manager ${STAGEDIR}${PREFIX}/bin/compiz-manager
.include <bsd.port.mk>