aboutsummaryrefslogtreecommitdiff
path: root/multimedia
diff options
context:
space:
mode:
authorFlorent Thoumie <flz@FreeBSD.org>2005-11-29 19:02:12 +0000
committerFlorent Thoumie <flz@FreeBSD.org>2005-11-29 19:02:12 +0000
commit490bf2bc719c783e2e7bf0283c2fb590ac8e6262 (patch)
tree229d6ed74cce87bec86a2343a5a108e94d634b39 /multimedia
parentdeb93487989ddc78609b7aa5bc24b321fc3b9785 (diff)
Notes
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/mplayer/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/multimedia/mplayer/Makefile b/multimedia/mplayer/Makefile
index b37939a45bd7..932f25b7623a 100644
--- a/multimedia/mplayer/Makefile
+++ b/multimedia/mplayer/Makefile
@@ -302,6 +302,8 @@ CONFIGURE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
TMPDIR="${WRKSRC}"
CONFIGURE_ARGS= --with-extralibdir=${LOCALBASE}/lib \
--with-extraincdir=${LOCALBASE}/include \
+ --cc=${CC} \
+ --as=${AS} \
--enable-png \
--enable-menu \
--disable-libfame \
@@ -881,6 +883,13 @@ post-patch:
${WRKSRC}/${CONFIGURE_SCRIPT}
@${REINPLACE_CMD} -e 's!/usr/local!${PREFIX}!' \
${WRKSRC}/${CONFIGURE_SCRIPT}
+ @${FIND} -E ${WRKSRC} -type f -print0 \
+ -iregex ".*(configure|.sh|Makefile)" | \
+ ${XARGS} -x -0 -n 10 \
+ ${REINPLACE_CMD} -E \
+ -e 's|[[:space:]]gcc[-[:digit:]\.]+| ${CC}|' \
+ -e 's|[[:space:]]gcc| ${CC}|' \
+ -e 's|\$$\(CC\)|${CC}|'
@${FIND} ${WRKSRC}/DOCS/man -name "mplayer.1" | ${XARGS} ${REINPLACE_CMD} -E -e \
's|/usr/\\:local/\\:etc/\\:mplayer|${DATADIR:S/\//\/\\\:/g}|g ; \
s|/dev/\\:(dvd[[:alnum:]]*[[:>:]])|${DEFAULT_DVD_DEVICE:S/dev\//dev\/\\\:/}|g ; \