1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-21 20:38:45 +00:00

Make sure that the configure additionally look for ALL codec libraries

in -L${LOCALBASE}/lib instead of adding this check for each codec
alone

Submitted by:	mezz
Reviewed by:	ahze
This commit is contained in:
Mario Sergio Fujikawa Ferreira 2005-05-19 02:57:30 +00:00
parent 27042fd089
commit 917cd0b403
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=135575

View File

@ -430,11 +430,14 @@ post-patch:
${XARGS} -0 -n 5 -x \
${REINPLACE_CMD} -E \
-e 's@^(CFLAGS.+)$$@\1 ${FFMPEG_CFLAGS}@' \
-e 's@^(FFLIBS|LDFLAGS)(.+)$$@\1\2 ${FFMPEG_LDFLAGS}@' \
-e 's@^(FFLIBS|LDFLAGS)(.+)$$@\1\2 ${FFMPEG_LDFLAGS}@'
# fix x264 math, use correct log base 2 from math(3)
@${REINPLACE_CMD} -E \
-e 's| log2| log|' \
${WRKSRC}/libavcodec/x264.c
@${REINPLACE_CMD} -E \
-e "s|(EXTRALIBS[[:space:]]*=)|\1-L${LOCALBASE}/lib |g" \
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
# force detection of texi2html
.ifndef(NOPORTDOCS)
@${REINPLACE_CMD} -E \
@ -532,12 +535,6 @@ post-configure:
${WRKSRC}/config.mak \
${WRKSRC}/libavcodec/Makefile
.endif
.ifdef(WITH_X264)
@${REINPLACE_CMD} -E \
-e 's|(-lx264)|-L${LOCALBASE}/lib \1|' \
${WRKSRC}/config.mak \
${WRKSRC}/libavcodec/Makefile
.endif
.ifndef(WITH_THEORA)
@${REINPLACE_CMD} -E \
-e 's|^(CONFIG_LIBTHEORA).*$$|\1=no|' \