Ticket #11468: MPlayer.patch
File MPlayer.patch, 2.0 KB (added by ecronin (Eric Cronin), 18 years ago) |
---|
-
files/patch-Makefile
1 --- Makefile.orig 2006-10-24 12:08:13.000000000 -04002 +++ Makefile 2006-10-24 12:08:45.000000000 -04003 @@ -384,7 +384,7 @@4 $(STATIC_LIB) \5 6 $(PRG): $(MPLAYER_DEP)7 - $(CC) $(CFLAGS) -o $(PRG) $(OBJS_MPLAYER) $(LIBS_MPLAYER)8 + $(LD) $(CFLAGS) -o $(PRG) $(OBJS_MPLAYER) $(LIBS_MPLAYER)9 10 ifeq ($(MENCODER),yes)11 LIBS_MENCODER = libmpcodecs/libmpencoders.a \12 @@ -392,7 +392,7 @@13 $(COMMON_LIBS) \14 15 $(PRG_MENCODER): $(MENCODER_DEP)16 - $(CC) $(CFLAGS) -o $(PRG_MENCODER) $(OBJS_MENCODER) $(LIBS_MENCODER)17 + $(LD) $(CFLAGS) -o $(PRG_MENCODER) $(OBJS_MENCODER) $(LIBS_MENCODER)18 endif19 20 osdep/mplayer-rc.o: osdep/mplayer.rc -
Portfile
1 # $Id: Portfile 21 744 2007-02-05 02:18:03Z imajes@macports.org $1 # $Id: Portfile 21647 2007-01-31 20:15:25Z eridius@macports.org $ 2 2 3 3 PortSystem 1.0 4 4 name MPlayer 5 5 version 1.0rc1 6 revision 36 revision 4 7 7 categories multimedia 8 8 maintainers ecronin@gizmolabs.org \ 9 9 openmaintainer@macports.org … … 176 176 177 177 extract.only ${distname}${extract.suffix} 178 178 179 depends_ lib-appendbin:unzip:unzip179 depends_build-append bin:unzip:unzip 180 180 181 181 post-extract { 182 182 cd ${worksrcpath} … … 288 288 } 289 289 290 290 platform darwin { 291 patchfiles-append patch-Makefile 291 post-patch { 292 reinplace "s|\$\(CC\) \$\(CFLAGS\) -o|\$\(LD\) \$\(CFLAGS\) -o|g" \ 293 ${worksrcpath}/Makefile 294 reinplace "s|-isysroot /Developer/SDKs/MacOSX10.4u.sdk||g" \ 295 ${worksrcpath}/configure 296 } 292 297 build.env LD=cc 293 298 } 294 299