Skip site navigation (1)Skip section navigation (2)
Date:      14 Nov 2005 16:42:42 -0200
From:      Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        riggs@rrr.de
Subject:   ports/89027: [patch] multimedia/mplayer to uphold CC
Message-ID:  <20051114184304.52481.qmail@exxodus.fedaykin.here>
Resent-Message-ID: <200511141850.jAEIoGMs055258@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051114184304.52481.qmail>