summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/opencv/artoolkit/configure.diff53
-rw-r--r--packages/opencv/artoolkit/paddle.diff12
-rw-r--r--packages/opencv/artoolkit_2.72.1.bb51
3 files changed, 116 insertions, 0 deletions
diff --git a/packages/opencv/artoolkit/configure.diff b/packages/opencv/artoolkit/configure.diff
new file mode 100644
index 0000000000..979e356578
--- /dev/null
+++ b/packages/opencv/artoolkit/configure.diff
@@ -0,0 +1,53 @@
+--- /tmp/Configure 2008-11-28 23:58:06.000000000 +0100
++++ ARToolKit/Configure 2008-11-28 23:59:59.000000000 +0100
+@@ -55,8 +55,7 @@
+ exit 0
+ fi
+ VIDEO_DRIVER="VideoLinuxV4L"
+- CFLAG="-O -I/usr/X11R6/include"
+- LDFLAG="-L/usr/X11R6/lib"
++ CFLAG="-O "
+ ARFLAG="rs"
+ RANLIB=""
+ LIBS="-lglut -lGLU -lGL -lXi -lXmu -lX11 -lm"
+@@ -78,8 +77,7 @@
+ exit 0
+ fi
+ VIDEO_DRIVER="VideoLinuxV4L"
+- CFLAG="-O -I/usr/X11R6/include -DUSE_EYETOY"
+- LDFLAG="-L/usr/X11R6/lib"
++ CFLAG="-O -DUSE_EYETOY"
+ ARFLAG="rs"
+ RANLIB=""
+ LIBS="-lglut -lGLU -lGL -lXi -lXmu -lX11 -lm -ljpeg"
+@@ -87,8 +85,7 @@
+ elif [ "$ANS" = "3" ]
+ then
+ VIDEO_DRIVER="VideoLinuxDV"
+- CFLAG="-O -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include"
+- LDFLAG="-L/usr/X11R6/lib -L/usr/local/lib"
++ CFLAG="-O "
+ ARFLAG="rs"
+ RANLIB=""
+ LIBS="-lraw1394 -ldv -lpthread -lglut -lGLU -lGL -lXi -lXmu -lX11 -lm"
+@@ -96,8 +93,7 @@
+ elif [ "$ANS" = "4" ]
+ then
+ VIDEO_DRIVER="VideoLinux1394Cam"
+- CFLAG="-O -I/usr/X11R6/include"
+- LDFLAG="-L/usr/X11R6/lib"
++ CFLAG="-O "
+ ARFLAG="rs"
+ RANLIB=""
+ LIBS="-lglut -lGLU -lGL -lXi -lXmu -lX11 -lm -lraw1394 -ldc1394_control"
+@@ -108,8 +104,8 @@
+ GST_INCLUDE=`pkg-config --cflags gstreamer-0.10`
+ GST_LIBS=`pkg-config --libs gstreamer-0.10`
+
+- CFLAG="-O $GST_INCLUDE -I/usr/X11R6/include"
+- LDFLAG="$GST_LIBS -L/usr/X11R6/lib -L/usr/local/lib"
++ CFLAG="-O $GST_INCLUDE "
++ LDFLAG="$GST_LIBS "
+ ARFLAG="rs"
+ RANLIB=""
+ LIBS="-lpthread -lglut -lGLU -lGL -lXi -lX11 -lm"
diff --git a/packages/opencv/artoolkit/paddle.diff b/packages/opencv/artoolkit/paddle.diff
new file mode 100644
index 0000000000..6e181f51c9
--- /dev/null
+++ b/packages/opencv/artoolkit/paddle.diff
@@ -0,0 +1,12 @@
+--- /tmp/paddleDemo.c 2008-11-29 11:12:11.000000000 +0100
++++ ARToolKit/examples/paddleDemo/paddleDemo.c 2008-11-29 11:12:27.000000000 +0100
+@@ -54,9 +54,6 @@
+ GLfloat lightZeroColor[] = {0.9, 0.9, 0.9, 0.1};
+
+
+-PaddleItemInfo myPaddleItem;
+-ItemList myListItem;
+-
+ static int draw_paddle( ARPaddleInfo *paddleInfo, PaddleItemInfo *myPaddleItem);
+ static void init(void);
+ static void cleanup(void);
diff --git a/packages/opencv/artoolkit_2.72.1.bb b/packages/opencv/artoolkit_2.72.1.bb
new file mode 100644
index 0000000000..7a9940f607
--- /dev/null
+++ b/packages/opencv/artoolkit_2.72.1.bb
@@ -0,0 +1,51 @@
+DESCRIPTION = "ARToolKit is a software library that allows for the creation of augmented reality applications. "
+LICENSE = "GPL/ARToolkit"
+
+DEPENDS = "gstreamer vrtual/libx11 freeglut mesa"
+
+SRC_URI = "${SOURCEFORGE_MIRROR}/artoolkit/ARToolKit-${PV}.tgz \
+ file://configure.diff;patch=1 \
+ file://paddle.diff;patch=1 "
+
+S = "${WORKDIR}/ARToolKit"
+
+LDFLAGS_append = " `pkg-config --libs gstreamer-0.10` -lpthread -lglut -lGLU -lGL -lXi -lX11 -lm"
+
+do_configure() {
+ for i in $(find ${S} -name Makefile.in) ; do
+ sed -i -e /^CC/d \
+ -e s/cc\ /'${CXX}'\ /g \
+ -e s/ar\ /${AR}\ /g \
+ -e 's:$(LDFLAG):$(LDFLAG) $(LDFLAGS):g' \
+ -e 's:$(CFLAG):$(CFLAG) $(CFLAGS):g'\
+ $i
+ done
+ ./Configure << EOF
+5
+y
+n
+EOF
+}
+
+export CC
+
+do_compile() {
+ oe_runmake
+}
+
+do_install() {
+ install -d ${D}/${bindir}
+ install -m 0755 ${S}/bin/[a-z]* ${D}/${bindir}
+
+ install -d ${D}/${datadir}/ARToolKit
+ cp -pPr ${S}/bin/{Data,Wrl} ${D}/${datadir}/ARToolKit/
+
+ install -d ${D}${libdir}
+ install -m 0644 ${S}/lib/*.a ${D}${libdir}
+}
+
+FILES_${PN} += "${datadir}/ARToolKit"
+
+
+
+