File: fondu-patch

package info (click to toggle)
fondu 0.0.20060102-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 940 kB
  • sloc: ansic: 11,392; sh: 2,474; makefile: 171
file content (90 lines) | stat: -rw-r--r-- 2,490 bytes parent folder | download | duplicates (4)
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
Only in fondu-051010/: config.guess
Only in fondu-051010/: config.sub
Only in fondu-051010/: configure
diff -ur fondu/configure.in fondu-051010/configure.in
--- fondu/configure.in	2002-12-22 03:41:45.000000000 +0100
+++ fondu-051010/configure.in	2006-01-02 00:52:55.000000000 +0100
@@ -3,12 +3,9 @@
 AC_INIT(fondu.c)
 AC_PROG_CC
 AC_CANONICAL_HOST
+export HOST=$host
 
-case "$host" in
-*-apple-darwin*)
- cp Makefile.Mac Makefile
- exit 0
- ;;
-esac
+AC_SUBST(VPATH)
+AC_SUBST(HOST)
 
 AC_OUTPUT(Makefile)
diff -ur fondu/Makefile.in fondu-051010/Makefile.in
--- fondu/Makefile.in	2004-05-27 15:59:02.000000000 +0200
+++ fondu-051010/Makefile.in	2006-01-02 01:37:58.000000000 +0100
@@ -1,8 +1,14 @@
-prefix = @prefix@
+wilprefix = @prefix@
 exec_prefix = @exec_prefix@
 bindir = @bindir@
 
 CC = @CC@
+srcdir = @srcdir@
+VPATH = @srcdir@
+HOST= @HOST@
+
+
+DARWIN_CORE = $(if $(findstring apple-darwin,$(HOST)),/System/Library/Frameworks/CoreServices.framework/CoreServices,,)
 
 WFLAGS = -Wmissing-prototypes -Wunused -Wimplicit -Wreturn-type -Wparentheses -pedantic
 CFLAGS = -g $(WFLAGS)
@@ -18,22 +24,23 @@
 all: fondu ufond showfond dfont2res tobin frombin lumper setfondname
 
 fondu: $(FONDUOBJS)
-	$(CC) $(CFLAGS) -o fondu $(FONDUOBJS) -lm
+	$(CC) $(CFLAGS) -o fondu $(FONDUOBJS) -lm $(DARWIN_CORE)
+
 
 ufond: $(UFONDOBJS)
 	$(CC) $(CFLAGS) -o ufond $(UFONDOBJS)
 
 showfond: $(SHOWOBJS)
-	$(CC) $(CFLAGS) -o showfond $(SHOWOBJS)
+	$(CC) $(CFLAGS) -o showfond $(SHOWOBJS) $(DARWIN_CORE)
 
 dfont2res: $(DFONT2RESOBJS)
 	$(CC) $(CFLAGS) -o dfont2res $(DFONT2RESOBJS)
 
 tobin: $(TOBINOBJS)
-	$(CC) $(CFLAGS) -o tobin $(TOBINOBJS)
+	$(CC) $(CFLAGS) -o tobin $(TOBINOBJS) $(DARWIN_CORE)
 
 frombin: $(FROMBINOBJS)
-	$(CC) $(CFLAGS) -o frombin $(FROMBINOBJS)
+	$(CC) $(CFLAGS) -o frombin $(FROMBINOBJS) $(DARWIN_CORE)
 
 lumper: $(LUMPEROBJS)
 	$(CC) $(CFLAGS) -o lumper $(LUMPEROBJS)
@@ -48,4 +55,17 @@
 	-rm Makefile
 
 install: all
-	cp fondu ufond showfond dfont2res tobin frombin lumper setfondname $(bindir)
+	mkdir -p $(DESTDIR)$(bindir)
+	cp fondu ufond showfond dfont2res tobin frombin lumper setfondname $(DESTDIR)$(bindir)
+
+VERSION=051010
+DISTNAME=fondu-$(VERSION)
+DISTFILES=$(wildcard *.c *.1 *.h) README Makefile.in configure.in configure \
+	LICENSE install-sh config.sub config.guess
+
+
+dist:
+	mkdir $(DISTNAME)
+	ln $(DISTFILES) $(DISTNAME)/
+	tar cfz $(DISTNAME).tar.gz $(DISTNAME) 
+	rm -fr $(DISTNAME)
Only in fondu: Makefile.Mac
Only in fondu: Makefile.unix