summaryrefslogtreecommitdiff
path: root/audio/mp3stat/files/patch-Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'audio/mp3stat/files/patch-Makefile')
-rw-r--r--audio/mp3stat/files/patch-Makefile37
1 files changed, 37 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