1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-28 10:08:24 +00:00
freebsd-ports/x11/slim/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= slim
PORTVERSION= 1.3.6
PORTREVISION= 22
CATEGORIES= x11
MASTER_SITES= ftp://ftp.berlios.de/pub/slim/ \
SF/slim.berlios
MAINTAINER= jsm@FreeBSD.org
COMMENT= Graphical login manager for X11, derived from Login.app
WWW= https://sourceforge.net/projects/slim.berlios/
LICENSE= GPLv2
BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/pthread-stubs.pc:devel/libpthread-stubs
LIB_DEPENDS= libpng.so:graphics/png \
libfreetype.so:print/freetype2 \
libfontconfig.so:x11-fonts/fontconfig
RUN_DEPENDS= dbus-daemon:devel/dbus
USES= cmake compiler:c++11-lang cpe jpeg pkgconfig xorg
CPE_VENDOR= berlios
USE_XORG= ice sm x11 xau xcb xdmcp xext xft xmu xorg-server xrandr \
xrender xt
USE_RC_SUBR= slim
USE_LDCONFIG= yes
SUB_FILES= pkg-message
CMAKE_ARGS= -DUSE_CONSOLEKIT=yes \
-DBUILD_SLIMLOCK=no \
-DBUILD_SHARED_LIBS=yes
OPTIONS_DEFINE= XDEFAULT PAM UTF8 CONSOLEKIT
OPTIONS_DEFAULT= XDEFAULT PAM UTF8 CONSOLEKIT
OPTIONS_SUB= yes
XDEFAULT_DESC=Allow to set a default xsession in .xinitrc
UTF8_DESC= Support UTF-8 characters
CONSOLEKIT_DESC=Enable support for consolekit
PLIST_SUB+= VERSION="${PORTVERSION}"
PAM_CMAKE_ON= -DUSE_PAM=yes
PAM_CMAKE_OFF= -DUSE_PAM=no
# patch taken from https://github.com/iwamatsu/slim/pull/1
XDEFAULT_EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-xdefault
# patch taken from slim-unicode in Arch User Repository
UTF8_EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-utf8
CONSOLEKIT_CMAKE_ON= -DUSE_CONSOLEKIT=yes
CONSOLEKIT_LIB_DEPENDS= libck-connector.so:sysutils/consolekit2 \
libdbus-1.so:devel/dbus
CONSOLEKIT_CMAKE_OFF= -DUSE_CONSOLEKIT=no
post-patch:
@${CP} ${WRKSRC}/slim.conf ${WRKSRC}/slim.conf.sample
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
${WRKSRC}/slim.conf.sample
@${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},' \
${WRKSRC}/slim.1
post-install-PAM-on:
${INSTALL_DATA} ${FILESDIR}/pam.conf ${STAGEDIR}${PREFIX}/etc/pam.d/slim.sample
.include <bsd.port.mk>