aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/synergy/synergy_git.bb
blob: 1c55a8a0fe048e9fee4eddea3383ec3a9aa32ff0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
SUMMARY = "Synergy - control multiple computers with one keyboard and mouse"
HOMEPAGE = "http://synergy-project.org"
LIC_FILES_CHKSUM = "file://LICENSE;md5=0f366945b209c5523e39889f636af00a"
LICENSE = "GPL-2.0"
SECTION = "x11/utils"

DEPENDS = "virtual/libx11 libxtst libxinerama curl openssl"
do_unpack_extra[depends] = "unzip-native:do_populate_sysroot"

# depends on virtual/libx11
REQUIRED_DISTRO_FEATURES = "x11"

SRC_URI = "git://github.com/synergy/synergy.git;protocol=http"

# Version 1.7.4-rc8
SRCREV ?= "588fb4b805dd452556d05dbc03fe29ea5b4e43c0"
PV = "1.7.3+1.7.4-rc8+${SRCPV}"

S = "${WORKDIR}/git"

inherit cmake distro_features_check

do_unpack_extra() {
    cd ${S}/ext
    for file in *.zip; do
        fname="${file##*/}"
        unzip $file -d ${fname%.*}
    done
}
addtask unpack_extra after do_unpack before do_patch

do_install() {
    install -d ${D}/usr/bin
    install -m 0755 ${S}/bin/synergy* ${D}/usr/bin/
}