pkgsrc/net/synergy/Makefile
tnn 853c09e348 synergy: update to 1.10.3
Bug fixes:
6546 Filtered out self assigned ip addresses from being displayed
6541 Fixed connected info text to include without TLS encryption
6527 Config app renders incorrectly on high DPI screens
6526 New TLS/SSL socket handled when no socket
6525 Race condition on disconnecting TLS/SSL socket
6521 Access violation in TLS/SSL socket close
6409 Server freezes when clipboard contains an image
3705 Hotkeys not working on Mac server
Enhancements:
6535 Version URL and added stage check to version check
6529 Cleaner redistributable use in Windows installer
6528 More verbose message for Linux display errors
6524 Minimize config app to system tray
6523 Restore auto hide on startup for config app
6522 Double click Windows tray icon to show and hide
6520 Support for 32-bit Linux for legacy users
6519 Support for Ubuntu 14.04 LTS for legacy users
6390 Support for OpenSSL 1.1.1 for better security
2019-09-04 11:58:54 +00:00

93 lines
3.1 KiB
Makefile

# $NetBSD: Makefile,v 1.57 2019/09/04 11:58:54 tnn Exp $
DISTNAME= synergy-core-1.10.3
PKGNAME= ${DISTNAME:S/-core//}
CATEGORIES= net x11
MASTER_SITES= ${MASTER_SITE_GITHUB:=symless/}
GITHUB_PROJECT= synergy-core
GITHUB_TAG= v${PKGVERSION_NOREV}-stable
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://synergy-project.org/
COMMENT= Let a user share a mouse and keyboard among computers
LICENSE= gnu-gpl-v2
USE_LANGUAGES= c c++11
# Main configuration is CMake, but subdirectories are GNU configure.
# We need to set GNU_CONFIGURE=yes for config.{guess,sub} overrides to kick in.
# We override the do-configure target to prevent pkgsrc from running both
# configuration mechanisms.
USE_CMAKE= yes
GNU_CONFIGURE= yes
CMAKE_ARGS+= -DSYNERGY_BUILD_LEGACY_GUI=OFF
CONFIG_SUB_OVERRIDE+= ext/gmock/build-aux/config.sub
CONFIG_SUB_OVERRIDE+= ext/gtest/build-aux/config.sub
CONFIG_GUESS_OVERRIDE+= ext/gmock/build-aux/config.guess
CONFIG_GUESS_OVERRIDE+= ext/gtest/build-aux/config.guess
CONFIGURE_ENV+= GIT_COMMIT=1b4c0761
EXAMPLES= MacReadme.txt org.synergy-foss.org.synergyc.plist \
org.synergy-foss.org.synergys.plist synergy.conf.example \
synergy.conf.example-advanced synergy.conf.example-basic
SUBST_CLASSES+= fix-paths
SUBST_STAGE.fix-paths= pre-configure
SUBST_MESSAGE.fix-paths= Fixing absolute paths.
SUBST_FILES.fix-paths= src/lib/arch/unix/ArchFileUnix.cpp
SUBST_FILES.fix-paths+= src/lib/arch/unix/ArchDaemonUnix.h
SUBST_SED.fix-paths= -e 's,"/etc,"${PKG_SYSCONFDIR},g'
BUILDLINK_TRANSFORM+= rm:-march=native
.PHONY: do-configure
do-configure: do-configure-cmake
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 share/examples/${PKGBASE}
do-install:
.for p in synergyc synergys
${INSTALL_PROGRAM} ${WRKSRC}/bin/${p} ${DESTDIR}${PREFIX}/bin/${p}
${INSTALL_MAN} ${WRKSRC}/doc/${p}.man ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/${p}.1
.endfor
.for f in ${EXAMPLES}
${INSTALL_DATA} ${WRKSRC}/doc/${f} ${DESTDIR}${PREFIX}/share/examples/${PKGBASE}
.endfor
.include "../../mk/compiler.mk"
.if !empty(PKGSRC_COMPILER:Mclang)
_WRAP_EXTRA_ARGS.CXX+= -Wno-switch -Wno-unused \
-Wno-deprecated-register -Wno-tautological-compare \
-Wno-logical-op-parentheses -Wno-null-dereference
CWRAPPERS_APPEND.cxx+= -Wno-switch -Wno-unused \
-Wno-deprecated-register -Wno-tautological-compare \
-Wno-logical-op-parentheses -Wno-null-dereference
.endif
.include "../../mk/endian.mk"
.if ${MACHINE_ENDIAN} == "big"
CFLAGS+= -DUSYNERGY_BIG_ENDIAN
.else
CFLAGS+= -DUSYNERGY_LITTLE_ENDIAN
.endif
# XXX surely there exists a better way to do this
.if ${OPSYS} != "Linux"
BUILDLINK_TRANSFORM+= rm:-ldl
.endif
LDFLAGS.SunOS+= -lsocket -lnsl
.include "../../security/openssl/buildlink3.mk"
.include "../../www/curl/buildlink3.mk"
.if !exists(/System/Library/Frameworks/Carbon.framework)
.include "../../x11/libXext/buildlink3.mk"
.include "../../x11/libXinerama/buildlink3.mk"
.include "../../x11/libXrandr/buildlink3.mk"
.include "../../x11/libXt/buildlink3.mk"
.include "../../x11/libXtst/buildlink3.mk"
.endif
.include "../../mk/dlopen.buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"