diff options
Diffstat (limited to 'audio/mp3stat/files')
-rw-r--r-- | audio/mp3stat/files/patch-Makefile | 37 | ||||
-rw-r--r-- | audio/mp3stat/files/patch-Makefile.rules | 83 |
2 files changed, 120 insertions, 0 deletions
diff --git a/audio/mp3stat/files/patch-Makefile b/audio/mp3stat/files/patch-Makefile new file mode 100644 index 000000000000..110d59ae2444 --- /dev/null +++ b/audio/mp3stat/files/patch-Makefile @@ -0,0 +1,37 @@ +--- Makefile.orig Fri Mar 22 17:00:23 2002 ++++ Makefile Sat Mar 23 02:46:59 2002 +@@ -4,26 +4,28 @@ + #since we're using c++, we use CXXFLAGS since that's standard. + #If you only set CFLAGS, you should also look into setting CXXFLAGS + +-TBUILDFLAGS = -Wall -lvorbis -lvorbisfile -lm $(CXXFLAGS) ++TBUILDFLAGS = -L${LOCALBASE}/lib -lvorbis -lvorbisfile -lm $(CXXFLAGS) + +-BUILDFLAGS = -Wall -lvorbis -lvorbisfile `glib-config --cflags` `gtk-config --cflags` `gtk-config --libs` `glib-config --libs` -lm $(CXXFLAGS) ++BUILDFLAGS = -L${LOCALBASE}/lib -lvorbis -lvorbisfile `${GTK_CONFIG} --cflags` `${GTK_CONFIG} --libs` -lm $(CXXFLAGS) + #comment out below and comment above to enable experimental gtk2 ui + #BUILDFLAGS = -Wall -lvorbis -lvorbisfile `pkg-config --cflags gtk+-2.0` `pkg-config --libs gtk+-2.0` -lm $(CXXFLAGS) + +-TBUILD2FLAGS = -Wall -lm $(CXXFLAGS) ++TBUILD2FLAGS = -lm $(CXXFLAGS) + +-BUILD2FLAGS = -Wall `glib-config --cflags` `gtk-config --cflags` `gtk-config --libs` `glib-config --libs` -lm $(CXXFLAGS) ++BUILD2FLAGS = `${GTK_CONFIG} --cflags` `${GTK_CONFIG} --libs` -lm $(CXXFLAGS) + #comment out below and comment above to enable experimental gtk2 ui + #BUILD2FLAGS = -Wall `pkg-config --cflags gtk+-2.0` `pkg-config --libs gtk+-2.0` -lm $(CXXFLAGS) + + #To disable Vorbis support, comment out next line +-VORBIS = -DVORBIS ++ifdef WITH_VORBIS ++VORBIS = -DVORBIS -I${LOCALBASE}/include ++endif + + #To compile text only utility, comment out next line + GTK = -DGTK + + CPPFLAGS = -Wall -DVERSION=\"$(VER)\" $(VORBIS) + +-CXX = g++ ++#CXX = g++ + + include Makefile.rules diff --git a/audio/mp3stat/files/patch-Makefile.rules b/audio/mp3stat/files/patch-Makefile.rules new file mode 100644 index 000000000000..fc8e80c7e473 --- /dev/null +++ b/audio/mp3stat/files/patch-Makefile.rules @@ -0,0 +1,83 @@ +--- Makefile.rules.orig Fri Mar 22 17:00:23 2002 ++++ Makefile.rules Sat Mar 23 02:51:37 2002 +@@ -18,63 +18,26 @@ + WEBPAGE = "http://safemode.homeip.net" + + all: +- @if test -n "$(VORBIS)"; then \ +- echo "";\ +- echo "___ building backend ___";\ +- echo "Using flags: $(CXXFLAGS)";\ +- echo "";\ +- echo "building $(OBJ)";\ +- $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c -o $(OBJ) $(OBJSRC);\ +- echo "building $(OBJ2)";\ +- $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c -o $(OBJ2) $(OBJ2SRC);\ +- echo "";\ +- echo "___ building frontend ___";\ +- if test -n "$(GTK)"; then \ +- echo "Using flags: $(CXXFLAGS) $(BUILDFLAGS)";\ +- echo "";\ +- echo "building and linking $(TARGET)";\ +- $(CXX) $(BUILDFLAGS) $(CPPFLAGS) -o $(TARGET) $(SRC) $(OBJ) $(OBJ2);\ +- else \ +- echo "Using flags: $(CXXFLAGS) $(TBUILDFLAGS)";\ +- echo "";\ +- echo "building and linking $(TARGET)";\ +- $(CXX) $(TBUILDFLAGS) $(CPPFLAGS) -o $(TARGET) $(TSRC) $(OBJ) $(OBJ2);\ +- fi\ +- else \ +- echo "";\ +- echo "___ building backend ___";\ +- echo "Using flags: $(CXXFLAGS)";\ +- echo "";\ +- echo "building $(OBJ)";\ +- $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c -o $(OBJ) $(OBJSRC);\ +- echo "";\ +- echo "___ building frontend ___";\ +- if test -n "$(GTK)"; then \ +- echo "Using flags: $(CXXFLAGS) $(BUILD2FLAGS)";\ +- echo "";\ +- echo "building and linking $(TARGET)";\ +- $(CXX) $(BUILD2FLAGS) $(CPPFLAGS) -o $(TARGET) $(SRC) $(OBJ);\ +- else \ +- echo "Using flags: $(CXXFLAGS) $(TBUILD2FLAGS)";\ +- echo "";\ +- echo "building and linking $(TARGET)";\ +- $(CXX) $(TBUILD2FLAGS) $(CPPFLAGS) -o $(TARGET) $(TSRC) $(OBJ);\ +- 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 + |