3d25a14ca9
pkgsrc change: - Add LICENSE. - Add more example files. Fixed Bugs of 1.3.7: #1668 Scroll lock has opposite behavior 1.3.x 0 #2952 Visual C++ 2008 Redistributable unpacks to root of hard drive 1.3.6 0 #2939 The hook DLL (synrgyhk.dll) is not compiled to the bin dir 1.3.6 0 #2938 Argument --help does not work 1.3.6 0 #2834 Fix buildbot console (it has nothing on it) 1.3.6 0 #691 fix compilation errors for gcc 4.3 1.2.6 0 #1187 Compile broken for modern C++ 1.3.1 0 #683 Only cross screens on during special keypress 1.3.0 0 #128 In Linux focused window loses focus when cursor moved to another screen (big problem for 1B.o3x.3ee) 12 #1663 "hos" != "host" 1.3.1 1 #610 Client side crash - Linux x64 1.3.5 2
61 lines
2.2 KiB
Makefile
61 lines
2.2 KiB
Makefile
# $NetBSD: Makefile,v 1.13 2011/06/23 03:16:50 taca Exp $
|
|
#
|
|
|
|
DISTNAME= synergy-1.3.7-Source
|
|
PKGNAME= ${DISTNAME:S/-Source//}
|
|
CATEGORIES= net x11
|
|
MASTER_SITES= http://synergy.googlecode.com/files/
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://synergy-foss.org/
|
|
COMMENT= Let a user share a mouse and keyboard among computers
|
|
LICENSE= gnu-gpl-v2
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
USE_LANGUAGES= c c++
|
|
|
|
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
|
|
|
|
# Below rpath fix is copypasted from graphics/vtk.
|
|
CMAKE_OPTS+= -DCMAKE_INSTALL_RPATH:STRING=${PREFIX}/lib:${X11BASE}/lib${LIBABISUFFIX:Q} \
|
|
CMAKE_OPTS+= -DCMAKE_SKIP_BUILD_RPATH:BOOL=ON \
|
|
CMAKE_OPTS+= -DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON \
|
|
CMAKE_OPTS+= -DCMAKE_INSTALL_RPATH_USE_LINK_PATH:BOOL=ON
|
|
|
|
SUBST_CLASSES+= fix-paths
|
|
SUBST_STAGE.fix-paths= pre-configure
|
|
SUBST_MESSAGE.fix-paths= Fixing absolute paths.
|
|
SUBST_FILES.fix-paths= lib/arch/CArchFileUnix.cpp
|
|
SUBST_SED.fix-paths= -e 's,"/etc","${PKG_SYSCONFDIR}",g'
|
|
|
|
do-configure:
|
|
cd ${WRKSRC} && ${PREFIX}/bin/cmake ${CMAKE_OPTS} .
|
|
|
|
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 share/examples/${PKGBASE}
|
|
|
|
post-build:
|
|
${CP} ${WRKSRC}/doc/synergyc.man ${WRKSRC}/doc/synergyc.1
|
|
${CP} ${WRKSRC}/doc/synergys.man ${WRKSRC}/doc/synergys.1
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/bin/synergyc ${DESTDIR}${PREFIX}/bin
|
|
${INSTALL_PROGRAM} ${WRKSRC}/bin/synergys ${DESTDIR}${PREFIX}/bin
|
|
${INSTALL_MAN} ${WRKSRC}/doc/synergyc.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
|
|
${INSTALL_MAN} ${WRKSRC}/doc/synergys.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
|
|
.for f in ${EXAMPLES}
|
|
${INSTALL_DATA} ${WRKSRC}/doc/${f} ${DESTDIR}${PREFIX}/share/examples/${PKGBASE}
|
|
.endfor
|
|
|
|
.include "../../devel/cmake/buildlink3.mk"
|
|
.if !exists(/System/Library/Frameworks/Carbon.framework)
|
|
.include "../../x11/libXext/buildlink3.mk"
|
|
.include "../../x11/libXinerama/buildlink3.mk"
|
|
.include "../../x11/libXt/buildlink3.mk"
|
|
.include "../../x11/libXtst/buildlink3.mk"
|
|
.include "../../x11/xextproto/buildlink3.mk"
|
|
.endif
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|