openbsd-ports/devel/lua-lgi/patches/patch-lgi_Makefile
2012-07-19 20:26:26 +00:00

24 lines
621 B
Plaintext

$OpenBSD: patch-lgi_Makefile,v 1.2 2012/07/19 20:26:26 jasper Exp $
--- lgi/Makefile.orig Mon Jun 25 10:25:20 2012
+++ lgi/Makefile Thu Jul 19 22:21:24 2012
@@ -6,8 +6,8 @@
#
PREFIX = /usr/local
-LUA_LIBDIR = $(PREFIX)/lib/lua/5.1
-LUA_SHAREDIR = $(PREFIX)/share/lua/5.1
+LUA_LIBDIR ?= $(PREFIX)/lib/lua/5.1
+LUA_SHAREDIR ?= $(PREFIX)/share/lua/5.1
GINAME = gobject-introspection-1.0
PKGS = $(GINAME) gmodule-2.0 libffi
@@ -18,7 +18,7 @@ CORE = corelgilua51.dll
LIBFLAG = -shared
LIBS += -llua
else
-CORE = corelgilua51.so
+CORE = corelgilua${MODLUA_DEP_VERSION}.so
LIBFLAG = -shared
CCSHARED = -fPIC
endif