pkgsrc/devel/sfio/patches/patch-ab
2011-03-21 08:47:12 +00:00

44 lines
2 KiB
Text

$NetBSD: patch-ab,v 1.6 2011/03/21 08:47:12 obache Exp $
Build and installation commands
--- /dev/null Mon Feb 5 13:45:25 2001
+++ Makefile Mon Feb 5 13:44:36 2001
@@ -0,0 +1,37 @@
+all:
+ cd src/lib/sfio; ${MAKE} -f sfio.mk
+ cd src/lib/sfio/Stdio_b; ${MAKE} -f stdio.mk FEATURE/stdio must; ${MAKE} -f stdio.mk
+
+install:
+ ${INSTALL} -c -m 0644 src/lib/sfio/libsfio.a ${DESTDIR}${PREFIX}/lib
+ ${INSTALL} -c -m 0644 src/lib/sfio/libsfio_p.a ${DESTDIR}${PREFIX}/lib
+ ${INSTALL} -c -m 0644 src/lib/sfio/libsfio_pic.a ${DESTDIR}${PREFIX}/lib
+ ${INSTALL} -c -m 0644 src/lib/sfio/libsfio.so.1.0 ${DESTDIR}${PREFIX}/lib
+ if [ "${OBJECT_FMT}" = "ELF" ]; then \
+ (cd ${DESTDIR}${PREFIX}/lib; rm -f libsfio.so libsfio.so.1; \
+ ln -s libsfio.so.1.0 libsfio.so; \
+ ln -s libsfio.so.1.0 libsfio.so.1) \
+ fi
+ ${RANLIB} ${DESTDIR}${PREFIX}/lib/libsfio.a
+ ${RANLIB} ${DESTDIR}${PREFIX}/lib/libsfio_p.a
+ ${RANLIB} ${DESTDIR}${PREFIX}/lib/libsfio_pic.a
+ ${INSTALL} -c -m 0644 src/lib/sfio/Stdio_b/libstdio.a ${DESTDIR}${PREFIX}/lib
+ ${INSTALL} -c -m 0644 src/lib/sfio/Stdio_b/libstdio_p.a ${DESTDIR}${PREFIX}/lib
+ ${INSTALL} -c -m 0644 src/lib/sfio/Stdio_b/libstdio_pic.a ${DESTDIR}${PREFIX}/lib
+ ${INSTALL} -c -m 0644 src/lib/sfio/Stdio_b/libstdio.so.1.0 ${DESTDIR}${PREFIX}/lib
+ if [ "${OBJECT_FMT}" = "ELF" ]; then \
+ (cd ${DESTDIR}${PREFIX}/lib; rm -f libstdio.so libstdio.so.1; \
+ ln -s libstdio.so.1.0 libstdio.so; \
+ ln -s libstdio.so.1.0 libstdio.so.1) \
+ fi
+ ${RANLIB} ${DESTDIR}${PREFIX}/lib/libstdio.a
+ ${RANLIB} ${DESTDIR}${PREFIX}/lib/libstdio_p.a
+ ${RANLIB} ${DESTDIR}${PREFIX}/lib/libstdio_pic.a
+ ${INSTALL} -c -m 0644 man/man3/sfio.3 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man3
+ -mkdir ${DESTDIR}${PREFIX}/include/sfio
+ for f in ast_common.h sfio.h sfio_t.h; do \
+ ${INSTALL} -c -m 0644 src/lib/sfio/$$f ${DESTDIR}${PREFIX}/include/sfio/$$f; \
+ done
+ ${INSTALL} -c -m 0644 src/lib/sfio/Stdio_s/stdio.h ${DESTDIR}${PREFIX}/include/sfio/stdio.h
+
+.include <bsd.own.mk>