Skip to contentSkip to conversation

fbv-1.0: Build fbv with support for jpeg and bmp

PATCH Superseded Ulf Samuelsson 2 participants 3 messages Mar 12, 2010 – Mar 13, 2010

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fbv-1.0: Build fbv with support for jpeg and bmp

fbv today only supports png files.
This patch will ensure fbv also support jpeg and bmp formats

---
 recipes/fbv/fbv-1.0b/fbv-1.0b.patch |   12 ++++++++++++
 recipes/fbv/fbv_1.0b.bb             |   23 +++++++++++++++--------
 2 files changed, 27 insertions(+), 8 deletions(-)
 create mode 100644 recipes/fbv/fbv-1.0b/fbv-1.0b.patch
recipes/fbv/fbv-1.0b/fbv-1.0b.patch new file +12 -0
new file mode 100644
index 0000000..2ca9d52
@@ -0,0 +1,12 @@
+diff -urN fbv-1.0b-0rig/Makefile fbv-1.0b/Makefile
+--- fbv-1.0b-0rig/Makefile	2009-08-20 00:33:58.000000000 +0200
++++ fbv-1.0b/Makefile	2009-08-20 00:34:16.000000000 +0200
+@@ -12,7 +12,7 @@
+ OBJECTS	= ${SOURCES:.c=.o}
+ 
+ OUT	= fbv
+-#LIBS	= -lungif -L/usr/X11R6/lib -ljpeg -lpng
++LIBS	= -L/usr/lib -ljpeg -lpng #-lungif
+ 
+ all: $(OUT)
+ 	@echo Build DONE.
recipes/fbv/fbv_1.0b.bb +15 -8
index 04c7066..4a5bd6b 100644
@@ -1,25 +1,32 @@
 DESCRIPTION = "Frame Buffer Viewer"
 LICENSE = "GPL"
-DEPENDS = "libpng"
+DEPENDS = "libpng jpeg"
 PR = "r1"
 
 SRC_URI = "http://s-tech.elsat.net.pl/fbv/fbv-1.0b.tar.gz \
-	   file://cross_compile.patch;patch=1"
+	file://cross_compile.patch;patch=1 \
+	file://fbv-1.0b.patch;patch=1 \
+	"
+
+#inherit autotools
 
 do_configure() {
-	CC="${CC}" ./configure --without-libungif --without-bmp \
-		--without-libjpeg
+	CC="${CC}" ./configure --without-libungif
 }
 
 do_compile() {
 	oe_runmake CFLAGS="-O2 -Wall -D_GNU_SOURCE -D__KERNEL_STRICT_NAMES" \
 		CC="${CC}"
 }
+
 do_install() {
 	install -d ${D}${bindir}
-        install -m 0755 fbv ${D}${bindir}
+	install -m 0755 fbv ${D}${bindir}
 
-        # man
-        install -d ${D}${mandir}/man1/
-        install -m 0644 fbv.1 ${D}${mandir}/man1/fbv.1
+# man
+#	install -d ${D}${mandir}/man1/
+#	install -m 0644 fbv.1 ${D}${mandir}/man1/fbv.1
 }
+
+PACKAGES = "fbv"
+
Signature · 1 line
1.6.0.2
#1 lore raw

PATCH 1/1 fbv-1.0: Bump recipe version

Forgot to bump recipe version in previous patch

---
 recipes/fbv/fbv_1.0b.bb |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
recipes/fbv/fbv_1.0b.bb +1 -1
index 4a5bd6b..ba7cc06 100644
@@ -1,7 +1,7 @@
 DESCRIPTION = "Frame Buffer Viewer"
 LICENSE = "GPL"
 DEPENDS = "libpng jpeg"
-PR = "r1"
+PR = "r2"
 
 SRC_URI = "http://s-tech.elsat.net.pl/fbv/fbv-1.0b.tar.gz \
 	file://cross_compile.patch;patch=1 \
Signature · 1 line
1.6.0.2
#2 lore raw

Re: [PATCH] fbv-1.0: Bump recipe version

Quoted 1 line · On Friday 12 March 2010 23:14:06 Ulf Samuelsson wrote:

Forgot to bump recipe version in previous patch

then squash the two patches together... but more interestingly why do you comment out the installing of man pages? First of all we normally do not comment out as we have a SCM, second it would be nice to know what was wrong with the man pages