[oe-commits] org.oe.dev horizon: add cvs version of this cool sketch toy

koen commit openembedded-commits at lists.openembedded.org
Wed Aug 30 11:19:40 UTC 2006


horizon: add cvs version of this cool sketch toy
* still has /media/mmc1/horizon hardcoded

Author: koen at openembedded.org
Branch: org.openembedded.dev
Revision: 708df891f9f12bc072e9dea6f782a23aa35bbc9e
ViewMTN: http://monotone.openembedded.org/revision.psp?id=708df891f9f12bc072e9dea6f782a23aa35bbc9e
Files:
1
packages/horizon
packages/horizon/files
packages/horizon/files/makefile.patch
packages/horizon/horizon_cvs.bb
Diffs:

#
# mt diff -r5ef29a16dd96c72ef0f33bd0f53e06381ba285dd -r708df891f9f12bc072e9dea6f782a23aa35bbc9e
#
# 
# 
# add_dir "packages/horizon"
# 
# add_dir "packages/horizon/files"
# 
# add_file "packages/horizon/files/makefile.patch"
#  content [410c843facd869d9596ded550e17da110b811d1d]
# 
# add_file "packages/horizon/horizon_cvs.bb"
#  content [8081c4a63099b30ef770e8b415676bd125d157b8]
# 
============================================================
--- packages/horizon/files/makefile.patch	410c843facd869d9596ded550e17da110b811d1d
+++ packages/horizon/files/makefile.patch	410c843facd869d9596ded550e17da110b811d1d
@@ -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
============================================================
--- packages/horizon/horizon_cvs.bb	8081c4a63099b30ef770e8b415676bd125d157b8
+++ packages/horizon/horizon_cvs.bb	8081c4a63099b30ef770e8b415676bd125d157b8
@@ -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}
+}	
+






More information about the Openembedded-commits mailing list