1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/x11/docker-tray/Makefile
Stefan Eßer bcaf25a8c8 Fix CONFLICTS entries of multiple ports
There have been lots of missing CONFLICTS_INSTALL entries, either
because conflicting ports were added without updating existing ports,
due to name changes of generated packages, due to mis-understanding
the format and semantics of the conflicts entries, or just due to
typoes in package names.

This patch is the result of a comparison of all files contained in
the official packages with each other. This comparison was based on
packages built with default options and may therefore have missed
further conflicts with optionally installed files.

Where possible, version numbers in conflicts entries have been
generalized, some times taking advantage of the fact that a port
cannot conflict with itself (due to logic in bsd.port.mk that
supresses the pattern match result in that case).

A few ports that set the conflicts variables depending on complex
conditions (e.g. port options), have been left unmodified, despite
probably containing outdated package names.

These changes should only affect the installation of locally built
ports, not the package building with poudriere. They should give an
early indication of the install conflict in cases where currently
the pkg command aborts an installation when it detects that an
existing file would be overwritten,

Approved by:	portmgr (implicit)
2022-01-10 16:15:39 +01:00

37 lines
818 B
Makefile

# Created by: Samy Al Bahra <samy@kerneled.org>
PORTNAME= docker
PORTVERSION= 1.5
PORTREVISION= 8
CATEGORIES= x11
MASTER_SITES= https://icculus.org/openbox/2/${PORTNAME}/
PKGNAMESUFFIX= -tray
MAINTAINER= ports@FreeBSD.org
COMMENT= Dockapp with support for GNOME2 and KDE3 tray icons
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
USES= gmake gnome pkgconfig xorg
USE_XORG= x11
USE_GNOME= glib20
CONFLICTS_INSTALL= docker # bin/docker
PLIST_FILES= bin/docker
post-patch:
@${REINPLACE_CMD} -e \
's|^PREFIX=|PREFIX?=| ; \
s|^CFLAGS=|CFLAGS?=| ; \
s|--cflags glib-2.0|--cflags x11 glib-2.0| ; \
s|--libs glib-2.0|--libs x11 glib-2.0| ; \
s|-L$$(XLIBPATH)|| ; \
s|-lX11||' ${WRKSRC}/Makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
.include <bsd.port.mk>