aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2005-01-24 09:40:38 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2005-01-24 09:40:38 +0000
commit6b73ec18f8a4e7eaa27055f560ddff82d5acdfe6 (patch)
tree1b95884cc8949ebe2e36731561eebb090529cba0
parent6e9269d6688c7c061d9e5ea691782a9cf8a5f65f (diff)
downloadports-6b73ec18f8a4e7eaa27055f560ddff82d5acdfe6.tar.gz
ports-6b73ec18f8a4e7eaa27055f560ddff82d5acdfe6.zip
Notes
-rw-r--r--x11/decurs/Makefile17
1 files changed, 14 insertions, 3 deletions
diff --git a/x11/decurs/Makefile b/x11/decurs/Makefile
index ccafc6f8008d..713f45f6f42a 100644
--- a/x11/decurs/Makefile
+++ b/x11/decurs/Makefile
@@ -11,7 +11,7 @@ PORTREVISION= 3
CATEGORIES= x11
MASTER_SITES= http://varg.dyndns.org/psi/files/
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= danfe@FreeBSD.org
COMMENT= A GTK+ based program that lets you edit you XFree86 mouse cursors
LIB_DEPENDS= gtkmm-2.0.6:${PORTSDIR}/x11-toolkits/gtk--2
@@ -22,13 +22,24 @@ GNU_CONFIGURE= yes
.include <bsd.port.pre.mk>
-.if ${OSVERSION} >= 501000 || ${ARCH} != "i386"
-BROKEN= "Does not compile on FreeBSD ${OSVERSION} or on !i386"
+.if ${ARCH} != "i386"
+BROKEN= "Does not compile on !i386"
+.endif
+
+.if ${OSVERSION} > 500035
+USE_REINPLACE= yes
.endif
post-patch:
@${SED} -e 's:%%PREFIX%%:${PREFIX}:g' \
${FILESDIR}/decurs.exec > ${WRKSRC}/decurs.exec
+.if ${OSVERSION} > 500035
+# Hack for contemporary GCC
+ @${REINPLACE_CMD} -e 's/, CppString \&str/, const CppString \&str/' \
+ ${WRKSRC}/src/cppstring.cc ${WRKSRC}/src/cppstring.hh
+ @${REINPLACE_CMD} -E 's/^\/\/ friend//; s/([^:])ostream/\1std::ostream/g' \
+ ${WRKSRC}/src/cppstring.hh
+.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/decurs ${PREFIX}/bin/decurs.bin