Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Mar 2014 14:48:52 +0000 (UTC)
From:      Ryan Steinmetz <zi@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r348479 - in head/mail/mutt: . files
Message-ID:  <201403171448.s2HEmq94097208@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: zi
Date: Mon Mar 17 14:48:52 2014
New Revision: 348479
URL: http://svnweb.freebsd.org/changeset/ports/348479
QAT: https://qat.redports.org/buildarchive/r348479/

Log:
  - Fix build with clang
  
  PR:		ports/187418
  Submitted by:	"Schweigert, Udo" <Udo.Schweigert@siemens.com> (maintainer)

Modified:
  head/mail/mutt/Makefile
  head/mail/mutt/files/patch-Makefile.am

Modified: head/mail/mutt/Makefile
==============================================================================
--- head/mail/mutt/Makefile	Mon Mar 17 14:46:53 2014	(r348478)
+++ head/mail/mutt/Makefile	Mon Mar 17 14:48:52 2014	(r348479)
@@ -52,7 +52,7 @@ CONFIGURE_ARGS+=	${MUTT_CONFIGURE_ARGS}
 .endif
 
 USE_AUTOTOOLS=	automake autoconf
-AUTOMAKE_ARGS=	--add-missing
+AUTOMAKE_ARGS=	--add-missing --foreign
 USE_OPENSSL=	yes
 
 .if defined (MUTT_LITE)
@@ -267,18 +267,18 @@ CONFIGURE_ARGS+=	--with-gss=${LOCALBASE}
 .elif exists(${KRB5_HOME}/bin/krb5-config)
 LIB_DEPENDS+=		libgssapi_krb5.so:${PORTSDIR}/security/krb5
 CONFIGURE_ARGS+=	--with-gss=${KRB5_HOME}
-LDFLAGS+=		-L${KRB5_HOME}/lib -rpath=${KRB5_HOME}/lib -ltinfow
+LDFLAGS+=		-L${KRB5_HOME}/lib -Wl,-rpath=${KRB5_HOME}/lib -ltinfow
 .elif exists(${HEIMDAL_HOME}/bin/krb5-config)
 LIB_DEPENDS+=		libgssapi_krb5.so:${PORTSDIR}/security/krb5
 CONFIGURE_ARGS+=	--with-gss=${HEIMDAL_HOME}
-LDFLAGS+=		-L${HEIMDAL_HOME}/lib -rpath=${HEIMDAL_HOME}/lib -ltinfow
+LDFLAGS+=		-L${HEIMDAL_HOME}/lib -Wl,-rpath=${HEIMDAL_HOME}/lib -ltinfow
 .elif (defined(MAKE_KERBEROS5)) || exists(/usr/lib/libkrb5.a)
 CONFIGURE_ARGS+=	--with-gss
 WITH_KRB5_SYS=YES
 .endif
 .endif
 
-LDFLAGS+=		-L${LOCALBASE}/lib -rpath=${LOCALBASE}/lib:/usr/lib -ltinfow
+LDFLAGS+=		-L${LOCALBASE}/lib -Wl,-rpath=${LOCALBASE}/lib:/usr/lib -ltinfow
 CFLAGS+=		${CFLAGS_ADD}
 LDFLAGS+=		${LDFLAGS_ADD}
 
@@ -371,6 +371,7 @@ post-patch::
 
 pre-configure::
 	@(cd ${WRKSRC}; ${SETENV} ${AUTOMAKE_ENV} ${ACLOCAL} -I m4)
+	@${RM} -f ${WRKSRC}/missing
 .if defined(WITH_KRB5_SYS)
 	@${ECHO_CMD} "#define HAVE_HEIMDAL" >> ${WRKSRC}/config.h.in
 	@${REINPLACE_CMD} -e 's|<gssapi/gssapi\.h>|<gssapi.h>|' \

Modified: head/mail/mutt/files/patch-Makefile.am
==============================================================================
--- head/mail/mutt/files/patch-Makefile.am	Mon Mar 17 14:46:53 2014	(r348478)
+++ head/mail/mutt/files/patch-Makefile.am	Mon Mar 17 14:48:52 2014	(r348479)
@@ -1,6 +1,15 @@
---- Makefile.am.orig	2008-05-19 19:00:44.000000000 +0200
-+++ Makefile.am	2008-05-19 19:03:20.000000000 +0200
-@@ -136,10 +136,6 @@
+--- Makefile.am.orig	2014-03-12 17:03:44.000000000 +0100
++++ Makefile.am	2014-03-16 17:22:07.000000000 +0100
+@@ -97,7 +97,7 @@
+ 
+ # If this fails, we will fall back to the implementation in txt2c.sh
+ txt2c: txt2c.c
+-	-$${NATIVECC-$(CC)} -o $@ $<
++	-$(CC) -o $@ $<
+ 
+ conststrings.c: txt2c config.status
+ 	( \
+@@ -162,10 +162,6 @@
  
  install-data-local:
  	$(srcdir)/mkinstalldirs $(DESTDIR)$(sysconfdir)



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