SUMMARY = "OSCam: Open Source Conditional Access Module"
HOMEPAGE = "http://www.streamboard.tv/oscam/"

LICENSE = "GPL-3.0-only"
LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"

DEPENDS = "libusb1 openssl pcsc-lite"

SRCREV = "190d6dee96ca70f8b614932b1498332b1504632b"
SRC_URI = "git://repo.or.cz/oscam.git;protocol=https;nobranch=1"


inherit cmake

EXTRA_OECMAKE = "-DDEFAULT_CS_CONFDIR=${sysconfdir} \
                 -DCMAKE_BUILD_TYPE=Debug \
                 -DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
                "

do_configure:append() {
    sed -i -e '1 s|${TOPDIR}|<TOPDIR>|g' ${B}/config.c
}
