aboutsummaryrefslogtreecommitdiffstats
path: root/audio/mp3stat/files/patch-Makefile.rules
blob: 28e14a4b01fbe92eebb8c182f7475a2839484ac9 (plain) (blame)
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
--- Makefile.rules.orig Tue Mar 26 14:21:02 2002
+++ Makefile.rules  Tue Mar 26 14:22:36 2002
@@ -18,63 +18,25 @@
 WEBPAGE  = "http://safemode.homeip.net"
 
 all:
-   @if test -n "$(VORBIS)"; then \
-       echo "";\
-       echo "___ building backend ___";\
-       echo "Using flags: $(BFLAGS)";\
-       echo "";\
-       echo "building $(OBJ)";\
-       $(CXX) $(BFLAGS) $(CPPFLAGS) -c -o $(OBJ) $(OBJSRC);\
-       echo "building $(OBJ2)";\
-       $(CXX) $(BFLAGS) $(CPPFLAGS) -c -o $(OBJ2) $(OBJ2SRC);\
-       echo "";\
-       echo "___ building frontend ___";\
-       if test -n "$(GTK)"; then \
-       echo "Using flags: $(BUILDFLAGS)";\
-           echo "";\
-           echo "building and linking $(TARGET)";\
-           $(CXX) $(CPPFLAGS) -o $(TARGET) $(SRC) $(OBJ) $(OBJ2) $(BUILDFLAGS);\
-       else \
-       echo "Using flags: $(TBUILDFLAGS)";\
-       echo "";\
-       echo "building and linking $(TARGET)";\
-       $(CXX) $(CPPFLAGS) -o $(TARGET) $(TSRC) $(OBJ) $(OBJ2) $(TBUILDFLAGS);\
-       fi\
-   else \
-       echo "";\
-       echo "___ building backend ___";\
-       echo "Using flags: $(CXXFLAGS)";\
-       echo "";\
-       echo "building $(OBJ)";\
-       $(CXX) $(BFLAGS) $(CPPFLAGS) -c -o $(OBJ) $(OBJSRC);\
-       echo "";\
-       echo "___ building frontend ___";\
-       if test -n "$(GTK)"; then \
-       echo "Using flags: $(BUILD2FLAGS)";\
-       echo "";\
-       echo "building and linking $(TARGET)";\
-       $(CXX) $(CPPFLAGS) -o $(TARGET) $(SRC) $(OBJ) $(BUILD2FLAGS);\
-       else \
-       echo "Using flags: $(TBUILD2FLAGS)";\
-       echo "";\
-       echo "building and linking $(TARGET)";\
-       $(CXX) $(CPPFLAGS) -o $(TARGET) $(TSRC) $(OBJ) $(TBUILD2FLAGS);\
-       fi\
-   fi
-   @echo " "
-   @echo "-------------------------------------------"
-   @echo "Vorbis support is set by default."
-   @echo "to disable edit Makefile and comment VORBIS"
-   @echo " "
-   @echo "gtk 1.2 ui built by default, to enable"
-   @echo "gtk 2.0 ui read the Makefile"
-   @echo "To disable, edit Makefile and comment GTK"
-   @echo "-------------------------------------------"
+ifdef VORBIS
+   $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c -o $(OBJ) $(OBJSRC)
+   $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c -o $(OBJ2) $(OBJ2SRC)
+ifdef GTK
+       $(CXX) $(BUILDFLAGS) $(CPPFLAGS) -o $(TARGET) $(SRC) $(OBJ) $(OBJ2)
+else
+       $(CXX) $(TBUILDFLAGS) $(CPPFLAGS) -o $(TARGET) $(TSRC) $(OBJ) $(OBJ2)
+endif
+else
+   $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c -o $(OBJ) $(OBJSRC)
+ifdef GTK
+       $(CXX) $(BUILD2FLAGS) $(CPPFLAGS) -o $(TARGET) $(SRC) $(OBJ)
+else
+       $(CXX) $(TBUILD2FLAGS) $(CPPFLAGS) -o $(TARGET) $(TSRC) $(OBJ)
+endif
+endif
 
 clean:
    rm -f *.o mp3stat
 
 install:
-   strip $(TARGET)
-   cp $(TARGET) /usr/local/bin
-
+   ${BSD_INSTALL_PROGRAM} $(TARGET) ${PREFIX}/bin