aboutsummaryrefslogtreecommitdiff
path: root/editors/sted
diff options
context:
space:
mode:
authorErwin Lansing <erwin@FreeBSD.org>2006-08-08 08:07:22 +0000
committerErwin Lansing <erwin@FreeBSD.org>2006-08-08 08:07:22 +0000
commit1e83f4f9ce1053a682845732664ce34adfca0639 (patch)
treec7a2c0caae0b6a89fb60b58ba68c46b86144d20a /editors/sted
parentb7698fc60b943a220b9ae0185a79905185299fae (diff)
downloadports-1e83f4f9ce1053a682845732664ce34adfca0639.tar.gz
ports-1e83f4f9ce1053a682845732664ce34adfca0639.zip
- Respect DESTDIR
- Eliminate patches PR: 101563 Submitted by: gabor (maintainer)
Notes
Notes: svn path=/head/; revision=170077
Diffstat (limited to 'editors/sted')
-rw-r--r--editors/sted/Makefile10
-rw-r--r--editors/sted/files/patch-aa15
-rw-r--r--editors/sted/files/patch-ab11
3 files changed, 8 insertions, 28 deletions
diff --git a/editors/sted/Makefile b/editors/sted/Makefile
index 6d6ddcd5293a..6e4b451ca635 100644
--- a/editors/sted/Makefile
+++ b/editors/sted/Makefile
@@ -20,9 +20,15 @@ MAN1= sted.1
PORTDOCS= CHANGES COPYING README
PLIST_FILES= bin/sted
+post-patch:
+ @${REINPLACE_CMD} -e "s|CC = gcc|CC ?= gcc|" \
+ -e "s|C_OPTS = -Wall -O2|C_OPTS = ${CFLAGS}|" \
+ ${WRKSRC}/Makefile
+ @${REINPLACE_CMD} "s|<curses.h>|<ncurses.h>|" ${WRKSRC}/sted.c
+
do-install:
- @ ${INSTALL_PROGRAM} ${WRKSRC}/sted ${PREFIX}/bin
- @ ${INSTALL_MAN} ${WRKSRC}/sted.1 ${PREFIX}/man/man1
+ @ ${INSTALL_PROGRAM} ${WRKSRC}/sted ${TARGETDIR}/bin
+ @ ${INSTALL_MAN} ${WRKSRC}/sted.1 ${TARGETDIR}/man/man1
.if !defined(NOPORTDOCS)
@ ${MKDIR} ${DOCSDIR}
.for file in ${PORTDOCS}
diff --git a/editors/sted/files/patch-aa b/editors/sted/files/patch-aa
deleted file mode 100644
index 6f5d5c513a65..000000000000
--- a/editors/sted/files/patch-aa
+++ /dev/null
@@ -1,15 +0,0 @@
---- Makefile Sun May 17 13:09:10 1998
-+++ /home/andy/tmp/wrk/Makefile Tue May 19 10:42:14 1998
-@@ -5,10 +5,10 @@
-
-
- #Compiler, change if you're using some other compiler
--CC = gcc
-+#CC = gcc
-
- #Compiler and linker options
--C_OPTS = -Wall -O2
-+C_OPTS = ${CFLAGS}
- L_OPTS = -lncurses
-
- #Install directory
diff --git a/editors/sted/files/patch-ab b/editors/sted/files/patch-ab
deleted file mode 100644
index 38b5dff8612f..000000000000
--- a/editors/sted/files/patch-ab
+++ /dev/null
@@ -1,11 +0,0 @@
---- sted.c Sun May 17 13:15:08 1998
-+++ /home/andy/tmp/wrk/sted.c Tue May 19 10:42:21 1998
-@@ -34,7 +34,7 @@
- **************************************************************************/
-
-
--#include <curses.h>
-+#include <ncurses.h>
- #include <signal.h>
- #include <string.h>
- #include <stdlib.h>