summaryrefslogtreecommitdiff
path: root/misc/libutf
diff options
context:
space:
mode:
authoragc <agc>1998-09-09 15:01:09 +0000
committeragc <agc>1998-09-09 15:01:09 +0000
commit3f43b79d73c4148b38691262e696756c4b96c3ae (patch)
tree4442eba50ce5f6560356fbd37c56540a1a766bad /misc/libutf
parent9fd631caa31b429e5a979080159f6a76d8c5bf4e (diff)
downloadpkgsrc-3f43b79d73c4148b38691262e696756c4b96c3ae.tar.gz
Modifications to use NetBSD's libtool.
Diffstat (limited to 'misc/libutf')
-rw-r--r--misc/libutf/patches/patch-aa43
1 files changed, 43 insertions, 0 deletions
diff --git a/misc/libutf/patches/patch-aa b/misc/libutf/patches/patch-aa
new file mode 100644
index 00000000000..a87968ec53b
--- /dev/null
+++ b/misc/libutf/patches/patch-aa
@@ -0,0 +1,43 @@
+$NetBSD: patch-aa,v 1.1 1998/09/09 15:01:09 agc Exp $
+
+Patches to use NetBSD's libtool
+
+--- Makefile.in.orig Mon Oct 20 13:51:34 1997
++++ Makefile.in Wed Sep 9 15:44:06 1998
+@@ -26,14 +26,14 @@
+ RANLIB= @RANLIB@
+
+ $(LIBS) : $(OBJS)
+- $(AR) $(ARFLAGS) $(LIBS) $(OBJS)
++ ${LIBTOOL} --mode=link cc -o ${.TARGET:.a=.la} ${OBJS:.o=.lo} -rpath ${PREFIX}/lib -version-info 2:10
+
+ ci:
+ ci -l ure.c ure.h urelang.c utf.c utf.h
+
+ install: $(LIBS)
+ $(srcdir)/mkinstalldirs $(LIBDIR) $(INCDIR) $(ETCDIR) $(MANDIR)/man3
+- $(INSTALL_DATA) $(LIBS) $(LIBDIR) ; $(RANLIB) $(LIBDIR)/$(LIBS)
++ ${LIBTOOL} --mode=install ${BSD_INSTALL_DATA} ${LIBS:.a=.la} ${PREFIX}/lib
+ $(INSTALL_DATA) $(srcdir)/ure.h $(INCDIR)
+ $(INSTALL_DATA) $(srcdir)/utf.h $(INCDIR)
+ $(INSTALL_DATA) $(srcdir)/langcoll.utf $(ETCDIR)
+@@ -47,10 +47,17 @@
+ rm -f $(INCDIR)/ure.h $(INCDIR)/urelang.h $(INCDIR)/utf.h
+
+ gurep: gurep.o $(LIBS)
+- $(CC) gurep.o $(LIBS) -o gurep
++ ${LIBTOOL} --mode=link ${CC} gurep.o ${LIBS:.a=.la} -o gurep
+
+ findword: findword.o $(LIBS)
+- $(CC) findword.o $(LIBS) -o findword
++ ${LIBTOOL} --mode=link ${CC} findword.o ${LIBS:.a=.la} -o findword
++
++ure.o: ure.c ure.h utf.h
++ ${LIBTOOL} --mode=compile ${CC} ${CFLAGS} -c ure.c
++urelang.o: urelang.c ure.h utf.h
++ ${LIBTOOL} --mode=compile ${CC} ${CFLAGS} -c urelang.c
++utf.o: utf.c utf.h
++ ${LIBTOOL} --mode=compile ${CC} ${CFLAGS} -c utf.c
+
+ tst: gurep findword
+ test -d tests || ln -s $(srcdir)/tests .