SecBSD's official ports repository

This commit is contained in:
purplerain 2023-08-16 22:26:55 +00:00
commit 2c0afcbbf3
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
64331 changed files with 5339189 additions and 0 deletions

View 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)

View 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).."%")