summaryrefslogtreecommitdiff
path: root/strata/tizen
diff options
context:
space:
mode:
Diffstat (limited to 'strata/tizen')
-rw-r--r--strata/tizen/dlog.morph3
-rw-r--r--strata/tizen/iniparser.morph26
-rw-r--r--strata/tizen/libslp-db-util.morph7
-rw-r--r--strata/tizen/libslp-memo.morph3
-rw-r--r--strata/tizen/minizip.morph9
-rw-r--r--strata/tizen/pkgmgr-info.morph13
-rw-r--r--strata/tizen/pkgmgr.morph3
-rw-r--r--strata/tizen/tizen-platform-config.morph6
-rw-r--r--strata/tizen/tizen-platform-wrapper.morph3
-rw-r--r--strata/tizen/vconf-internal-keys.morph8
-rw-r--r--strata/tizen/vconf.morph8
-rw-r--r--strata/tizen/wrt-widgets.morph19
12 files changed, 108 insertions, 0 deletions
diff --git a/strata/tizen/dlog.morph b/strata/tizen/dlog.morph
new file mode 100644
index 00000000..3289ef36
--- /dev/null
+++ b/strata/tizen/dlog.morph
@@ -0,0 +1,3 @@
+name: dlog
+kind: chunk
+build-system: autotools
diff --git a/strata/tizen/iniparser.morph b/strata/tizen/iniparser.morph
new file mode 100644
index 00000000..102503bc
--- /dev/null
+++ b/strata/tizen/iniparser.morph
@@ -0,0 +1,26 @@
+name: iniparser
+kind: chunk
+build-commands:
+- make
+install-commands:
+- mkdir -p "$DESTDIR/$PREFIX/lib"
+- install -m 755 libiniparser.so.0 "$DESTDIR/$PREFIX/lib"
+- ln -s libiniparser.so.0 "$DESTDIR/$PREFIX/lib/libiniparser.so"
+- mkdir -p "$DESTDIR/$PREFIX/include"
+- install -m 644 src/*.h "$DESTDIR/$PREFIX/include"
+- install -m 644 src/*.h "$DESTDIR/$PREFIX/include"
+- mkdir -p $DESTDIR/$PREFIX/lib/pkgconfig
+- |
+ cat > "$DESTDIR/$PREFIX/lib/pkgconfig/iniparser.pc" <<EOF
+ prefix = ${PREFIX}
+ exec_prefix = ${PREFIX}
+ libdir = ${PREFIX}/lib
+ includedir = ${PREFIX}/include
+
+ Name : iniparser
+ Description : a free stand-alone ini file parsing library.
+ Version : 2.17
+ Libs : -L\${libdir} -liniparser
+ Cflags : -I\${includedir}
+
+ EOF
diff --git a/strata/tizen/libslp-db-util.morph b/strata/tizen/libslp-db-util.morph
new file mode 100644
index 00000000..9f0084c4
--- /dev/null
+++ b/strata/tizen/libslp-db-util.morph
@@ -0,0 +1,7 @@
+name: libslp-db-util
+kind: chunk
+build-system: cmake
+configure-commands:
+- |
+ cmake -DCMAKE_INSTALL_PREFIX="$PREFIX" \
+ -DLIB_INSTALL_DIR="$PREFIX/lib"
diff --git a/strata/tizen/libslp-memo.morph b/strata/tizen/libslp-memo.morph
new file mode 100644
index 00000000..0e4c0ebe
--- /dev/null
+++ b/strata/tizen/libslp-memo.morph
@@ -0,0 +1,3 @@
+name: libslp-memo
+kind: chunk
+build-system: cmake
diff --git a/strata/tizen/minizip.morph b/strata/tizen/minizip.morph
new file mode 100644
index 00000000..d37a0bc9
--- /dev/null
+++ b/strata/tizen/minizip.morph
@@ -0,0 +1,9 @@
+name: minzip
+kind: chunk
+configure-commands:
+- cd contrib/minizip && autoreconf -fvi
+- cd contrib/minizip && ./configure --prefix="$PREFIX"
+build-commands:
+- cd contrib/minizip && make
+install-commands:
+- cd contrib/minizip && make DESTDIR="$DESTDIR" install
diff --git a/strata/tizen/pkgmgr-info.morph b/strata/tizen/pkgmgr-info.morph
new file mode 100644
index 00000000..8cdc00b2
--- /dev/null
+++ b/strata/tizen/pkgmgr-info.morph
@@ -0,0 +1,13 @@
+name: pkgmgr-info
+kind: chunk
+build-system: cmake
+pre-configure-commands:
+# In yocto's tizen-distro, TizenCommon is a module they patch cmake to add.
+# It has some useful assignments, but unless it's used very frequently, it's
+# easier to do the necessary assignments and remove inclusion of TizenCommon.
+- sed -i '/INCLUDE(TizenCommon)/d' CMakeLists.txt parser/CMakeLists.txt
+configure-commands:
+- |
+ cmake -DCMAKE_INSTALL_PREFIX="$PREFIX" \
+ -DLIB_INSTALL_DIR="$PREFIX/lib" \
+ -DTZ_SYS_CONFIG="$PREFIX/kdb"
diff --git a/strata/tizen/pkgmgr.morph b/strata/tizen/pkgmgr.morph
new file mode 100644
index 00000000..070c1527
--- /dev/null
+++ b/strata/tizen/pkgmgr.morph
@@ -0,0 +1,3 @@
+name: pkgmgr
+kind: chunk
+build-system: cmake
diff --git a/strata/tizen/tizen-platform-config.morph b/strata/tizen/tizen-platform-config.morph
new file mode 100644
index 00000000..8030a504
--- /dev/null
+++ b/strata/tizen/tizen-platform-config.morph
@@ -0,0 +1,6 @@
+name: tizen-platform-config
+kind: chunk
+build-system: autotools
+configure-commands:
+# It tries to install system config into /usr/etc
+- ./autogen.sh "--prefix=$PREFIX" --sysconfdir=/etc
diff --git a/strata/tizen/tizen-platform-wrapper.morph b/strata/tizen/tizen-platform-wrapper.morph
new file mode 100644
index 00000000..3edeb062
--- /dev/null
+++ b/strata/tizen/tizen-platform-wrapper.morph
@@ -0,0 +1,3 @@
+name: tizen-platform-wrapper
+kind: chunk
+build-system: autotools
diff --git a/strata/tizen/vconf-internal-keys.morph b/strata/tizen/vconf-internal-keys.morph
new file mode 100644
index 00000000..a64a81aa
--- /dev/null
+++ b/strata/tizen/vconf-internal-keys.morph
@@ -0,0 +1,8 @@
+name: vconf-internal-keys
+kind: chunk
+build-system: cmake
+configure-commands:
+- |
+ cmake -DCMAKE_INSTALL_PREFIX="$PREFIX" \
+ -DLIB_INSTALL_DIR="$PREFIX/lib" \
+ -DTZ_SYS_CONFIG="$PREFIX/kdb"
diff --git a/strata/tizen/vconf.morph b/strata/tizen/vconf.morph
new file mode 100644
index 00000000..f31bfc75
--- /dev/null
+++ b/strata/tizen/vconf.morph
@@ -0,0 +1,8 @@
+name: vconf
+kind: chunk
+build-system: cmake
+configure-commands:
+- |
+ cmake -DCMAKE_INSTALL_PREFIX="$PREFIX" \
+ -DLIB_INSTALL_DIR="$PREFIX/lib" \
+ -DTZ_SYS_CONFIG="$PREFIX/kdb"
diff --git a/strata/tizen/wrt-widgets.morph b/strata/tizen/wrt-widgets.morph
new file mode 100644
index 00000000..215d4e76
--- /dev/null
+++ b/strata/tizen/wrt-widgets.morph
@@ -0,0 +1,19 @@
+name: wrt-widgets
+kind: chunk
+install-commands:
+# TODO: Consider making install-commands do it, instead of deferring to a systemd unit.
+# This depends on what pkgcmd is capable of
+# The systemd unit explicitly looks for install_widgets in /usr/bin
+- mkdir -p "$DESTDIR/usr/bin"
+- cp install_widgets.sh prepare_widgets.sh "$DESTDIR/usr/bin"
+- mkdir -p "$DESTDIR/$PREFIX/share/widget_demo"
+- cp -r apps/*.wgt "$DESTDIR/$PREFIX/share/widget_demo"
+# Use a custom install.conf because we don't have tizen's default users
+- cat <<EOF >"$DESTDIR/$PREFIX/share/widget_demo/install.conf"
+ root:BluetoothChat.wgt annex.wgt bubblewrap.wgt go.wgt mancala.wgt
+ EOF
+- mkdir -p "$DESTDIR/$PREFIX/lib/systemd/user/default.target.wants"
+- install -m 644 xwalk_widgets_preinstall.service "$DESTDIR/$PREFIX/lib/systemd/user"
+- |
+ ln -sf ../xwalk_widgets_preinstall.service \
+ "$DESTDIR/$PREFIX/lib/systemd/user/default.target.wants/xwalk_widgets_preinstall.service"