SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
31
devel/luaalarm/patches/patch-Makefile
Normal file
31
devel/luaalarm/patches/patch-Makefile
Normal file
|
@ -0,0 +1,31 @@
|
|||
--- Makefile.orig Wed Oct 11 16:13:03 2006
|
||||
+++ Makefile Sun Jul 8 19:12:08 2012
|
||||
@@ -1,23 +1,23 @@
|
||||
# makefile for alarm library for Lua
|
||||
|
||||
# change these to reflect your Lua installation
|
||||
-LUA= /tmp/lhf/lua-5.0
|
||||
-LUAINC= $(LUA)/include
|
||||
+LUA= $(LOCALBASE)
|
||||
+LUAINC= ${MODLUA_INCL_DIR}
|
||||
LUALIB= $(LUA)/lib
|
||||
LUABIN= $(LUA)/bin
|
||||
|
||||
# no need to change anything below here
|
||||
-CFLAGS= $(INCS) $(WARN) -O2 $G
|
||||
+CFLAGS+= $(INCS) -fPIC -DPIC $G
|
||||
WARN= -pedantic -Wall
|
||||
INCS= -I$(LUAINC)
|
||||
|
||||
MYNAME= alarm
|
||||
MYLIB= l$(MYNAME)
|
||||
-T= $(MYLIB).so
|
||||
+T= alarm.so
|
||||
OBJS= $(MYLIB).o
|
||||
TEST= test.lua
|
||||
|
||||
-all: test
|
||||
+all: so
|
||||
|
||||
test: $T
|
||||
$(LUABIN)/lua -l$(MYNAME) $(TEST)
|
8
devel/luaalarm/patches/patch-test_lua
Normal file
8
devel/luaalarm/patches/patch-test_lua
Normal file
|
@ -0,0 +1,8 @@
|
|||
--- test.lua.orig Mon Jun 4 21:03:19 2007
|
||||
+++ test.lua Mon Jun 4 21:03:26 2007
|
||||
@@ -1,4 +1,5 @@
|
||||
-- test alarm
|
||||
+require("alarm")
|
||||
|
||||
function myalarm()
|
||||
print("in alarm!",os.date"%T",a,math.floor(100*a/N).."%")
|
Loading…
Add table
Add a link
Reference in a new issue