aboutsummaryrefslogtreecommitdiffstats
path: root/editors/xed
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2015-03-05 12:29:56 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2015-03-05 12:29:56 +0800
commite8676a4daad398ffb430636a77ac13c7dcb41a16 (patch)
treea3e22dbc5027237057e410571c197219312002e1 /editors/xed
parent0693083bca6a5a4ff383cb848177a90ea664187c (diff)
downloadfreebsd-ports-gnome-e8676a4daad398ffb430636a77ac13c7dcb41a16.tar.gz
freebsd-ports-gnome-e8676a4daad398ffb430636a77ac13c7dcb41a16.tar.zst
freebsd-ports-gnome-e8676a4daad398ffb430636a77ac13c7dcb41a16.zip
- Simplify MASTER_SITES
- Add LICENSE - Fix references to STAGEDIR MFH: 2015Q1
Diffstat (limited to 'editors/xed')
-rw-r--r--editors/xed/Makefile11
-rw-r--r--editors/xed/files/patch-Imakefile19
2 files changed, 27 insertions, 3 deletions
diff --git a/editors/xed/Makefile b/editors/xed/Makefile
index 320d3ba18503..ebf7b3f955a9 100644
--- a/editors/xed/Makefile
+++ b/editors/xed/Makefile
@@ -3,19 +3,24 @@
PORTNAME= xed
PORTVERSION= 1.3
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= editors
-MASTER_SITES= ${MASTER_SITE_XCONTRIB}
-MASTER_SITE_SUBDIR= editors
+MASTER_SITES= XCONTRIB/editors
DISTNAME= ${PORTNAME}${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Text editor for X
+LICENSE= MIT
+
USES= imake tar:Z
USE_XORG= xaw
+MAKE_ARGS= BINDIR=${PREFIX}/bin \
+ LIBDIR=${PREFIX}/lib/X11 \
+ MANPATH=${PREFIX}/man
pre-build:
@${FIND} ${WRKSRC} -type f | ${XARGS} ${REINPLACE_CMD} -e \
's|extern char \*malloc();|/\* extern char \*malloc(); \*/|g'
+
.include <bsd.port.mk>
diff --git a/editors/xed/files/patch-Imakefile b/editors/xed/files/patch-Imakefile
new file mode 100644
index 000000000000..387eef278c53
--- /dev/null
+++ b/editors/xed/files/patch-Imakefile
@@ -0,0 +1,19 @@
+--- Imakefile.orig 2015-03-05 04:17:04.000000000 +0300
++++ Imakefile 2015-03-05 04:18:12.000000000 +0300
+@@ -1,4 +1,4 @@
+- DEFINES = -DHELPFILE=\"$(DESTDIR)${LIBDIR}/xed/xed.help\"
++ DEFINES = -DHELPFILE=\"${LIBDIR}/xed/xed.help\"
+
+ XCOMM Please check for some aditional DEFINES
+ XCOMM -DSCROLLBREAK -DUSEGETCWD -DNORENAME -DUSEDIRENT -DUSE_CSH_SYSTEM
+@@ -30,8 +30,8 @@
+
+ xed.help: helpfile
+ $(RM) $@
+- cat helpfile | sed "s@<XEDCOMMANDFILE>@$(DESTDIR)$(LIBDIR)/xed/xed.commands@g" | \
+- sed "s@<XEDRESOURCEFILE>@$(DESTDIR)$(XAPPLOADDIR)/Xed@g" > xed.help
++ cat helpfile | sed "s@<XEDCOMMANDFILE>@$(LIBDIR)/xed/xed.commands@g" | \
++ sed "s@<XEDRESOURCEFILE>@$(XAPPLOADDIR)/Xed@g" > xed.help
+
+
+ InstallNonExecFile(xed.help,$(LIBDIR)/xed)