summaryrefslogtreecommitdiff
path: root/devel/sfio/Makefile
diff options
context:
space:
mode:
authorJames Raynard <jraynard@FreeBSD.org>1997-11-09 10:32:51 +0000
committerJames Raynard <jraynard@FreeBSD.org>1997-11-09 10:32:51 +0000
commitb0ec11f7199eb28bcdb47fe918a29fab16b32e89 (patch)
treea8d1a25ebe1ada5c4b53b02bc16e5f57503c5e07 /devel/sfio/Makefile
parentAdd apache-php. (diff)
Safe/Fast I/O Library
Notes
Notes: svn path=/head/; revision=8534
Diffstat (limited to 'devel/sfio/Makefile')
-rw-r--r--devel/sfio/Makefile48
1 files changed, 48 insertions, 0 deletions
diff --git a/devel/sfio/Makefile b/devel/sfio/Makefile
new file mode 100644
index 000000000000..5e56eeb7f233
--- /dev/null
+++ b/devel/sfio/Makefile
@@ -0,0 +1,48 @@
+# New ports collection makefile for: sfio
+# Version required: 97
+# Date created: 8 November 1997
+# Whom: jraynard
+#
+# $Id$
+#
+
+DISTNAME= sfio97
+CATEGORIES= devel
+MASTER_SITES= http://www.research.att.com/sw/tools/sfio/
+EXTRACT_SUFX= .src.unix.tar.Z
+
+MAINTAINER= jraynard@freebsd.org
+
+NO_WRKSUBDIR= yes
+MAN3= sfio.3 sfdisc.3
+
+do-fetch:
+ @if [ ! -f ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} ]; then \
+ ${ECHO} ""; \
+ ${ECHO} "Please read http://www.research.att.com/sw/tools/sfio/"; \
+ ${ECHO} "for details of how to obtain the SFIO source. Put the"; \
+ ${ECHO} "file ${DISTNAME}${EXTRACT_SUFX} in the directory"; \
+ ${ECHO} "${DISTDIR} and run make again."; \
+ ${ECHO} ""; \
+ exit 1;\
+ fi
+
+# Remove a test that's too clever for its own good
+# from the distribution, and a junk binary while we're at it.
+post-extract:
+ @${RM} ${WRKDIR}/src/lib/sfio/Sfio_t/tmmap2read.c
+ @${RM} ${WRKDIR}/lib/libvdelta.a
+
+do-build:
+ @cd ${WRKDIR}/src/lib/sfio && ${MAKE} all -f makefile
+ @cd ${WRKDIR}/src/lib/sfdisc && ${MAKE} all
+
+do-install:
+ ${INSTALL_DATA} ${WRKDIR}/include/* ${PREFIX}/include
+ ${INSTALL_DATA} ${WRKDIR}/lib/libsfdisc.a ${PREFIX}/lib
+ ${INSTALL_DATA} ${WRKDIR}/lib/libsfio.a ${PREFIX}/lib
+ ${INSTALL_DATA} ${WRKDIR}/lib/libstdio.a ${PREFIX}/lib
+ ${INSTALL_MAN} ${WRKDIR}/man/man3/sfio.3 ${PREFIX}/man/man3
+ ${INSTALL_MAN} ${WRKDIR}/man/man3/sfdisc.3 ${PREFIX}/man/man3
+
+.include <bsd.port.mk>