aboutsummaryrefslogtreecommitdiffstats
path: root/editors
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2007-07-03 03:10:41 +0800
committerdanfe <danfe@FreeBSD.org>2007-07-03 03:10:41 +0800
commita7f7afcbd9b475566e082616de5c12d353a64c15 (patch)
tree03945b8a418f42f0e13b6cf127f6f85450d41940 /editors
parent8eba96b36ad4230e29c29044a42608050210a1f7 (diff)
downloadfreebsd-ports-gnome-a7f7afcbd9b475566e082616de5c12d353a64c15.tar.gz
freebsd-ports-gnome-a7f7afcbd9b475566e082616de5c12d353a64c15.tar.zst
freebsd-ports-gnome-a7f7afcbd9b475566e082616de5c12d353a64c15.zip
- Fix the build with recent GCC [1]
- Conveniently redefine PORTEXAMPLES - Clean up Makefile - Improve upon port description - Respect NOPORTEXAMPLES - Drop now useless USE_GCC and USE_X_PREFIX Reported by: pointyhat (logs) [1]
Diffstat (limited to 'editors')
-rw-r--r--editors/xenon/Makefile20
-rw-r--r--editors/xenon/files/patch-Makefile.common2
-rw-r--r--editors/xenon/pkg-descr3
-rw-r--r--editors/xenon/pkg-plist4
4 files changed, 16 insertions, 13 deletions
diff --git a/editors/xenon/Makefile b/editors/xenon/Makefile
index 4e4f1db79a38..423ae681fc01 100644
--- a/editors/xenon/Makefile
+++ b/editors/xenon/Makefile
@@ -1,4 +1,4 @@
-# New ports collection makefile for: xenon
+# New ports collection makefile for: Xenon
# Date created: 22 October 1999
# Whom: Chris D. Faulhaber <jedgar@fxp.org>
#
@@ -16,10 +16,10 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= Simple X-based text editor
USE_GMAKE= yes
-USE_GCC= 3.4+
-USE_X_PREFIX= yes
USE_XPM= yes
MAKEFILE= ${WRKSRC}/makefiles/Makefile.Linux
+NOPRECIOUSSOFTMAKEVARS= yes
+EXAMPLESDIR= ${PREFIX}/share/examples/ex
MAN1= xe.1
@@ -27,8 +27,6 @@ FIX_FILES= Xe.h XeApp.C XeApp.h XeFontTable.C XeKeyTable.C \
XeKeyTable.h XeObject.C XeObject.h XeObjectTable.h XeText.C \
XeText.h
-.include <bsd.port.pre.mk>
-
do-configure:
.for file in ${FIX_FILES}
@${REINPLACE_CMD} -e 's|#include <ext/|#include <|' \
@@ -38,13 +36,17 @@ do-configure:
-e 's|#include <hash_map>|#include <ext/hash_map>|' \
-e 's|std::hash_map|__gnu_cxx::hash_map|g' \
-e 's|std::hash|__gnu_cxx::hash|g' \
- ${WRKSRC}/${file}
+ ${WRKSRC}/${file}
.endfor
+ @${REINPLACE_CMD} '/friend int compare/d' ${WRKSRC}/KrAtom.h
+ @${REINPLACE_CMD} 's|<Undo\*>|<class Undo*>|' ${WRKSRC}/XeText.h
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/xe ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/xe.1 ${PREFIX}/man/man1
- @${MKDIR} ${PREFIX}/share/examples/xe
- ${INSTALL_DATA} ${WRKSRC}/xerc ${PREFIX}/share/examples/xe/sample.xerc
+.if !defined(NOPORTEXAMPLES)
+ @${MKDIR} ${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/xerc ${EXAMPLESDIR}/sample.xerc
+.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/editors/xenon/files/patch-Makefile.common b/editors/xenon/files/patch-Makefile.common
index a07d8d2dd381..188a4d0a2882 100644
--- a/editors/xenon/files/patch-Makefile.common
+++ b/editors/xenon/files/patch-Makefile.common
@@ -14,7 +14,7 @@
$(TARGET): $(TARGETLIB) $(AUXTARGET).o
- $(CC) $(ARCH) $(LDFLAGS) $(AUXTARGET).o $(_LDFLAGS) -o $(TARGET)
-+ $(CC) $(LDFLAGS) $(AUXTARGET).o $(_LDFLAGS) -o $(TARGET)
++ $(CXX) $(LDFLAGS) $(AUXTARGET).o $(_LDFLAGS) -o $(TARGET)
#$(SHTARGET): $(TARGETSO) $(TARGET).o
# $(CC) -o $(TARGET) -g $(TARGET).o $(SHLDFLAGS)
diff --git a/editors/xenon/pkg-descr b/editors/xenon/pkg-descr
index 28fc4fbcb933..cfd715c76f85 100644
--- a/editors/xenon/pkg-descr
+++ b/editors/xenon/pkg-descr
@@ -3,11 +3,12 @@ editing source code, system configuration files, scripts and whatever else
is an ASCII text file.
Features include:
+
* Speed, simplicity and low memory use.
* Search, substring or regular expression
* Unlimited undo/redo.
* Display of line numbers, jump to line number
- * Some X resource configuration: mostly command keys, some colours
+ * Some X resource configuration: mostly command keys, some colors
* Man page!
* Some error dialogs.
* Multiple files in separate windows.
diff --git a/editors/xenon/pkg-plist b/editors/xenon/pkg-plist
index 753552605f31..d226aeed44fd 100644
--- a/editors/xenon/pkg-plist
+++ b/editors/xenon/pkg-plist
@@ -1,3 +1,3 @@
bin/xe
-share/examples/xe/sample.xerc
-@dirrm share/examples/xe
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/sample.xerc
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%