View | Details | Raw Unified | Return to bug 98914
Collapse All | Expand All

(-)/usr/ports/multimedia/mplayer/files/patch-ad (-1 / +7 lines)
Lines 152-158 Link Here
152
   fi
152
   fi
153
   # internal faad: check if our dear gcc is able to compile it...
153
   # internal faad: check if our dear gcc is able to compile it...
154
   cp "`pwd`/libfaad2/cfft.c" $TMPC
154
   cp "`pwd`/libfaad2/cfft.c" $TMPC
155
@@ -5935,7 +5874,7 @@
155
@@ -5935,12 +5878,12 @@
156
 cat > $TMPC << EOF
156
 cat > $TMPC << EOF
157
 #include <inttypes.h>
157
 #include <inttypes.h>
158
 #include <x264.h>
158
 #include <x264.h>
Lines 161-166 Link Here
161
 #error We do not support old versions of x264. Get the latest from SVN.
161
 #error We do not support old versions of x264. Get the latest from SVN.
162
 #endif
162
 #endif
163
 int main(void) { x264_encoder_open((void*)0); return 0; }
163
 int main(void) { x264_encoder_open((void*)0); return 0; }
164
 EOF
165
-_ld_x264="$_ld_x264 -lx264 $_ld_lm"
166
+_ld_x264="$_ld_x264 `pkg-config --libs x264` $_ld_lm"
167
 if test "$_x264" != no && cc_check $_inc_x264 $_ld_x264 ; then
168
   _x264=yes
169
   _def_x264='#define HAVE_X264 1'
164
@@ -6115,8 +6054,11 @@
170
@@ -6115,8 +6054,11 @@
165
  if test "$_tv" = yes ; then
171
  if test "$_tv" = yes ; then
166
     cat > $TMPC <<EOF
172
     cat > $TMPC <<EOF

Return to bug 98914