ports/139965: [patch] graphics/openjpeg: use $(CC) instead of `gcc'
Anonymous
swell.k at gmail.com
Sun Oct 25 16:00:14 UTC 2009
>Number: 139965
>Category: ports
>Synopsis: [patch] graphics/openjpeg: use $(CC) instead of `gcc'
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sun Oct 25 16:00:10 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator: Anonymous
>Release: FreeBSD 9.0-CURRENT amd64
>Organization:
>Environment:
System: FreeBSD 9.0-CURRENT #0 198464M: Sun Oct 25 10:34:20 UTC 2009 holo at raphael.local:/a/objdir/a/dirty_build/sys/PHOENIX amd64
>Description:
>How-To-Repeat:
$ make CC=gcc44 |& fgrep 'gcc '
gcc -O2 -pipe -march=native -fno-strict-aliasing -Wall -std=c99 -fPIC -Ilibopenjpeg -O3 -fPIC -Ilibopenjpeg_JPWL -DUSE_JPWL ../codec/convert.c ../codec/image_to_j2k.c ../codec/index.c -o JPWL_image_to_j2k -I ../libopenjpeg/ -L . -L/usr/local/lib -lopenjpeg_JPWL -lm -ltiff
gcc -O2 -pipe -march=native -fno-strict-aliasing -Wall -std=c99 -fPIC -Ilibopenjpeg -O3 -fPIC -Ilibopenjpeg_JPWL -DUSE_JPWL ../codec/convert.c ../codec/j2k_to_image.c ../codec/index.c -o JPWL_j2k_to_image -I ../libopenjpeg/ -L . -L/usr/local/lib -lopenjpeg_JPWL -lm -ltiff
>Fix:
--- respect_CC.diff begins here ---
Index: graphics/openjpeg/Makefile
===================================================================
RCS file: /a/.cvsup/ports/graphics/openjpeg/Makefile,v
retrieving revision 1.13
diff -u -p -r1.13 Makefile
--- graphics/openjpeg/Makefile 31 Jul 2009 13:52:30 -0000 1.13
+++ graphics/openjpeg/Makefile 25 Oct 2009 12:26:22 -0000
@@ -7,7 +7,7 @@
PORTNAME= openjpeg
PORTVERSION= 1.3
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= graphics
MASTER_SITES= http://www.openjpeg.org/ \
${MASTER_SITE_LOCAL}
@@ -36,6 +36,9 @@ PLIST_FILES= include/openjpeg.h \
SHLIB_VER= 2
+post-patch: .SILENT
+ ${FIND} ${WRKSRC} -type f -name Makefile -exec ${REINPLACE_CMD} 's|gcc|$$(CC)|g' {} +
+
do-install:
${INSTALL_DATA} ${WRKSRC}/libopenjpeg/openjpeg.h ${PREFIX}/include/
${INSTALL_DATA} ${WRKSRC}/libopenjpeg.a ${PREFIX}/lib/
--- respect_CC.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list