horizon: add cvs version of this cool sketch toy
authorKoen Kooi <koen@openembedded.org>
Wed, 30 Aug 2006 11:15:50 +0000 (11:15 +0000)
committerKoen Kooi <koen@openembedded.org>
Wed, 30 Aug 2006 11:15:50 +0000 (11:15 +0000)
* still has /media/mmc1/horizon hardcoded

packages/horizon/.mtn2git_empty [new file with mode: 0644]
packages/horizon/files/.mtn2git_empty [new file with mode: 0644]
packages/horizon/files/makefile.patch [new file with mode: 0644]
packages/horizon/horizon_cvs.bb [new file with mode: 0644]

diff --git a/packages/horizon/.mtn2git_empty b/packages/horizon/.mtn2git_empty
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/packages/horizon/files/.mtn2git_empty b/packages/horizon/files/.mtn2git_empty
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/packages/horizon/files/makefile.patch b/packages/horizon/files/makefile.patch
new file mode 100644 (file)
index 0000000..33f341e
--- /dev/null
@@ -0,0 +1,34 @@
+--- /tmp/Makefile      2006-08-30 12:51:56.000000000 +0200
++++ horizon/src/Makefile       2006-08-30 12:53:03.025780000 +0200
+@@ -2,12 +2,11 @@
+ all: .depend $(BINARY)
+-CFLAGS  = -g -O2 -Wall -Werror                              \
+-        -I/usr/X11R6/include                              \
++HCFLAGS  = -g -O2 -Wall -Werror                              \
+         `sdl-config --cflags`                             \
+         `pkg-config --cflags glib-2.0 gobject-2.0 libpng` \
+         -I.
+-LDFLAGS = -L/usr/X11R6/lib -lX11                            \
++HLDFLAGS = -lX11                            \
+         `sdl-config --libs`                               \
+         `pkg-config --libs glib-2.0 gobject-2.0 libpng`   \
+         -ljpeg
+@@ -16,7 +15,7 @@
+ OBJS   = $(CFILES:.c=.o)
+ $(BINARY): $(OBJS) 
+-      $(CC) *.o */*.o -o $@ $(LDFLAGS)
++      $(CC) *.o */*.o -o $@ $(LDFLAGS) $(HLDFLAGS)
+ clean:
+       rm -f $(OBJS) $(BINARY) *.o *~ */*~ */*/*~ .depend
+@@ -35,6 +34,6 @@
+       ./$(BINARY) /tmp/horizon
+ .depend: *.[ch] */*.[ch]
+-      $(CC) -M $(CFLAGS) */*.c *.c > .depend
++      $(CC) -M $(CFLAGS) $(HCFLAGS) */*.c *.c > .depend
+ include .depend
diff --git a/packages/horizon/horizon_cvs.bb b/packages/horizon/horizon_cvs.bb
new file mode 100644 (file)
index 0000000..d83fbf9
--- /dev/null
@@ -0,0 +1,27 @@
+DESCRIPTION = "Horizon is a sketchbook application for tablet devices."
+LICENSE = "GPLv2"
+
+DEPENDS = "glib-2.0 libpng jpeg virtual/libsdl"
+
+SRC_URI = "cvs://anonymous@anoncvs.gnome.org/cvs/gnome;module=horizon \
+       file://makefile.patch;patch=1"
+
+inherit pkgconfig binconfig
+
+S = "${WORKDIR}/horizon"
+PV = "0.37+cvs${SRCDATE}"
+
+PARALLEL_MAKE = ""
+
+CFLAGS += " -I${STAGING_INCDIR} -I${STAGING_INCDIR}/SDL -I. -Isrc -L${STAGING_LIBDIR} `PKG_CONFIG_PATH=${STAGING_DATADIR}/pkgconfig pkg-config --cflags glib-2.0 gobject-2.0 libpng`"
+
+do_compile() {
+       #yes, this is a hack to work around a faulty makefile
+       oe_runmake horizon 
+}      
+
+do_install() {
+       install -d ${D}${bindir}
+       install -m 755 horizon ${D}${bindir}
+}      
+