summaryrefslogtreecommitdiff
path: root/net/ttcp/Makefile
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2001-01-13 12:37:25 +0000
committertron <tron@pkgsrc.org>2001-01-13 12:37:25 +0000
commita5e3cb4f5d2384824ca444820f7ed5c11751ef5e (patch)
treed1cb2c0c956f579c2c913b68adee694c57997c69 /net/ttcp/Makefile
parentb9ca0ba8d25006ea874d9dad2da7e01ad3e06b9f (diff)
downloadpkgsrc-a5e3cb4f5d2384824ca444820f7ed5c11751ef5e.tar.gz
Make this package work under Solaris.
Diffstat (limited to 'net/ttcp/Makefile')
-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"