Annotation of pkgsrc/net/synergy/Makefile, revision 1.49

1.49    ! adam        1: # $NetBSD: Makefile,v 1.48 2018/04/29 21:32:00 adam Exp $
1.1       minskim     2: 
1.47      tnn         3: DISTNAME=              synergy-core-2.0.0
                      4: PKGNAME=               ${DISTNAME:S/-core//}
1.49    ! adam        5: PKGREVISION=           2
1.11      tnn         6: CATEGORIES=            net x11
1.33      tnn         7: MASTER_SITES=          ${MASTER_SITE_GITHUB:=symless/}
1.47      tnn         8: GITHUB_PROJECT=                synergy-core
1.31      abs         9: GITHUB_TAG=            v${PKGVERSION_NOREV}-stable
1.1       minskim    10: 
1.11      tnn        11: MAINTAINER=            [email protected]
1.20      obache     12: HOMEPAGE=              http://synergy-project.org/
1.10      heinz      13: COMMENT=               Let a user share a mouse and keyboard among computers
1.13      taca       14: LICENSE=               gnu-gpl-v2
1.10      heinz      15: 
1.42      jperkin    16: USE_LANGUAGES=         c c++11
1.34      tnn        17: # Main configuration is CMake, but subdirectories are GNU configure.
1.26      tnn        18: # We need to set GNU_CONFIGURE=yes for config.{guess,sub} overrides to kick in.
1.45      tnn        19: # We override the do-configure target to prevent pkgsrc from running both
                     20: # configuration mechanisms.
1.19      obache     21: USE_CMAKE=             yes
1.26      tnn        22: GNU_CONFIGURE=         yes
                     23: 
1.47      tnn        24: CONFIG_SUB_OVERRIDE+=  ext/gmock/build-aux/config.sub
                     25: CONFIG_SUB_OVERRIDE+=  ext/gtest/build-aux/config.sub
                     26: CONFIG_GUESS_OVERRIDE+=        ext/gmock/build-aux/config.guess
                     27: CONFIG_GUESS_OVERRIDE+=        ext/gtest/build-aux/config.guess
                     28: 
                     29: CONFIGURE_ENV+=                GIT_COMMIT=0bd448d5
1.6       taca       30: 
1.13      taca       31: EXAMPLES=      MacReadme.txt org.synergy-foss.org.synergyc.plist \
                     32:                org.synergy-foss.org.synergys.plist synergy.conf.example \
                     33:                synergy.conf.example-advanced synergy.conf.example-basic
                     34: 
1.11      tnn        35: SUBST_CLASSES+=                        fix-paths
                     36: SUBST_STAGE.fix-paths=         pre-configure
                     37: SUBST_MESSAGE.fix-paths=       Fixing absolute paths.
1.23      tnn        38: SUBST_FILES.fix-paths=         src/lib/arch/unix/ArchFileUnix.cpp
                     39: SUBST_FILES.fix-paths+=                src/lib/arch/unix/ArchDaemonUnix.h
                     40: SUBST_SED.fix-paths=           -e 's,"/etc,"${PKG_SYSCONFDIR},g'
1.11      tnn        41: 
1.19      obache     42: BUILDLINK_TRANSFORM+=          rm:-march=native
                     43: 
1.45      tnn        44: .PHONY: do-configure
                     45: do-configure: do-configure-cmake
                     46: 
1.11      tnn        47: INSTALLATION_DIRS=     bin ${PKGMANDIR}/man1 share/examples/${PKGBASE}
                     48: 
                     49: do-install:
1.24      tnn        50: .for p in synergyc synergys
                     51:        ${INSTALL_PROGRAM} ${WRKSRC}/bin/${p} ${DESTDIR}${PREFIX}/bin/${p}
                     52:        ${INSTALL_MAN} ${WRKSRC}/doc/${p}.man ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/${p}.1
                     53: .endfor
1.47      tnn        54:        ${INSTALL_PROGRAM} ${WRKSRC}/bin/synergy-core ${DESTDIR}${PREFIX}/bin/synergy-core
1.13      taca       55: .for f in ${EXAMPLES}
                     56:        ${INSTALL_DATA} ${WRKSRC}/doc/${f} ${DESTDIR}${PREFIX}/share/examples/${PKGBASE}
                     57: .endfor
1.6       taca       58: 
1.17      joerg      59: .include "../../mk/compiler.mk"
                     60: .if !empty(PKGSRC_COMPILER:Mclang)
1.42      jperkin    61: _WRAP_EXTRA_ARGS.CXX+= -Wno-switch -Wno-unused \
1.37      tnn        62:                        -Wno-deprecated-register -Wno-tautological-compare \
1.40      tnn        63:                        -Wno-logical-op-parentheses -Wno-null-dereference
1.42      jperkin    64: CWRAPPERS_APPEND.cxx+= -Wno-switch -Wno-unused \
1.37      tnn        65:                        -Wno-deprecated-register -Wno-tautological-compare \
1.40      tnn        66:                        -Wno-logical-op-parentheses -Wno-null-dereference
1.17      joerg      67: .endif
                     68: 
1.28      tnn        69: .include "../../mk/endian.mk"
                     70: .if ${MACHINE_ENDIAN} == "big"
                     71: CFLAGS+=       -DUSYNERGY_BIG_ENDIAN
                     72: .else
                     73: CFLAGS+=       -DUSYNERGY_LITTLE_ENDIAN
                     74: .endif
                     75: 
1.26      tnn        76: # XXX surely there exists a better way to do this
                     77: .if ${OPSYS} != "Linux"
                     78: BUILDLINK_TRANSFORM+=  rm:-ldl
1.19      obache     79: .endif
                     80: 
1.37      tnn        81: .include "../../security/openssl/buildlink3.mk"
1.23      tnn        82: .include "../../www/curl/buildlink3.mk"
1.9       minskim    83: .if !exists(/System/Library/Frameworks/Carbon.framework)
                     84: .include "../../x11/libXext/buildlink3.mk"
                     85: .include "../../x11/libXinerama/buildlink3.mk"
1.19      obache     86: .include "../../x11/libXrandr/buildlink3.mk"
1.9       minskim    87: .include "../../x11/libXt/buildlink3.mk"
                     88: .include "../../x11/libXtst/buildlink3.mk"
                     89: .endif
1.26      tnn        90: .include "../../mk/dlopen.buildlink3.mk"
1.8       joerg      91: .include "../../mk/pthread.buildlink3.mk"
1.1       minskim    92: .include "../../mk/bsd.pkg.mk"

CVSweb <[email protected]>