Date: Mon, 16 Jan 2012 05:39:02 +0400 (MSK) From: Yuri Pankov <yuri.pankov@gmail.com> To: FreeBSD-gnats-submit@FreeBSD.org Cc: mm@FreeBSD.org Subject: ports/164190: [PATCH] devel/liboil: Fix build with clang Message-ID: <201201160139.q0G1d2Dr042608@sirius.xvoid.org> Resent-Message-ID: <201201160140.q0G1e9Dh001032@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 164190 >Category: ports >Synopsis: [PATCH] devel/liboil: Fix build with clang >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 Jan 16 01:40:08 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Yuri Pankov >Release: FreeBSD 10.0-CURRENT amd64 >Organization: >Environment: System: FreeBSD sirius.xvoid.org 10.0-CURRENT FreeBSD 10.0-CURRENT #2 r230135: Sun Jan 15 18:19:42 MSK >Description: Fix build with clang (use -fheinous-gcc-extensions, as the compiler suggests..). While here, remove the 6.x cruft. Port maintainer (mm@FreeBSD.org) is cc'd. Generated with FreeBSD Port Tools 0.99 >How-To-Repeat: >Fix: --- liboil-0.3.17.patch begins here --- Index: Makefile =================================================================== RCS file: /home/ncvs/ports/devel/liboil/Makefile,v retrieving revision 1.41 diff -u -r1.41 Makefile --- Makefile 11 Aug 2011 19:19:15 -0000 1.41 +++ Makefile 16 Jan 2012 01:36:35 -0000 @@ -24,23 +24,11 @@ --disable-glib CFLAGS:= ${CFLAGS:N-O*} -O2 -.include <bsd.port.pre.mk> - -.if defined(WITH_3DNOW_GCC40) && ${OSVERSION} < 700042 -USE_GCC= 4.2+ -RUN_DEPENDS+= ${BUILD_DEPENDS} +.if ${CC:T:M*clang*} +CFLAGS+= -fheinous-gnu-extensions .endif -pre-everything:: -.if ${MACHINE_CPU:M3dnow}!="" && ${OSVERSION} < 700042 -.if !defined(WITH_3DNOW_GCC40) - @${ECHO_MSG} "You can enable 3dnow extensions by defining" - @${ECHO_MSG} "WITH_3DNOW_GCC40=yes" -.endif - @${ECHO_MSG} "" - @${ECHO_MSG} "Note: ${PORTNAME} will depend on gcc4.0+ with WITH_3DNOW_GCC40" - @${ECHO_MSG} "defined." -.endif +.include <bsd.port.pre.mk> post-patch: @${REINPLACE_CMD} -e 's|\\$$(libdir)/pkgconfig|${PREFIX}/libdata/pkgconfig|' \ --- liboil-0.3.17.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201201160139.q0G1d2Dr042608>