From 26a72393a408b73d5148808ec9bdf01420563a26 Mon Sep 17 00:00:00 2001 From: Willer Moreira Date: Wed, 17 Jun 2009 16:25:42 -0400 Subject: [PATCH 095/118] antico: Creating recipe for Antico WM Signed-off-by: Willer Moreira Signed-off-by: Francisco Alecrim --- recipes/antico/antico_0.2.bb | 43 +++++++++++++++++++++++++++++ recipes/antico/files/fix_antico_pro.patch | 28 +++++++++++++++++++ 2 files changed, 71 insertions(+), 0 deletions(-) create mode 100644 recipes/antico/antico_0.2.bb create mode 100644 recipes/antico/files/fix_antico_pro.patch diff --git a/recipes/antico/antico_0.2.bb b/recipes/antico/antico_0.2.bb new file mode 100644 index 0000000..faf3c74 --- /dev/null +++ b/recipes/antico/antico_0.2.bb @@ -0,0 +1,43 @@ +inherit qt4x11 update-alternatives + +DESCRIPTION = "Antico is a Qt4/X11 Desktop/Window Manager (i.e. KDE+KWin)." +HOMEPAGE = "http://www.antico.netsons.org/" +LICENSE = "GPL" +DEPENDS += "qt4-x11-free" +RDEPENDS += "libqtdbus4" +TAG = "33b232ae5c4913bbd0b812264e5846e462803467" +PR = "r1" + +SRC_URI = "git://github.com/antico/antico.git;protocol=git;tag=${TAG} \ + file://fix_antico_pro.patch;patch=1" +S = "${WORKDIR}/git" + +FILES_${PN} += "${bindir} ${sysconfdir} ${datadir}" + +do_configure() { +${OE_QMAKE_QMAKE} +} + +do_compile() { +oe_runmake +} + + +do_install() { + install -d ${D}${bindir} + install -m 0755 antico ${D}${bindir} + install -d ${D}${bindir}/theme/default + install -m 0644 theme/default/* ${D}${bindir}/theme/default + install -d ${D}/${sysconfdir}/X11/sessions + install -m 0644 antico-gdm.desktop ${D}/${sysconfdir}/X11/sessions + install -d ${D}/${datadir}/xsessions + install -m 0644 antico-kdm.desktop ${D}/${datadir}/xsessions + install -d ${D}/${datadir}/apps/kdm/sessions + install -m 0644 antico-kdm.desktop ${D}/${datadir}/apps/kdm/sessions +} + +ALTERNATIVE_PATH = "${bindir}/antico" +ALTERNATIVE_NAME = "x-window-manager" +ALTERNATIVE_LINK = "${bindir}/x-window-manager" +ALTERNATIVE_PRIORITY = "16" + diff --git a/recipes/antico/files/fix_antico_pro.patch b/recipes/antico/files/fix_antico_pro.patch new file mode 100644 index 0000000..232ddb3 --- /dev/null +++ b/recipes/antico/files/fix_antico_pro.patch @@ -0,0 +1,28 @@ +diff --git a/antico.pro b/antico.pro +index a321356..d650eb9 100644 +--- a/antico.pro ++++ b/antico.pro +@@ -56,13 +56,10 @@ HEADERS = src/defs.h \ + src/deskicon.h \ + src/dockmenu.h \ + src/settings.h +-OBJECTS_DIR += build +-MOC_DIR += build +-QMAKE_INCDIR += /usr/include +-QMAKE_CLEAN += antico +-TEMPLATE = app +-CONFIG += warn_on release +-QT += dbus ++CONFIG += link_pkgconfig ++PKGCONFIG += dbus-1 ++INCLUDEPATH += ${OE_QMAKE_INCDIR_QT}/QtDBus ++LIBS += -lQtDBus + TRANSLATIONS = language/it_IT.ts \ + language/cs_CZ.ts \ + language/ru_RU.ts \ +@@ -70,4 +67,4 @@ TRANSLATIONS = language/it_IT.ts \ + language/de_DE.ts \ + language/es_ES.ts + DEFINES = QT_FATAL_WARNINGS +-//DEFINES = QT_NO_DEBUG_OUTPUT ++DEFINES = QT_NO_DEBUG_OUTPUT -- 1.6.3.3