openbsd-ports/math/foma/patches/patch-Makefile
bentley 7fb44f7e59 Import foma-0.9.16.
Foma is a compiler, programming language, and C library for constructing
finite-state automata and transducers for various uses. It has specific
support for many natural language processing applications such as
producing morphological analyzers. Although NLP applications are
probably the main use of foma, it is sufficiently generic to use for a
large number of purposes.

ok jeremy@ pirofti@
2012-10-20 04:34:32 +00:00

26 lines
964 B
Plaintext

$OpenBSD: patch-Makefile,v 1.1.1.1 2012/10/20 04:34:32 bentley Exp $
Generate shared libraries correctly.
--- Makefile.orig Wed Dec 14 00:28:25 2011
+++ Makefile Fri Oct 12 23:56:56 2012
@@ -57,7 +57,7 @@ libfoma: $(SHAREDLIBV)
$(SHAREDLIBV): $(LIBOBJS)
$(AR) $(ARFLAGS) $(STATICLIB) $(LIBOBJS)
$(RANLIB) $(STATICLIB)
- $(CC) $(CFLAGS) -shared -Wl,$(DFLAG),$(SHAREDLIBM) -o $(SHAREDLIBV) $(LIBOBJS) $(LDFLAGS)
+ $(CC) $(CFLAGS) -shared -o $(SHAREDLIBV) $(LIBOBJS) $(LDFLAGS)
install: foma libfoma
-@if [ ! -d $(exec_prefix) ]; then mkdir -p $(exec_prefix); fi
@@ -71,9 +71,6 @@ install: foma libfoma
cd $(libdir); chmod 755 $(LIBS); \
if test -f $(libdir)/$(SHAREDLIB); then rm $(libdir)/$(SHAREDLIB); fi
if test -f $(libdir)/$(SHAREDLIBM); then rm $(libdir)/$(SHAREDLIBM); fi
- cd $(libdir); ln -s $(SHAREDLIBV) $(SHAREDLIB); cd $(libdir); \
- ln -s $(SHAREDLIBV) $(SHAREDLIBM); (ldconfig || true) \
- >/dev/null 2>&1; \
$(OBJS): foma.h