summaryrefslogblamecommitdiff
path: root/audio/mp3stat/files/patch-Makefile
blob: e09b11024a0054a9d0ed3c1af8507f5e37707c1c (plain) (tree)
1
2
3
4
5
6
7
8
9
10


                                                
 
                                
 



                                                                                                                                                           
 



                                                                                                                              









                                                     











                                                                                          




                        
--- Makefile.orig	Tue Mar 26 14:15:51 2002
+++ Makefile	Tue Mar 26 14:20:29 2002
@@ -6,24 +6,26 @@
 
 BFLAGS		   = $(CXXFLAGS)
 
-BUILDFLAGS         = -Wall -lvorbis -lvorbisfile -logg `glib-config --cflags` `gtk-config --cflags` `gtk-config --libs` `glib-config --libs` -lm $(BFLAGS)
+BUILDFLAGS         = -L${LOCALBASE}/lib -lvorbis -lvorbisfile -logg `${GTK_CONFIG} --cflags` `${GTK_CONFIG} --libs` -lm $(BFLAGS)
 #comment out below to enable experimental gtk2 ui
 #BUILDFLAGS         = -Wall -lvorbis -lvorbisfile -logg `pkg-config --cflags gtk+-2.0` `pkg-config --libs gtk+-2.0` -lm $(BFLAGS)
 
-BUILD2FLAGS	   = -Wall `glib-config --cflags` `gtk-config --cflags` `gtk-config --libs` `glib-config --libs` -lm $(BFLAGS)
+BUILD2FLAGS	   = `${GTK_CONFIG} --cflags` `${GTK_CONFIG} --libs` -lm $(BFLAGS)
 #comment out below to enable experimental gtk2 ui
 #BUILD2FLAGS        = -Wall `pkg-config --cflags gtk+-2.0` `pkg-config --libs gtk+-2.0` -lm $(BFLAGS)
 
 #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
 
 
 #Text ui for win32 and *nix  (only built when GTK is commented out)
-TBUILDFLAGS	   = -Wall -lvorbis -lvorbisfile -lm $(BFLAGS)
-TBUILD2FLAGS	   = -Wall -lm $(BFLAGS)
+TBUILDFLAGS	   = -L${LOCALBASE}/lib -lvorbis -lvorbisfile -lm $(BFLAGS)
+TBUILD2FLAGS	   = -lm $(BFLAGS)
 
 #Win32 gtk build flags.  Uncomment these when building in win32  (only tested with gtk2)
 #prebuilt vorbis and ogg libs found at xiph.org do not seem to work when used with cygwin
@@ -38,6 +40,6 @@
 
 CPPFLAGS         = -Wall -DVERSION=\"$(VER)\" $(VORBIS) $(WIN32)
 
-CXX              = g++
+#CXX              = g++
 
 include Makefile.rules