Skip site navigation (1)Skip section navigation (2)
Date:      Tue,  5 Jul 2011 10:49:41 +0200 (CEST)
From:      Guido Falsi <mad@madpilot.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/158660: [maintainer-update] comms/gnokii: Fix build with clang
Message-ID:  <20110705084941.2EB6B14AE@megatron.madpilot.net>
Resent-Message-ID: <201107050850.p658o7OF071407@freefall.freebsd.org>

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

>Number:         158660
>Category:       ports
>Synopsis:       [maintainer-update] comms/gnokii: Fix build with clang
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 05 08:50:06 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Guido Falsi
>Release:        FreeBSD 8.2-STABLE amd64
>Organization:
none
>Environment:
System: FreeBSD megatron.madpilot.net 8.2-STABLE FreeBSD 8.2-STABLE #1: Mon Jun 6 20:10:31 CEST 2011 root@megatron.madpilot.net:/usr/obj/usr/src/sys/MEGATRON amd64

>Description:

Fix build with clang on CURRENT.

While I'm here also make portlint happy.

>How-To-Repeat:
>Fix:

diff -ruN gnokii.old/Makefile gnokii/Makefile
--- gnokii.old/Makefile	2011-07-05 10:25:40.752739255 +0200
+++ gnokii/Makefile	2011-07-05 10:48:42.380898636 +0200
@@ -26,15 +26,16 @@
 USE_GMAKE=	yes
 USE_GETTEXT=	yes
 USE_LDCONFIG=	yes
+USE_CSTD=	gnu89
 MAKE_JOBS_SAFE=	yes
 WANT_GNOME=	yes
 USE_GNOME=	intltool
 GNU_CONFIGURE=	yes
+CPPFLAGS=	${CFLAGS} -I${LOCALBASE}/include -fPIC
 CONFIGURE_ARGS+=	--with-libintl-prefix=${LOCALBASE} --enable-security \
 			--with-xgnokiidir=${PREFIX}/share
 CONFIGURE_ENV+=	MSGFMT="${LOCALBASE}/bin/msgfmt" \
 		XGETTEXT="${LOCALBASE}/bin/xgettext" \
-		CPPFLAGS="${CFLAGS} -I${LOCALBASE}/include -fPIC" \
 		LDFLAGS="-L${LOCALBASE}/lib" \
 		LIBS="-L${WRKSRC}/common -L${LOCALBASE}/lib" \
 		PKG_CONFIG="${LOCALBASE}/bin/pkg-config"
>Release-Note:
>Audit-Trail:
>Unformatted:



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