Also provide a shared version of the Lua library
Discussed with and okay jolan@
This commit is contained in:
parent
4dbe8b5dc1
commit
24a30b2607
@ -1,8 +1,9 @@
|
||||
# $OpenBSD: Makefile,v 1.24 2006/08/01 15:50:27 pedro Exp $
|
||||
# $OpenBSD: Makefile,v 1.25 2006/09/25 02:39:06 pedro Exp $
|
||||
|
||||
COMMENT= "powerful, light-weight programming language"
|
||||
|
||||
DISTNAME= lua-5.1.1
|
||||
PKGNAME= ${DISTNAME}p0
|
||||
CATEGORIES= lang
|
||||
|
||||
MASTER_SITES= http://www.lua.org/ftp/ \
|
||||
@ -22,10 +23,12 @@ PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
SHARED_ONLY= Yes
|
||||
SHARED_LIBS= lua 5.1
|
||||
WANTLIB= c m edit curses
|
||||
NO_REGRESS= Yes
|
||||
|
||||
post-patch:
|
||||
pre-configure:
|
||||
@perl -pi -e 's:\@prefix@:${PREFIX}/:g;' ${WRKSRC}/src/luaconf.h
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,6 +1,6 @@
|
||||
$OpenBSD: patch-Makefile,v 1.2 2006/07/30 04:25:41 pedro Exp $
|
||||
--- Makefile.orig Thu Jul 27 12:24:55 2006
|
||||
+++ Makefile Thu Jul 27 12:25:23 2006
|
||||
$OpenBSD: patch-Makefile,v 1.3 2006/09/25 02:39:06 pedro Exp $
|
||||
--- Makefile.orig Fri Jun 2 07:53:38 2006
|
||||
+++ Makefile Sun Sep 24 18:43:50 2006
|
||||
@@ -5,13 +5,13 @@
|
||||
# == CHANGE THE SETTINGS BELOW TO SUIT YOUR ENVIRONMENT =======================
|
||||
|
||||
@ -17,3 +17,12 @@ $OpenBSD: patch-Makefile,v 1.2 2006/07/30 04:25:41 pedro Exp $
|
||||
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.
|
||||
|
@ -1,6 +1,6 @@
|
||||
$OpenBSD: patch-src_Makefile,v 1.1 2006/07/30 04:25:41 pedro Exp $
|
||||
--- src/Makefile.orig Thu Jul 27 12:27:04 2006
|
||||
+++ src/Makefile Thu Jul 27 12:48:49 2006
|
||||
$OpenBSD: patch-src_Makefile,v 1.2 2006/09/25 02:39:06 pedro Exp $
|
||||
--- src/Makefile.orig Tue Mar 21 21:41:49 2006
|
||||
+++ src/Makefile Sun Sep 24 19:01:18 2006
|
||||
@@ -7,8 +7,8 @@
|
||||
# Your platform. See PLATS for possible values.
|
||||
PLAT= none
|
||||
@ -8,11 +8,33 @@ $OpenBSD: patch-src_Makefile,v 1.1 2006/07/30 04:25:41 pedro Exp $
|
||||
-CC= gcc
|
||||
-CFLAGS= -O2 -Wall $(MYCFLAGS)
|
||||
+CC= cc
|
||||
+CFLAGS+= $(MYCFLAGS)
|
||||
+CFLAGS+= $(MYCFLAGS) -fPIC
|
||||
AR= ar rcu
|
||||
RANLIB= ranlib
|
||||
RM= rm -f
|
||||
@@ -86,7 +86,7 @@ ansi:
|
||||
@@ -34,9 +34,10 @@ LUA_O= lua.o
|
||||
|
||||
LUAC_T= luac
|
||||
LUAC_O= luac.o print.o
|
||||
+LUA_SO= liblua.so.5.1
|
||||
|
||||
ALL_O= $(CORE_O) $(LIB_O) $(LUA_O) $(LUAC_O)
|
||||
-ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T)
|
||||
+ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T) $(LUA_SO)
|
||||
ALL_A= $(LUA_A)
|
||||
|
||||
default: $(PLAT)
|
||||
@@ -57,6 +58,9 @@ $(LUA_T): $(LUA_O) $(LUA_A)
|
||||
$(LUAC_T): $(LUAC_O) $(LUA_A)
|
||||
$(CC) -o $@ $(MYLDFLAGS) $(LUAC_O) $(LUA_A) $(LIBS)
|
||||
|
||||
+$(LUA_SO):
|
||||
+ $(CC) -o $@ -shared -fPIC $(MYLDFLAGS) $(CORE_O) $(LIB_O)
|
||||
+
|
||||
clean:
|
||||
$(RM) $(ALL_T) $(ALL_O)
|
||||
|
||||
@@ -86,7 +90,7 @@ ansi:
|
||||
$(MAKE) all MYCFLAGS=-DLUA_ANSI
|
||||
|
||||
bsd:
|
||||
|
@ -1,4 +1,4 @@
|
||||
@comment $OpenBSD: PLIST,v 1.10 2006/07/30 04:25:41 pedro Exp $
|
||||
@comment $OpenBSD: PLIST,v 1.11 2006/09/25 02:39:06 pedro Exp $
|
||||
bin/lua
|
||||
bin/luac
|
||||
include/lauxlib.h
|
||||
@ -7,6 +7,7 @@ include/lua.hpp
|
||||
include/luaconf.h
|
||||
include/lualib.h
|
||||
lib/liblua.a
|
||||
@lib lib/liblua.so.${LIBlua_VERSION}
|
||||
lib/lua/
|
||||
lib/lua/5.1/
|
||||
@man man/man1/lua.1
|
||||
|
Loading…
Reference in New Issue
Block a user