pkgsrc/net/synergy/Makefile
tnn 276a888a6d synergy: update to 1.12.0
Bug fixes:
    #6748 Copyright year in about dialog isn't updated
    #6730 Updating synergy looses settings
    #6734 Fixed naming of installers for linux and windows
    #6487 Mouse freezes or key repeats on Linux client
    #6663 Limit GUI log Window to prevent it using up too much RAM over time
    #6587 Auto config setting doesn't do anything
    #6620 Unit tests are no longer built
    #6670 Build computers failing with language file error
    #6661 Removed deprecated namespace in gtest/gmock by updating
    #6601 Update man page with missing crypto option
    #4036 Client cursor constrained to old resolution
    #6716 Denial of Service vulnerability on servers with 4GB of ram or less
Enhancements:
    #6739 Add submodules cloning to cmake
    #6736 Command line option for custom TLS Certificate
    #6666 Add doxygen documentation output from pipelines
    #6715 Updated language file from Crowdin
    #6722 Allow servers to be announced by screen name instead of IP
    #6720 Add macqtdeploy to cmake
    #6725 Disable the building of tests with CMake option
Features:
    #6538 System-wide config for all system users
2020-10-22 13:47:34 +00:00

86 lines
2.8 KiB
Makefile

# $NetBSD: Makefile,v 1.65 2020/10/22 13:47:34 tnn Exp $
DISTNAME= synergy-core-1.12.0
PKGNAME= ${DISTNAME:S/-core//}
CATEGORIES= net x11
MASTER_SITES= ${MASTER_SITE_GITHUB:=symless/}
GITHUB_PROJECT= synergy-core
GITHUB_TAG= v${PKGVERSION_NOREV}-stable
DISTFILES= ${DEFAULT_DISTFILES} googletest-1.10.0.tar.gz
SITES.googletest-1.10.0.tar.gz= \
-${MASTER_SITE_GITHUB:=google/}googletest/archive/release-1.10.0.tar.gz
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
USE_CMAKE= yes
CMAKE_ARGS+= -DSYNERGY_BUILD_LEGACY_GUI=OFF
CONFIGURE_ENV+= GIT_COMMIT=cb8064e8
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'
post-extract:
${RM} -rf ${WRKSRC}/ext/googletest
${LN} -s ${WRKDIR}/googletest-* ${WRKSRC}/ext/googletest
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 "../../net/mDNSResponder/buildlink3.mk"
.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"