Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 May 2013 07:12:13 +0000 (UTC)
From:      Hiroki Sato <hrs@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r317079 - in head/print/c2ps: . files
Message-ID:  <201305020712.r427CDCt028715@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hrs
Date: Thu May  2 07:12:12 2013
New Revision: 317079
URL: http://svnweb.freebsd.org/changeset/ports/317079

Log:
  Fix a build breakage when CFLAGS is defined in make.conf.
  
  PR:	ports/178292

Modified:
  head/print/c2ps/Makefile
  head/print/c2ps/files/patch-Makefile

Modified: head/print/c2ps/Makefile
==============================================================================
--- head/print/c2ps/Makefile	Thu May  2 07:09:17 2013	(r317078)
+++ head/print/c2ps/Makefile	Thu May  2 07:12:12 2013	(r317079)
@@ -13,7 +13,7 @@ COMMENT=	A PostScript pretty-printer for
 
 LIB_DEPENDS=	paper:${PORTSDIR}/print/libpaper
 
-CFLAGS+=	-I${LOCALBASE}/include
+MAKE_ENV=	CCFLAGS="${CFLAGS} -I${LOCALBASE}/include"
 MAN1=		c2ps.1
 PLIST_FILES=	bin/c2ps
 

Modified: head/print/c2ps/files/patch-Makefile
==============================================================================
--- head/print/c2ps/files/patch-Makefile	Thu May  2 07:09:17 2013	(r317078)
+++ head/print/c2ps/files/patch-Makefile	Thu May  2 07:12:12 2013	(r317079)
@@ -1,5 +1,5 @@
 --- Makefile.orig	1997-05-16 00:50:56.000000000 +0900
-+++ Makefile	2013-04-27 18:57:47.000000000 +0900
++++ Makefile	2013-05-02 15:48:59.000000000 +0900
 @@ -2,12 +2,12 @@
  # Last modified: Sat Apr 19 1997
  
@@ -39,7 +39,7 @@
  
  compile:	c2ps.c
 -	$(CC) $(PREP_OPTIONS) $(CCFLAGS) -o c2ps c2ps.c
-+	$(CC) $(PREP_OPTIONS) $(CFLAGS) -o c2ps c2ps.c -L${LOCALBASE}/lib -lm -lpaper
++	$(CC) $(PREP_OPTIONS) $(CCFLAGS) -o c2ps c2ps.c -L${LOCALBASE}/lib -lm -lpaper
  
  clean:
  	$(RM) c2ps *.o core *~



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