$OpenBSD: patch-Makefile,v 1.4 2007/04/03 07:05:06 pedro Exp $
--- Makefile.orig	Fri Jun  2 07:53:38 2006
+++ Makefile	Sun Sep 24 18:43:50 2006
@@ -5,14 +5,14 @@
 # == CHANGE THE SETTINGS BELOW TO SUIT YOUR ENVIRONMENT =======================
 
 # Your platform. See PLATS for possible values.
-PLAT= none
+PLAT= bsd

 # Where to install. The installation starts in the src directory, so take care
 # if INSTALL_TOP is not an absolute path. (Man pages are installed from the
 # doc directory.) You may want to make these paths consistent with LUA_ROOT,
 # LUA_LDIR, and LUA_CDIR in luaconf.h (and also with etc/lua.pc).
 #
-INSTALL_TOP= /usr/local
+INSTALL_TOP= $(PREFIX)
 INSTALL_BIN= $(INSTALL_TOP)/bin
 INSTALL_INC= $(INSTALL_TOP)/include
 INSTALL_LIB= $(INSTALL_TOP)/lib
@@ -42,7 +42,7 @@ PLATS= aix ansi bsd generic linux macosx
 # What to install.
 TO_BIN= lua luac
 TO_INC= lua.h luaconf.h lualib.h lauxlib.h ../etc/lua.hpp
-TO_LIB= liblua.a
+TO_LIB= liblua.a liblua.so.5.1
 TO_MAN= lua.1 luac.1
 
 # Lua version and release.
