summaryrefslogtreecommitdiff
path: root/btscanner/btscanner-1.0/configure.patch
blob: a69d4df9e4558eba8c263a824c8c900ecefc6e04 (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

#
# Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
#

--- btscanner-1.0/configure.in~configure.patch	2003-10-14 13:01:20.000000000 +0200
+++ btscanner-1.0/configure.in	2004-07-16 11:55:24.000000000 +0200
@@ -10,9 +10,8 @@
 AC_PROG_CC
 
 # Checks for libraries.
-AC_HAVE_LIBRARY(curses,,[AC_MSG_ERROR([Curses not found])])
+AC_HAVE_LIBRARY(ncurses,,[AC_MSG_ERROR([Curses not found])])
 AC_HAVE_LIBRARY(bluetooth,,[AC_MSG_ERROR([Bluetooth not found])])
-AC_HAVE_LIBRARY(sdp,,[AC_MSG_ERROR([SDP not found])])
 AC_HAVE_LIBRARY(pthread,,[AC_MSG_ERROR([Pthreads not found])])
 AC_HAVE_LIBRARY(gdbm,,[AC_MSG_ERROR([GDBM not found])])
 
--- btscanner-1.0/Makefile.in~configure.patch	2003-10-14 14:16:23.000000000 +0200
+++ btscanner-1.0/Makefile.in	2004-07-16 11:54:45.000000000 +0200
@@ -6,9 +6,12 @@
 CP		=	cp
 MV		=	mv
 RM		=	rm
+INSTALL		=	install
 GZIP	=	gzip
 MKDIR	=	mkdir
 
+DESTDIR = 
+
 all:	$(EXECS)
 
 btscanner.o:	btscanner.c btscanner.h
@@ -34,7 +37,7 @@
 	$(CC) $(CFLAGS) -c $*.c
 
 install:	all
-	$(MKDIR) -p @prefix@/bin
-	$(CP) $(EXECS) @prefix@/bin/
-	$(MKDIR) -p @prefix@/etc
-	$(CP) oui.txt @prefix@/etc/oui.txt
+	$(INSTALL) -d $(DESTDIR)/@prefix@/bin
+	$(INSTALL) -m 0755 $(EXECS) $(DESTDIR)/@prefix@/bin/
+	$(INSTALL) -d $(DESTDIR)/@prefix@/etc
+	$(INSTALL) -m 0444 oui.txt $(DESTDIR)/@prefix@/etc/oui.txt