Upgrade to version 1.45, use better building logic.

This commit is contained in:
Bill Fumerola 1999-12-25 03:30:40 +00:00
parent 95f3e4660a
commit cf4add4987
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=24040
6 changed files with 18 additions and 52 deletions

View file

@ -1,12 +1,12 @@
# New ports collection makefile for: nttcp
# Version required: 1.3
# Version required: 1.45
# Date created: 11 Nov 1998
# Whom: Bill Fumerola <billf@chc-chimes.com>
#
# $FreeBSD$
#
DISTNAME= nttcp-1.4
DISTNAME= nttcp-1.45
CATEGORIES= net benchmarks
MASTER_SITES= http://users.leo.org/~bartel/nttcp/ \
http://www.FreeBSD.org/~billf/
@ -16,13 +16,7 @@ MAINTAINER= billf@FreeBSD.org
ALL_TARGET= nttcp
MAN1= nttcp.1
USE_GMAKE= yes
MAKE_ENV+= CFLG="${CFLAGS}"
post-patch:
@${MV} ${WRKSRC}/Makefile ${WRKSRC}/Makefile.pre_sed
@${SED} -e 's#-O2#${CFLAGS}#' \
${WRKSRC}/Makefile.pre_sed > ${WRKSRC}/Makefile
MAKE_ENV+= OPT="${CFLAGS}"
do-install:

View file

@ -1 +1 @@
MD5 (nttcp-1.4.tar.gz) = b97cadd2560c7e06faf890ebe7ceefc2
MD5 (nttcp-1.45.tar.gz) = d172737dbfda224cd42d09cf7cbb3b15

View file

@ -1,31 +1,20 @@
--- Makefile.old Wed Oct 7 15:12:25 1998
+++ Makefile Mon Dec 7 23:03:15 1998
--- Makefile.orig Tue Sep 28 12:02:26 1999
+++ Makefile Fri Dec 24 22:29:00 1999
@@ -109,12 +109,12 @@
#INC=
## For FreeBSD
-#ARCH= -DFreeBSD
-#LIB=
-#OPT= -O2
+ARCH= -DFreeBSD
+LIB=
#OPT= -O2
-#CC= cc
-#DBG=
-#INC=
+ARCH= -DFreeBSD
+LIB=
+OPT= -O2
+CC= cc
+DBG=
+INC=
## For SGI IRIX 5.3, 6.2 (cc or gcc)
#ARCH=
@@ -151,7 +151,8 @@
VERSION= 1.4
prefix= /usr/local/dist/DIR/nttcp-$(VERSION)
#prefix= /usr/local
-CFLAGS = $(ARCH) $(DBG) $(DEF) $(INC) $(OPT) -DVERSION=\"$(VERSION)\"
+#CFLAGS = $(ARCH) $(DBG) $(DEF) $(INC) $(OPT) -DVERSION=\"$(VERSION)\"
+CFLAGS = $(ARCH) $(CFLG) -DVERSION=\"$(VERSION)\"
LFLAGS = $(DBG)
nttcp: nttcp.o support.o

View file

@ -1,12 +1,12 @@
# New ports collection makefile for: nttcp
# Version required: 1.3
# Version required: 1.45
# Date created: 11 Nov 1998
# Whom: Bill Fumerola <billf@chc-chimes.com>
#
# $FreeBSD$
#
DISTNAME= nttcp-1.4
DISTNAME= nttcp-1.45
CATEGORIES= net benchmarks
MASTER_SITES= http://users.leo.org/~bartel/nttcp/ \
http://www.FreeBSD.org/~billf/
@ -16,13 +16,7 @@ MAINTAINER= billf@FreeBSD.org
ALL_TARGET= nttcp
MAN1= nttcp.1
USE_GMAKE= yes
MAKE_ENV+= CFLG="${CFLAGS}"
post-patch:
@${MV} ${WRKSRC}/Makefile ${WRKSRC}/Makefile.pre_sed
@${SED} -e 's#-O2#${CFLAGS}#' \
${WRKSRC}/Makefile.pre_sed > ${WRKSRC}/Makefile
MAKE_ENV+= OPT="${CFLAGS}"
do-install:

View file

@ -1 +1 @@
MD5 (nttcp-1.4.tar.gz) = b97cadd2560c7e06faf890ebe7ceefc2
MD5 (nttcp-1.45.tar.gz) = d172737dbfda224cd42d09cf7cbb3b15

View file

@ -1,31 +1,20 @@
--- Makefile.old Wed Oct 7 15:12:25 1998
+++ Makefile Mon Dec 7 23:03:15 1998
--- Makefile.orig Tue Sep 28 12:02:26 1999
+++ Makefile Fri Dec 24 22:29:00 1999
@@ -109,12 +109,12 @@
#INC=
## For FreeBSD
-#ARCH= -DFreeBSD
-#LIB=
-#OPT= -O2
+ARCH= -DFreeBSD
+LIB=
#OPT= -O2
-#CC= cc
-#DBG=
-#INC=
+ARCH= -DFreeBSD
+LIB=
+OPT= -O2
+CC= cc
+DBG=
+INC=
## For SGI IRIX 5.3, 6.2 (cc or gcc)
#ARCH=
@@ -151,7 +151,8 @@
VERSION= 1.4
prefix= /usr/local/dist/DIR/nttcp-$(VERSION)
#prefix= /usr/local
-CFLAGS = $(ARCH) $(DBG) $(DEF) $(INC) $(OPT) -DVERSION=\"$(VERSION)\"
+#CFLAGS = $(ARCH) $(DBG) $(DEF) $(INC) $(OPT) -DVERSION=\"$(VERSION)\"
+CFLAGS = $(ARCH) $(CFLG) -DVERSION=\"$(VERSION)\"
LFLAGS = $(DBG)
nttcp: nttcp.o support.o