blob: dc4b08acad5c78c9ab190cbacadc29b9fc445dd0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# Makefile for the standalone-distributed kradio version
# it is a extract from the xawtv package from
# http://user.cs.tu-berlin.de/~kraxel/linux/#xawtv
#
# seems people do not find kradio if it is'nt on ftp.kde.org :-)
#
#
# /dev/radio == char, major 81, minor 64
#
# kradio uses the video4linux radio interface. bttv
# (either 0.5.x or the version included in 2.1.x)
# uses this interface, I tested it with a WinTV/radio
# card. You have to insmod bttv with "radio=1" as
# module parameter.
#
# Make sure the $KDEDIR and $QTDIR variables are set
# correctly, the make utility will pick them up from
# the environment.
#
# Other 2.1.x radio drivers should work too.
#
##########################################################################
kdebindir=$(KDEDIR)/bin
kdelnkdir=$(KDEDIR)/share/applnk/Multimedia
kradiodir=$(KDEDIR)/share/apps/kradio
FONTDIR=/usr/X11R6/lib/X11/fonts/misc
MOC=$(QTDIR)/bin/moc
# for usage with bttv-0.5.x (instead of 2.1.x) you have to remove the
# '-DUSE_KERNEL_VIDEODEV' and add '-I/wherever/the/bttv/driver/is'
# instead. kradio needs the videodev.h include file.
CXXFLAGS = -I$(QTDIR)/include -I$(KDEDIR)/include \
-DUSE_KERNEL_VIDEODEV=1
##########################################################################
.SUFFIXES: .cpp .moc .bdf .pcf
.cpp.o:
$(CXX) -c $(CXXFLAGS) $<
.h.moc:
$(MOC) $< -o $@
.bdf.pcf:
bdftopcf -o $@ $<
##########################################################################
kradio: kradio.moc kradio.o
$(CXX) -o $@ kradio.o -L$(QTDIR)/lib -L$(KDEDIR)/lib \
-lkdeui -lkdecore -lqt -lXext -lX11
install: kradio led-fixed.pcf
install -s kradio $(kdebindir);
install -m 644 kradio.kdelnk $(kdelnkdir);
mkdir -p $(kradiodir)/toolbar;
install -m 644 *.xpm $(kradiodir)/toolbar;
install -m 644 led-fixed.pcf $(FONTDIR)
(cd $(FONTDIR); mkfontdir)
-xset fp rehash
|