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

- Support CC/CFLAGS properly

- Support NOPORTDOCS

PR:		23271
Submitted by:	KATO Tsuguru <tkato@prontomail.ne.jp>
This commit is contained in:
Steve Price 2000-12-11 02:47:38 +00:00
parent 08350e9c6c
commit 1574c6ec51
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=35864
2 changed files with 5 additions and 31 deletions

View File

@ -12,13 +12,17 @@ MASTER_SITES= ftp://ftp.innet.be/pub/staff/carl/
MAINTAINER= sobomax@FreeBSD.org
MAKE_ARGS= CC="${CC}" CCOPTS="${CFLAGS}"
do-install:
${MKDIR} ${PREFIX}/share/doc/mserver
${INSTALL_PROGRAM} ${WRKSRC}/mserver ${PREFIX}/sbin
${INSTALL_PROGRAM} ${WRKSRC}/tcpconn ${PREFIX}/sbin
${INSTALL_DATA} ${WRKSRC}/mserver.conf ${PREFIX}/etc/mserver.conf.default
${INSTALL_SCRIPT} ${WRKSRC}/mserver.sh.sample ${PREFIX}/etc/rc.d/mserver.sh.sample
.if !defined(NOPORTDOCS)
@${MKDIR} ${PREFIX}/share/doc/mserver
${INSTALL_MAN} ${WRKSRC}/README ${PREFIX}/share/doc/mserver
${INSTALL_MAN} ${WRKSRC}/README.tcpconn ${PREFIX}/share/doc/mserver
.endif
.include <bsd.port.mk>

View File

@ -1,30 +0,0 @@
diff -ruN mserver-0.23a.orig/Makefile mserver-0.23a/Makefile
--- Makefile.orig Thu Jan 15 21:12:33 1998
+++ Makefile Fri May 21 11:10:30 1999
@@ -1,8 +1,7 @@
#
# Makefile for mserver
#
-CC = gcc
-CCOPTS = -O2
+CC = cc
LIBS =
INCLUDES = config.h stty.h
@@ -16,13 +15,13 @@
$(CC) tcpconn.o stty.o -o tcpconn $(LIBS)
mserver.o: mserver.c $(INCLUDES)
- $(CC) $(CCOPTS) -c -o mserver.o mserver.c
+ $(CC) $(CFLAGS) -c -o mserver.o mserver.c
tcpconn.o: tcpconn.c $(INCLUDES)
- $(CC) $(CCOPTS) -c -o tcpconn.o tcpconn.c
+ $(CC) $(CFLAGS) -c -o tcpconn.o tcpconn.c
stty.o: stty.c $(INCLUDES)
- $(CC) $(CCOPTS) -c -o stty.o stty.c
+ $(CC) $(CFLAGS) -c -o stty.o stty.c
clean:
rm -f mserver tcpconn *.o core