Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Feb 2014 19:10:51 +0000 (UTC)
From:      Pawel Pekala <pawel@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r342590 - in head/print/ansiprint: . files
Message-ID:  <201402041910.s14JApMk012877@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pawel
Date: Tue Feb  4 19:10:51 2014
New Revision: 342590
URL: http://svnweb.freebsd.org/changeset/ports/342590
QAT: https://qat.redports.org/buildarchive/r342590/

Log:
  - Fix build with clang [1]
  - Support stage
  
  PR:		ports/182043 [1]
  Submitted by:	maintainer
  MFH:		2014Q1

Added:
  head/print/ansiprint/files/
  head/print/ansiprint/files/patch-ansiprint.cc   (contents, props changed)
Modified:
  head/print/ansiprint/Makefile

Modified: head/print/ansiprint/Makefile
==============================================================================
--- head/print/ansiprint/Makefile	Tue Feb  4 19:04:17 2014	(r342589)
+++ head/print/ansiprint/Makefile	Tue Feb  4 19:10:51 2014	(r342590)
@@ -14,7 +14,6 @@ PLIST_FILES=		bin/${PORTNAME}
 
 CXXFLAGS+=		-Wno-deprecated
 
-NO_STAGE=	yes
 post-extract:
 	@${RM} ${WRKSRC}/Makefile
 
@@ -22,6 +21,6 @@ do-build:
 	cd ${WRKSRC} && ${CXX} ${CXXFLAGS} -o ${PORTNAME} ansiprint.cc
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/${PORTNAME}
+	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
 
 .include <bsd.port.mk>

Added: head/print/ansiprint/files/patch-ansiprint.cc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/print/ansiprint/files/patch-ansiprint.cc	Tue Feb  4 19:10:51 2014	(r342590)
@@ -0,0 +1,18 @@
+--- ./ansiprint.cc.orig	2014-02-04 20:01:43.741062023 +0100
++++ ./ansiprint.cc	2014-02-04 20:02:11.131060123 +0100
+@@ -36,13 +36,14 @@
+ #undef NOPRINT
+ 
+ // INCLUDES
+-#include <iostream.h>
++#include <iostream>
+ #include <string.h> // Check to be sure we need this
+ #include <stdlib.h>
+ // below are the includes for raw I/O
+ #include <fcntl.h>
+ #include <unistd.h>
+ 
++using namespace std;
+ 
+ /***** GLOBAL VARIABLE DECLARATIONS *****/
+ 



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