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

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

CVSweb <[email protected]>