Files
ports/sysutils/barrier/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

61 lines
1.7 KiB
Makefile

PORTNAME= barrier
DISTVERSIONPREFIX= v
DISTVERSION= 2.3.3
CATEGORIES= sysutils
MAINTAINER= ports@FreeBSD.org
COMMENT= Mouse and keyboard sharing utility
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= cmake compiler:c++14-lang cpe localbase:ldflags pkgconfig ssl xorg
USE_GITHUB= yes
GH_ACCOUNT= debauchee
USE_XORG= ice sm x11 xext xi xinerama xrandr xtst
CPE_VENDOR= barrier_project
CMAKE_ARGS= -DBARRIER_BUILD_DATE=00000000
CONFLICTS_INSTALL= clusterit # bin/barrier
MAKE_JOBS_UNSAFE= yes
OPTIONS_DEFINE= EXAMPLES GUI
OPTIONS_DEFAULT= GUI
OPTIONS_SUB= yes
GUI_DESC= Build configuration utility (requires Qt 5)
GUI_LIB_DEPENDS= libcurl.so:ftp/curl \
libdns_sd.so:net/avahi-libdns
GUI_USES= qt:5
GUI_USE= QT=core,gui,network,widgets,buildtools_build,qmake_build
GUI_CMAKE_BOOL= BARRIER_BUILD_GUI
post-patch:
@${REINPLACE_CMD} -e 's|"/etc/barrier/|"${ETCDIR}/|' \
${WRKSRC}/src/lib/arch/unix/ArchDaemonUnix.h
@${REINPLACE_CMD} -e 's|/etc/barrier.conf|${ETCDIR}/barrier.conf|' \
${WRKSRC}/doc/barriers.1
post-install:
cd ${INSTALL_WRKSRC}/bin && \
${INSTALL_PROGRAM} barrierc barriers ${STAGEDIR}${PREFIX}/bin
cd ${WRKSRC}/doc && \
${INSTALL_MAN} barrierc.1 barriers.1 ${STAGEDIR}${PREFIX}/share/man/man1
@${MKDIR} ${STAGEDIR}${ETCDIR}
${INSTALL_DATA} ${WRKSRC}/doc/barrier.conf.example-basic \
${STAGEDIR}${ETCDIR}/barrier.conf.sample
post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
cd ${WRKSRC}/doc && \
${INSTALL_DATA} barrier.conf.example barrier.conf.example-advanced \
barrier.conf.example-basic ${STAGEDIR}${EXAMPLESDIR}
post-install-GUI-on:
${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/bin/barrier ${STAGEDIR}${PREFIX}/bin
.include <bsd.port.mk>