aboutsummaryrefslogtreecommitdiff
path: root/print/ansiprint
diff options
context:
space:
mode:
authorPawel Pekala <pawel@FreeBSD.org>2014-02-04 19:10:51 +0000
committerPawel Pekala <pawel@FreeBSD.org>2014-02-04 19:10:51 +0000
commit91721fd606de1d3ea20e4487ef9d852c9856568f (patch)
tree20bae507d0188e930128597ca4efc3cd3e9b8203 /print/ansiprint
parent592a9faab9c5b01aee500c24360686199818412e (diff)
Notes
Diffstat (limited to 'print/ansiprint')
-rw-r--r--print/ansiprint/Makefile3
-rw-r--r--print/ansiprint/files/patch-ansiprint.cc18
2 files changed, 19 insertions, 2 deletions
diff --git a/print/ansiprint/Makefile b/print/ansiprint/Makefile
index 3e59ffc92622..85cf2d414480 100644
--- a/print/ansiprint/Makefile
+++ b/print/ansiprint/Makefile
@@ -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>
diff --git a/print/ansiprint/files/patch-ansiprint.cc b/print/ansiprint/files/patch-ansiprint.cc
new file mode 100644
index 000000000000..1a93682e8bc4
--- /dev/null
+++ b/print/ansiprint/files/patch-ansiprint.cc
@@ -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 *****/
+