LICENSE = "MIT" #MY_FILES = LIC_FILES_CHKSUM = "file://COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" inherit systemd SYSTEMD_AUTO_ENABLE:${PN} = "enable" SYSTEMD_SERVICE:${PN} = "rt.service" SRC_URI:append = "file://rt-setup \ file://rt.service \ file://COPYING.MIT \ " # python3targetconfig: configuration for the target machine is accessible (such as correct installation directories) # autotools-brokensep: autotools build process (without support for building outside of ${S}) # pkgconfig: standard way to get header and library information by using pkg-config #inherit autotools-brokensep pkgconfig python3native # Modify these as desired PV = "0.0" #SRCREV = "bcbf35634ccf49ff39261b291f01ca0c4a5fddd5" #S = "${WORKDIR}/git" # LinuxCNC build separation is broken, so we need to build in src #B = "${S}/src" S = '${UNPACKDIR}' TARGET_CC_ARCH += " ${LDFLAGS}" ####################################################### # autotools fixes ####################################################### #AUTOTOOLS_SCRIPT_PATH = "${B}" # We need to replace autotools_preconfigure with our own, because it deletes ${B} otherwise # since S != B in our case (but B is still *inside* S) #DEPENDS += " tk8 tcl8 tcl8-native tk8-native freetype" #RDEPENDS:${PN} += " rt-tests " #PREFERRED_VERSION:tk8 = "8.6.%" RDEPENDS:${PN} += " bash " #inherit autotools FILES:${PN} += " /usr/bin/rt-setup \ ${systemd_unitdir}/system/rt.service \ " FILES:${PN}-dev = " " FILES:${PN}-dbg = " " do_install () { install -d ${D}/usr/bin #install -d ${D}${sysconfdir}/init.d install -d ${D}${systemd_unitdir}/system install -m 0755 ${UNPACKDIR}/rt.service ${D}${systemd_unitdir}/system/rt.service install -m 0755 ${UNPACKDIR}/rt-setup ${D}/usr/bin/rt-setup #update-rc.d -r ${D} rt-setup start 03 S . }