$OpenBSD: patch-src_framework_Makefile,v 1.3 2019/04/26 13:39:16 rsadowski 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)
@@ -96,10 +98,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
@@ -121,6 +125,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) ; \
