aboutsummaryrefslogtreecommitdiff
path: root/recipes/openscada/openscada_svn.bb
blob: 99a0169847887d87315ebce5af242b92ef8158ab (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Copyright (C) 2009 Khem Raj <raj.khem@gmail.com>
# Released under the MIT license (see COPYING.MIT for the terms)

DESCRIPTION = "OpenSCADA system is open implementation SCADA (Supervisory controll and data acquisition) systems"
HOMEPAGE = "http://oscada.org.ua/"
LICENSE = "GPL"
SECTION = "Applications"
DEPENDS = "gd mysql expat sqlite3 lmsensors-apps fftw qt4-x11-free"
#SRC_URI = "ftp://ftp.oscada.org/OpenSCADA/0.6.4/openscada-0.6.4.tar.gz"
SRC_URI = "svn://oscada.org.ua/trunk;module=OpenSCADA;rev=;proto=svn \
           file://rcc-moc.patch \
          "

PV = "0.6.4+svnr${SRCPV}"

S = "${WORKDIR}/OpenSCADA"

inherit autotools

EXTRA_OECONF = " \
      --includedir=${STAGING_INCDIR} \
      --oldincludedir=${STAGING_INCDIR} \
      --disable-SQLite \
      --disable-MySQL \
      --disable-FireBird \
      --without-sqlite3 \
      --without-firebird \
      --disable-SoundCard \
      --disable-Vision \
      --disable-WebVision \
      --disable-shared \
"

#do_configure_prepend() {
#  autoconf
#}

#do_configure() {
#  oe_runconf
#}


do_install_prepend () {
  mkdir -p -m 755 ${D}/etc
  cp ${S}/data/oscada.xml ${D}/etc
  mkdir -p -m 755 ${D}/var/spool/openscada/icons
  cp ${S}/data/icons/* ${D}/var/spool/openscada/icons
  install -p -m 777 -d ${D}/var/spool/openscada/ARCHIVES/{MESS,VAL}
}