* Re: DVB scan utility
2006-09-04 17:37 DVB scan utility Mark Howells
@ 2006-09-04 18:16 ` Øyvind Repvik
2006-09-04 20:56 ` Paul Sokolovsky
0 siblings, 1 reply; 3+ messages in thread
From: Øyvind Repvik @ 2006-09-04 18:16 UTC (permalink / raw)
To: Using the OpenEmbedded metadata to build Linux Distributions
[-- Attachment #1: Type: text/plain, Size: 5821 bytes --]
Mark Howells wrote:
> Hi,
>
> Can anyone point me toward an OE port (ideally OpenSlug/Slugos binary) of the linuxtv dvb 'scan' utility from HYPERLINK "http://www.linuxtv.org/downloads/linuxtv-dvb-apps-1.1.1.tar.gz"http://www.linuxtv.org/downloads/linuxtv-dvb-apps-1.1.1.tar.gz. I've tried creating a bb file to compile it, but the Makefile is old and seems only capable of compiling natively. I don't have a native compiler on my slug - I guess I could install it, but if anyone has a built binary or suitable BB/Make system it would help.
The reason it compiles native binaries is simply that the Makefile
defines $CC as 'gcc'.
Applying the included diff should help the Makefile work as it was
intended to do
Regards,
Øyvind Repvik
SlugOS package manager
diff -ur linuxtv-dvb-apps-1.1.1.orig/test/Makefile linuxtv-dvb-apps-1.1.1/test/Makefile
--- linuxtv-dvb-apps-1.1.1.orig/test/Makefile 2004-01-17 17:59:46.000000000 +0100
+++ linuxtv-dvb-apps-1.1.1/test/Makefile 2006-09-04 20:08:23.000000000 +0200
@@ -1,6 +1,6 @@
# Makefile for Linux DVB API Version 3 test programs
-CC = gcc
+#CC = gcc
CFLAGS = -g -O2 -W -Wall -I../include
TARGETS = \
Only in linuxtv-dvb-apps-1.1.1/test: Makefile.orig
diff -ur linuxtv-dvb-apps-1.1.1.orig/util/av7110_loadkeys/Makefile linuxtv-dvb-apps-1.1.1/util/av7110_loadkeys/Makefile
--- linuxtv-dvb-apps-1.1.1.orig/util/av7110_loadkeys/Makefile 2004-01-17 17:59:46.000000000 +0100
+++ linuxtv-dvb-apps-1.1.1/util/av7110_loadkeys/Makefile 2006-09-04 20:09:16.000000000 +0200
@@ -1,4 +1,4 @@
-CC = gcc
+#CC = gcc
CFLAGS = -g -Wall -O2
all: av7110_loadkeys evtest
Only in linuxtv-dvb-apps-1.1.1/util/av7110_loadkeys: Makefile.orig
diff -ur linuxtv-dvb-apps-1.1.1.orig/util/dvbdate/Makefile linuxtv-dvb-apps-1.1.1/util/dvbdate/Makefile
--- linuxtv-dvb-apps-1.1.1.orig/util/dvbdate/Makefile 2004-01-17 17:59:46.000000000 +0100
+++ linuxtv-dvb-apps-1.1.1/util/dvbdate/Makefile 2006-09-04 20:10:05.000000000 +0200
@@ -1,11 +1,11 @@
-CC = gcc
-CFLAGS = -g -O2 -MD -Wall -I. -I../../include
+#CC = gcc
+#CFLAGS = -g -O2 -MD -Wall -I. -I../../include
LFLAGS =
OBJS = dvbdate.o
TARGET = dvbdate
-DESTDIR = /usr/local/bin/
+#DESTDIR = /usr/local/bin/
all: $(TARGET)
@@ -15,8 +15,8 @@
$(TARGET): $(OBJS)
$(CC) -o $@ $(OBJS) $(LFLAGS)
-install: all
- install -m 755 $(TARGET) $(DESTDIR)
+#install: all
+# install -m 755 $(TARGET) $(DESTDIR)
clean:
rm -f $(TARGET) $(OBJS) core* *~ *.d
Only in linuxtv-dvb-apps-1.1.1/util/dvbdate: Makefile.orig
diff -ur linuxtv-dvb-apps-1.1.1.orig/util/dvbnet/Makefile linuxtv-dvb-apps-1.1.1/util/dvbnet/Makefile
--- linuxtv-dvb-apps-1.1.1.orig/util/dvbnet/Makefile 2004-01-17 17:59:46.000000000 +0100
+++ linuxtv-dvb-apps-1.1.1/util/dvbnet/Makefile 2006-09-04 20:10:30.000000000 +0200
@@ -1,11 +1,11 @@
-CC = gcc
+#CC = gcc
CFLAGS = -g -O2 -MD -Wall -I. -I../../include
LFLAGS =
OBJS = dvbnet.o
TARGET = dvbnet
-DESTDIR = /usr/local/bin/
+#DESTDIR = /usr/local/bin/
all: version.h $(TARGET)
@@ -19,8 +19,8 @@
printf '#define VERSION_INFO "%s (Build %s)"\n' \
"`cat $@.in`" "`date +'%a %b %d %X %Y'`" > $@
-install: all
- install -m 755 $(TARGET) $(DESTDIR)
+#install: all
+# install -m 755 $(TARGET) $(DESTDIR)
clean:
rm -f $(TARGET) $(OBJS) version.h core* *~ *.d
Only in linuxtv-dvb-apps-1.1.1/util/dvbnet: Makefile.orig
diff -ur linuxtv-dvb-apps-1.1.1.orig/util/dvbtraffic/Makefile linuxtv-dvb-apps-1.1.1/util/dvbtraffic/Makefile
--- linuxtv-dvb-apps-1.1.1.orig/util/dvbtraffic/Makefile 2004-01-19 18:10:16.000000000 +0100
+++ linuxtv-dvb-apps-1.1.1/util/dvbtraffic/Makefile 2006-09-04 20:10:52.000000000 +0200
@@ -1,6 +1,6 @@
dvbtraffic: dvbtraffic.c
- gcc -MD -g -O2 -Wall -I../../include $< -o $@
+ $CC -MD -g -O2 -Wall -I../../include $< -o $@
clean:
rm -f *.o *.d dvbtraffic
Only in linuxtv-dvb-apps-1.1.1/util/dvbtraffic: Makefile.orig
diff -ur linuxtv-dvb-apps-1.1.1.orig/util/lib/Makefile linuxtv-dvb-apps-1.1.1/util/lib/Makefile
--- linuxtv-dvb-apps-1.1.1.orig/util/lib/Makefile 2004-01-17 17:59:46.000000000 +0100
+++ linuxtv-dvb-apps-1.1.1/util/lib/Makefile 2006-09-04 20:11:07.000000000 +0200
@@ -1,5 +1,5 @@
-CC = gcc
+#CC = gcc
CFLAGS = -MD -g -Wall -O2 -I../../include -I.
LFLAGS = -g -Wall
Only in linuxtv-dvb-apps-1.1.1/util/lib: Makefile.orig
diff -ur linuxtv-dvb-apps-1.1.1.orig/util/scan/Makefile linuxtv-dvb-apps-1.1.1/util/scan/Makefile
--- linuxtv-dvb-apps-1.1.1.orig/util/scan/Makefile 2006-05-18 01:34:53.000000000 +0200
+++ linuxtv-dvb-apps-1.1.1/util/scan/Makefile 2006-09-04 20:11:22.000000000 +0200
@@ -1,5 +1,5 @@
-CC = gcc
+#CC = gcc
CFLAGS = -MD -g -Wall -O2 -I../../include
LFLAGS = -g -Wall
Only in linuxtv-dvb-apps-1.1.1/util/scan: Makefile.orig
diff -ur linuxtv-dvb-apps-1.1.1.orig/util/szap/Makefile linuxtv-dvb-apps-1.1.1/util/szap/Makefile
--- linuxtv-dvb-apps-1.1.1.orig/util/szap/Makefile 2006-05-18 01:31:54.000000000 +0200
+++ linuxtv-dvb-apps-1.1.1/util/szap/Makefile 2006-09-04 20:11:51.000000000 +0200
@@ -1,4 +1,4 @@
-CC = gcc
+#CC = gcc
CFLAGS = -MD -Wall -g -O2 -I../../include -I../lib
LFLAGS = -Wall -g -O2
RM = rm -f
Only in linuxtv-dvb-apps-1.1.1/util/szap: Makefile.orig
diff -ur linuxtv-dvb-apps-1.1.1.orig/util/ttusb_dec_reset/Makefile linuxtv-dvb-apps-1.1.1/util/ttusb_dec_reset/Makefile
--- linuxtv-dvb-apps-1.1.1.orig/util/ttusb_dec_reset/Makefile 2004-01-21 23:13:45.000000000 +0100
+++ linuxtv-dvb-apps-1.1.1/util/ttusb_dec_reset/Makefile 2006-09-04 20:12:10.000000000 +0200
@@ -1,4 +1,4 @@
-CC = gcc
+#CC = gcc
RM = rm -f
CFLAGS = -g -Wall -O2
LFLAGS = -g -Wall
Only in linuxtv-dvb-apps-1.1.1/util/ttusb_dec_reset: Makefile.orig
^ permalink raw reply [flat|nested] 3+ messages in thread