svn commit: r317079 - in head/print/c2ps: . files

Hiroki Sato hrs at FreeBSD.org
Thu May 2 07:12:13 UTC 2013


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 *~


More information about the svn-ports-all mailing list