patch-src_framework_Makefile 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. $OpenBSD: patch-src_framework_Makefile,v 1.1.1.1 2014/07/14 09:15:12 zhuk Exp $
  2. --- src/framework/Makefile.orig Sun Jun 29 22:23:17 2014
  3. +++ src/framework/Makefile Wed Jul 9 09:43:49 2014
  4. @@ -1,7 +1,6 @@
  5. include ../../config.mak
  6. include config.mak
  7. -NAME = libmlt$(LIBSUF)
  8. TARGET = $(NAME).$(version)
  9. ifeq ($(targetos), Darwin)
  10. @@ -13,6 +12,9 @@ else ifeq ($(targetos), MinGW)
  11. NAME = libmlt$(LIBSUF)
  12. TARGET = libmlt-$(soversion)$(LIBSUF)
  13. SHFLAGS += -Wl,--output-def,libmlt.def
  14. +else ifeq ($(targetos), OpenBSD)
  15. +LIBmlt_VERSION ?= $(soversion)
  16. +TARGET = libmlt$(LIBSUF).$(LIBmlt_VERSION)
  17. else
  18. NAME = libmlt$(LIBSUF)
  19. TARGET = $(NAME).$(version)
  20. @@ -94,10 +96,12 @@ all: $(TARGET)
  21. $(TARGET): $(OBJS)
  22. $(CC) $(SHFLAGS) -o $@ $(OBJS) $(LDFLAGS)
  23. +ifdef NAME
  24. ln -sf $(TARGET) $(NAME)
  25. - if [ "$(targetos)" != "MinGW" ]; then \
  26. - ln -sf $(TARGET) $(SONAME) ; \
  27. - fi
  28. +endif
  29. +ifdef SONAME
  30. + ln -sf $(TARGET) $(SONAME)
  31. +endif
  32. depend: $(SRCS)
  33. $(CC) -MM $(CFLAGS) $^ 1>.depend
  34. @@ -114,6 +118,8 @@ install:
  35. install -m 755 $(TARGET) $(DESTDIR)$(prefix) ; \
  36. install -m 755 $(TARGET) $(DESTDIR)$(libdir)/libmlt.dll ; \
  37. install -m 644 libmlt.def $(DESTDIR)$(libdir) ; \
  38. + elif [ "$(targetos)" = "OpenBSD" ]; then \
  39. + install -m 444 $(TARGET) $(DESTDIR)$(libdir) ; \
  40. else \
  41. install -m 755 $(TARGET) $(DESTDIR)$(libdir) ; \
  42. ln -sf $(TARGET) $(DESTDIR)$(libdir)/$(SONAME) ; \