pkgsrc/net/libsscript/patches/patch-aa

25 lines
783 B
Text

$NetBSD: patch-aa,v 1.3 2011/09/05 20:23:52 cheusov Exp $
--- Makefile.orig 2000-02-02 01:01:39.000000000 +0000
+++ Makefile
@@ -1,15 +1,13 @@
# SScript library makefile.
-CC = gcc
-CFLAGS = -O -Wall
-
all:
- ${CC} ${CFLAGS} -c sscript.c
- ar rc libsscript.a sscript.o
- ranlib libsscript.a
+ ${LIBTOOL} --tag=CC --mode=compile ${CC} ${CFLAGS} -c sscript.c
+ ${LIBTOOL} --tag=CC --mode=link cc -o libsscript.la sscript.lo -rpath ${PREFIX}/lib -version-info 2:0
install:
- cp libsscript.a /usr/lib/libsscript.a
+ ${LIBTOOL} --mode=install ${BSD_INSTALL_DATA} libsscript.la ${DESTDIR}${PREFIX}/lib
+ ${BSD_INSTALL_DATA} sscript.h ${DESTDIR}${PREFIX}/include/libsscript
+ ${BSD_INSTALL_DATA} sscript-lib.doc ${DESTDIR}${PREFIX}/share/doc/libsscript
clean:
rm -f *.a *.o *~