summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authortron <tron>2001-01-13 12:37:25 +0000
committertron <tron>2001-01-13 12:37:25 +0000
commit32d456fa68849e8a97456b6e9c1e2180cf7c664a (patch)
treed1cb2c0c956f579c2c913b68adee694c57997c69 /net
parentc4917f5474ae6107cb96ae31be88a2250ba2f263 (diff)
downloadpkgsrc-32d456fa68849e8a97456b6e9c1e2180cf7c664a.tar.gz
Make this package work under Solaris.
Diffstat (limited to 'net')
-rw-r--r--net/ttcp/Makefile17
1 files changed, 12 insertions, 5 deletions
diff --git a/net/ttcp/Makefile b/net/ttcp/Makefile
index e7160ad1262..53851ef81ce 100644
--- a/net/ttcp/Makefile
+++ b/net/ttcp/Makefile
@@ -1,5 +1,4 @@
-# $NetBSD: Makefile,v 1.14 1999/08/19 07:28:44 tron Exp $
-#
+# $NetBSD: Makefile,v 1.15 2001/01/13 12:37:25 tron Exp $
DISTNAME= ttcp
PKGNAME= ${DISTNAME}-1.12
@@ -10,8 +9,16 @@ EXTRACT_SUFX= .tar.Z
MAINTAINER= thorpej@netbsd.org
HOMEPAGE= http://www.ccci.com/tools/ttcp/
-NO_CONFIGURE= yes
-NO_WRKSUBDIR= yes
-MANCOMPRESSED_IF_MANZ= yes
+.include "../../mk/bsd.prefs.mk"
+
+MANCOMPRESSED_IF_MANZ= YES
+WRKSRC= ${WRKDIR}
+
+do-build:
+.if (${OPSYS} == SunOS)
+ cd ${WRKSRC} && \
+ ${CC} ttcp.c ${CFLAGS} $(LDFLAGS) -lsocket -lnsl -o ttcp && \
+ nroff -man ttcp.1 >ttcp.cat1
+.endif
.include "../../mk/bsd.pkg.mk"