1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00

- Respect DESTDIR

- Eliminate patches

PR:		101563
Submitted by:	gabor (maintainer)
This commit is contained in:
Erwin Lansing 2006-08-08 08:07:22 +00:00
parent b7698fc60b
commit 1e83f4f9ce
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=170077
3 changed files with 8 additions and 28 deletions

View File

@ -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}

View File

@ -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

View File

@ -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>