Lines 1-5
Link Here
|
1 |
--- mkfiles/freebsd.orig Thu May 16 18:08:35 2002 |
1 |
--- mkfiles/freebsd.orig Thu May 30 03:58:51 2002 |
2 |
+++ mkfiles/freebsd Tue May 28 02:00:05 2002 |
2 |
+++ mkfiles/freebsd Fri May 31 21:18:56 2002 |
3 |
@@ -6,8 +6,8 @@ |
3 |
@@ -6,8 +6,8 @@ |
4 |
# if you wish you may change PREFIX to be /usr/local, |
4 |
# if you wish you may change PREFIX to be /usr/local, |
5 |
# for example |
5 |
# for example |
Lines 30-43
Link Here
|
30 |
+LIBS = ${PTHREAD_LIBS} |
30 |
+LIBS = ${PTHREAD_LIBS} |
31 |
|
31 |
|
32 |
|
32 |
|
33 |
-DEFAULT_CFLAGS = -I. -D_THREAD_SAFE -D_REENTRANT -DBINARY_DIR="\"$(BINARYDIR)\"" -DSYSCONFDIR="\"$(CONFIGDIR)\"" -DVERSION="\"0.9.9.7\"" |
33 |
-DEFAULT_CFLAGS = -I. -D_THREAD_SAFE -D_REENTRANT -DBINARY_DIR="\"$(BINARYDIR)\"" -DSYSCONFDIR="\"$(CONFIGDIR)\"" -DVERSION="\"0.9.9.8\"" |
34 |
-CFLAGS = $(DEFAULT_CFLAGS) -Wall -DFREEBSD=1 -DOS_TYPE="\"FreeBSD\"" |
34 |
-CFLAGS = $(DEFAULT_CFLAGS) -Wall -DFREEBSD=1 -DOS_TYPE="\"FreeBSD\"" |
35 |
+DEFAULT_CFLAGS = -I. ${PTHREAD_CFLAGS} -D_REENTRANT -DBINARY_DIR="\"$(BINARYDIR)\"" -DSYSCONFDIR="\"$(CONFIGDIR)\"" -DVERSION="\"0.9.9.7\"" |
35 |
+DEFAULT_CFLAGS = -I. ${PTHREAD_CFLAGS} -D_REENTRANT -DBINARY_DIR="\"$(BINARYDIR)\"" -DSYSCONFDIR="\"$(CONFIGDIR)\"" -DVERSION="\"0.9.9.8\"" |
36 |
+CFLAGS += $(DEFAULT_CFLAGS) -Wall -DFREEBSD=1 -DOS_TYPE="\"FreeBSD\"" |
36 |
+CFLAGS += $(DEFAULT_CFLAGS) -Wall -DFREEBSD=1 -DOS_TYPE="\"FreeBSD\"" |
37 |
|
37 |
|
38 |
|
38 |
|
39 |
# |
39 |
# |
40 |
@@ -110,22 +110,22 @@ |
40 |
@@ -113,19 +113,25 @@ |
41 |
# Install the software. |
41 |
# Install the software. |
42 |
# |
42 |
# |
43 |
install: $(PROG) |
43 |
install: $(PROG) |
Lines 45-75
Link Here
|
45 |
- install ../mp3d $(BINARYDIR) |
45 |
- install ../mp3d $(BINARYDIR) |
46 |
- install ../contrib/stats/mp3d-top $(BINARYDIR) |
46 |
- install ../contrib/stats/mp3d-top $(BINARYDIR) |
47 |
- install ../mp3d.conf $(CONFIGDIR) |
47 |
- install ../mp3d.conf $(CONFIGDIR) |
48 |
+ mkdir -p $(BINARYDIR) $(CONFIGDIR) $(TEMPLATEDIR) |
48 |
+ -mkdir -p $(BINARYDIR) $(CONFIGDIR) $(TEMPLATEDIR) |
49 |
+ ${BSD_INSTALL_PROGRAM} ../mp3d $(BINARYDIR) |
49 |
+ ${BSD_INSTALL_PROGRAM} ../mp3d $(BINARYDIR) |
50 |
+ ${BSD_INSTALL_SCRIPT} ../contrib/stats/mp3d-top $(BINARYDIR) |
50 |
+ ${BSD_INSTALL_SCRIPT} ../contrib/stats/mp3d-top $(BINARYDIR) |
51 |
+ ${BSD_INSTALL_DATA} ../mp3d.conf $(CONFIGDIR) |
51 |
+ ${BSD_INSTALL_DATA} ../mp3d.conf $(CONFIGDIR) |
52 |
# Default template. |
52 |
# Install all the theme directories. |
53 |
- install -d $(TEMPLATEDIR)/default |
53 |
- for i in ../templates/*/; do cp -R ../templates/$$i $(TEMPLATEDIR); done |
54 |
- cp -R ../templates/default/ $(TEMPLATEDIR) |
|
|
55 |
+ mkdir -p $(TEMPLATEDIR)/default |
56 |
+ ${BSD_INSTALL_DATA} ../templates/default/* $(TEMPLATEDIR)/default |
57 |
# Simple template |
58 |
- install -d $(TEMPLATEDIR)/simple |
59 |
- cp -R ../templates/simple/ $(TEMPLATEDIR) |
60 |
- install ../templates/README $(TEMPLATEDIR) |
54 |
- install ../templates/README $(TEMPLATEDIR) |
61 |
+ mkdir -p $(TEMPLATEDIR)/simple |
55 |
- chmod -R 555 $(TEMPLATEDIR) |
|
|
56 |
+ -mkdir -p $(TEMPLATEDIR)/default |
57 |
+ ${BSD_INSTALL_DATA} ../templates/default/* $(TEMPLATEDIR)/default |
58 |
+ -mkdir -p $(TEMPLATEDIR)/nausicaa |
59 |
+ ${BSD_INSTALL_DATA} ../templates/nausicaa/* $(TEMPLATEDIR)/nausicaa |
60 |
+ -mkdir -p $(TEMPLATEDIR)/simple |
62 |
+ ${BSD_INSTALL_DATA} ../templates/simple/* $(TEMPLATEDIR)/simple |
61 |
+ ${BSD_INSTALL_DATA} ../templates/simple/* $(TEMPLATEDIR)/simple |
|
|
62 |
+ -mkdir -p $(TEMPLATEDIR)/split |
63 |
+ ${BSD_INSTALL_DATA} ../templates/split/* $(TEMPLATEDIR)/split |
63 |
+ ${BSD_INSTALL_DATA} ../templates/README $(TEMPLATEDIR) |
64 |
+ ${BSD_INSTALL_DATA} ../templates/README $(TEMPLATEDIR) |
64 |
# Man pages. |
65 |
# Man pages. |
65 |
- install -d $(MANDIR) |
66 |
- install -d $(MANDIR) |
66 |
- install ../doc/mp3d.1 $(MANDIR) |
67 |
- install ../doc/mp3d.1 $(MANDIR) |
67 |
- install ../doc/mp3d.conf.1 $(MANDIR) |
68 |
- install ../doc/mp3d.conf.1 $(MANDIR) |
68 |
- install ../doc/mp3d-top.1 $(MANDIR) |
69 |
- install ../doc/mp3d-top.1 $(MANDIR) |
69 |
+ mkdir -p $(MANDIR) |
70 |
+ -mkdir -p $(MANDIR) |
70 |
+ ${BSD_INSTALL_DATA} ../doc/mp3d.1 $(MANDIR) |
71 |
+ ${BSD_INSTALL_MAN} ../doc/mp3d.1 $(MANDIR) |
71 |
+ ${BSD_INSTALL_DATA} ../doc/mp3d.conf.1 $(MANDIR) |
72 |
+ ${BSD_INSTALL_MAN} ../doc/mp3d.conf.1 $(MANDIR) |
72 |
+ ${BSD_INSTALL_DATA} ../doc/mp3d-top.1 $(MANDIR) |
73 |
+ ${BSD_INSTALL_MAN} ../doc/mp3d-top.1 $(MANDIR) |
73 |
|
74 |
|
74 |
|
75 |
|
75 |
# |
76 |
# |