openbsd-ports/multimedia/mlt/patches/patch-src_framework_Makefile
espie 0af3988302 update to a more recent mlt, which gives shotcut a fighting chance
heavy lifting by tracey@, with a few more patches by me (specifically
fix mutex issues and neuter some locale operations that don't work for us)

this is enough for shotcut to start correctly, and necessary for kdenlive
again.

jca@ checked that synfig runs again

okay rsadowski@
2020-05-18 10:33:17 +00:00

48 lines
1.3 KiB
Plaintext

$OpenBSD: patch-src_framework_Makefile,v 1.4 2020/05/18 10:33:17 espie Exp $
Index: src/framework/Makefile
--- src/framework/Makefile.orig
+++ src/framework/Makefile
@@ -1,7 +1,6 @@
include ../../config.mak
include config.mak
-NAME = libmlt$(LIBSUF)
TARGET = $(NAME).$(version)
ifeq ($(targetos), Darwin)
@@ -13,6 +12,9 @@ else ifeq ($(targetos), MinGW)
NAME = libmlt$(LIBSUF)
TARGET = libmlt-$(soversion)$(LIBSUF)
SHFLAGS += -Wl,--output-def,libmlt.def
+else ifeq ($(targetos), OpenBSD)
+LIBmlt_VERSION ?= $(soversion)
+TARGET = libmlt$(LIBSUF).$(LIBmlt_VERSION)
else
NAME = libmlt$(LIBSUF)
TARGET = $(NAME).$(version)
@@ -98,10 +100,12 @@ all: $(TARGET)
$(TARGET): $(OBJS)
$(CC) $(SHFLAGS) -o $@ $(OBJS) $(LDFLAGS)
+ifdef NAME
ln -sf $(TARGET) $(NAME)
- if [ "$(targetos)" != "MinGW" ]; then \
- ln -sf $(TARGET) $(SONAME) ; \
- fi
+endif
+ifdef SONAME
+ ln -sf $(TARGET) $(SONAME)
+endif
depend: $(SRCS)
$(CC) -MM $(CFLAGS) $^ 1>.depend
@@ -123,6 +127,8 @@ install:
install -m 755 $(TARGET) "$(DESTDIR)$(bindir)/libmlt.dll" ; \
fi; \
install -m 644 libmlt.def "$(DESTDIR)$(libdir)" ; \
+ elif [ "$(targetos)" = "OpenBSD" ]; then \
+ install -m 444 $(TARGET) $(DESTDIR)$(libdir) ; \
else \
install -m 755 $(TARGET) $(DESTDIR)$(libdir) ; \
ln -sf $(TARGET) $(DESTDIR)$(libdir)/$(SONAME) ; \