[oe] package VDR for OE

Paul Menzel paulepanter at users.sourceforge.net
Sun Dec 13 15:45:31 UTC 2009


Am Sonntag, den 13.12.2009, 15:18 +0100 schrieb Petr Štetiar:
> Paul Menzel <paulepanter at users.sourceforge.net> [2009-12-13 14:46:20]:

[…]

> Maybe, it's because you don't have STAGING_INCDIR variable available in
> do_compile() step. If I were you, I would grep for STAGING_INCDIR variable in
> other recipes: grep -R STAGING_INCDIR recipes/* and you should get idea how to
> use it. Hint, change :
> 
> INCLUDES = -I${STAGING_INCDIR}freetype2
> 
> to 
> 
> INCLUDES = ${CFLAGS}
> 
> and in your recipe do:
> 
> CFLAGS_append  += " -I${STAGING_INCDIR}/freetype2"

Great. That worked.

> > Furthermore is there a better way for upstream to set things up so that
> > no patching is needed? Or is autotools needed for this?

I am still asking if upstream could change something to make the
Makefile cross compilable by default.

> No for this hardcoded paths.
> 
> > +--- vdr/Makefile~fixpaths	2009-10-18 15:59:25.000000000 +0200
> > ++++ vdr/Makefile	2009-12-13 12:28:22.000000000 +0100
> > +@@ -21,7 +21,7 @@
> > + BINDIR   = $(PREFIX)/bin
> > + LOCDIR   = ./locale
> > + LIBS     = -ljpeg -lpthread -ldl -lcap -lrt -lfreetype -lfontconfig
> > +-INCLUDES = -I/usr/include/freetype2
> > ++INCLUDES = -I/srv/oe/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/include/freetype2
> 
> Maybe you've overlooked that, but it's unacceptable hardcoded path...

Of course I put this in, because I did not get `${STAGING_INCDIR}` to
expand. I changed it now thanks to your help.


Thank you,

Paul


--
From bb3ddb5df2b506f67ebcc9f1ed9f09d80c16e1bf Mon Sep 17 00:00:00 2001
From: Paul Menzel <paulepanter at users.sourceforge.net>
Date: Sat, 12 Dec 2009 10:17:52 +0100
Subject: [PATCH 1/1] Package VDR.

The upstream Makefile needs to be patched to use the headers from the
staging area.

Signed-off-by: Paul Menzel <paulepanter at users.sourceforge.net>
---
 conf/checksums.ini               |    4 ++++
 recipes/vdr/files/fixpaths.patch |   11 +++++++++++
 recipes/vdr/vdr_1.7.10.bb        |   11 +++++++++++
 3 files changed, 26 insertions(+), 0 deletions(-)
 create mode 100644 recipes/vdr/files/fixpaths.patch
 create mode 100644 recipes/vdr/vdr_1.7.10.bb

diff --git a/conf/checksums.ini b/conf/checksums.ini
index 3bf9854..e717f1b 100644
--- a/conf/checksums.ini
+++ b/conf/checksums.ini
@@ -27046,6 +27046,10 @@
sha256=05b473815f9706387a3c5eaeb4da2e492f624e0b7783432179454f9d69bb973c
 md5=d97a8dbc72942c57542f50322b538a48
 sha256=05b473815f9706387a3c5eaeb4da2e492f624e0b7783432179454f9d69bb973c
 
+[ftp://ftp.tvdr.de/vdr/Developer/vdr-1.7.10.tar.bz2]
+md5=c74ee966baca1c47ed6b9e2be3d1639b
+sha256=165bfcd811ef92cab50d11a88a76c481e105689438929414d27edfacfb312f52
+

[ftp://ftp.billsgames.com/unix/x/vectoroids/src/vectoroids-1.1.0.tar.gz]
 md5=c63ce56b09aa7da9a6e95d804e9ee314
 sha256=8d14dd281767e994108abd77c8e67d5a17718d0ad1e34d37e026911d14697b2e
diff --git a/recipes/vdr/files/fixpaths.patch
b/recipes/vdr/files/fixpaths.patch
new file mode 100644
index 0000000..418f2d9
--- /dev/null
+++ b/recipes/vdr/files/fixpaths.patch
@@ -0,0 +1,11 @@
+--- vdr/Makefile~fixpaths	2009-10-18 15:59:25.000000000 +0200
++++ vdr/Makefile	2009-12-13 12:28:22.000000000 +0100
+@@ -21,7 +21,7 @@
+ BINDIR   = $(PREFIX)/bin
+ LOCDIR   = ./locale
+ LIBS     = -ljpeg -lpthread -ldl -lcap -lrt -lfreetype -lfontconfig
+-INCLUDES = -I/usr/include/freetype2
++INCLUDES = ${CFLAGS}
+ 
+ PLUGINDIR= ./PLUGINS
+ PLUGINLIBDIR= $(PLUGINDIR)/lib
diff --git a/recipes/vdr/vdr_1.7.10.bb b/recipes/vdr/vdr_1.7.10.bb
new file mode 100644
index 0000000..d9bcfb4
--- /dev/null
+++ b/recipes/vdr/vdr_1.7.10.bb
@@ -0,0 +1,11 @@
+DESCRIPTION = "Video Disk Recorder (VDR) is a digital sat-receiver
program using Linux and DVB technologies. It allows one to record MPEG2
streams, as well as output the stream to TV. It is also possible to
watch DVDs (hardware accelerated) with some comfort and use an IR remote
control."
+AUTHOR = "Klaus Schmidinger"
+LICENSE = "GPLv2"
+HOMEPAGE = "http://www.tvdr.de"
+
+DEPENDS = "fontconfig freetype gettext libcap jpeg"
+
+SRC_URI = "ftp://ftp.tvdr.de/vdr/Developer/${P}.tar.bz2 \
+           file://fixpaths.patch;patch=1"
+
+CFLAGS_append += " -I${STAGING_INCDIR}/freetype2"
-- 
1.6.5.4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Package-VDR.patch
Type: text/x-patch
Size: 2758 bytes
Desc: not available
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20091213/3b756fbd/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20091213/3b756fbd/attachment-0002.sig>


More information about the Openembedded-devel mailing list