ports/89027: [patch] multimedia/mplayer to uphold CC

Mario Sergio Fujikawa Ferreira lioux at FreeBSD.org
Mon Nov 14 18:50:17 UTC 2005


>Number:         89027
>Category:       ports
>Synopsis:       [patch] multimedia/mplayer to uphold CC
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Nov 14 18:50:16 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Mario Sergio Fujikawa Ferreira
>Release:        FreeBSD 5.4-STABLE i386
>Organization:
>Environment:
System: FreeBSD exxodus.fedaykin.here 5.4-STABLE FreeBSD 5.4-STABLE #13: Wed Nov 2 10:58:23 BRST 2005 lioux at exxodus:/usr/src/sys/i386/compile/LIOUX i386

>Description:

	mplayer does not uphold CC compiler variable. The following patch
fixes that.

>How-To-Repeat:

	Patch and build with ccache for instance to see mplayer using it.

>Fix:

--- patch-Makefile begins here ---
--- Makefile.orig	Mon Nov 14 15:15:32 2005
+++ Makefile	Mon Nov 14 16:38:02 2005
@@ -302,6 +302,8 @@
 		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 @@
 		${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 ; \
--- patch-Makefile ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list