lalarm-20030709, alarm library for the lua language
This commit is contained in:
parent
63276a3c02
commit
e11f0b6aa7
38
devel/luaalarm/Makefile
Normal file
38
devel/luaalarm/Makefile
Normal file
@ -0,0 +1,38 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2006/01/25 23:32:13 jolan Exp $
|
||||
|
||||
COMMENT= "alarm library for the lua language"
|
||||
NOT_FOR_ARCHS= ${NO_SHARED_ARCHS}
|
||||
|
||||
DISTNAME= lalarm
|
||||
DATE= 20030709
|
||||
PKGNAME= luaalarm-${DATE}
|
||||
DIST_SUBDIR= luaalarm-${DATE}
|
||||
WRKDIST= ${WRKDIR}/alarm
|
||||
CATEGORIES= devel
|
||||
|
||||
MASTER_SITES= ${HOMEPAGE}
|
||||
HOMEPAGE= http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/
|
||||
|
||||
MAINTAINER= Pedro Martelletto <pedro@openbsd.org>
|
||||
|
||||
# PD
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
NO_REGRESS= Yes
|
||||
BUILD_DEPENDS= ::lang/lua
|
||||
RUN_DEPENDS= ${BUILD_DEPENDS}
|
||||
|
||||
post-extract:
|
||||
@sed -e "s:@alarmpath@:${PREFIX}/lua/luaalarm/?.lua:g" \
|
||||
${FILESDIR}/init.lua > ${WRKSRC}/init.lua
|
||||
|
||||
do-install:
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/lua/luaalarm
|
||||
${INSTALL_DATA} ${WRKSRC}/luaalarm.so ${PREFIX}/lib
|
||||
${INSTALL_DATA} ${FILESDIR}/alarm.lua ${PREFIX}/lua/luaalarm
|
||||
${INSTALL_DATA} ${WRKSRC}/init.lua ${PREFIX}/lua/luaalarm
|
||||
|
||||
.include <bsd.port.mk>
|
4
devel/luaalarm/distinfo
Normal file
4
devel/luaalarm/distinfo
Normal file
@ -0,0 +1,4 @@
|
||||
MD5 (luaalarm-20030709/lalarm.tar.gz) = 3360e7f3c55f14cdc936dbb1a6f99ea1
|
||||
RMD160 (luaalarm-20030709/lalarm.tar.gz) = a2d60777e106d5a0d1481af7b3e09726256a648b
|
||||
SHA1 (luaalarm-20030709/lalarm.tar.gz) = a27c7454e2620067c2813fbbae31454d3a99282b
|
||||
SIZE (luaalarm-20030709/lalarm.tar.gz) = 2060
|
2
devel/luaalarm/files/alarm.lua
Normal file
2
devel/luaalarm/files/alarm.lua
Normal file
@ -0,0 +1,2 @@
|
||||
-- $OpenBSD: alarm.lua,v 1.1.1.1 2006/01/25 23:32:13 jolan Exp $
|
||||
assert(loadlib("luaalarm.so","luaopen_alarm"))()
|
3
devel/luaalarm/files/init.lua
Normal file
3
devel/luaalarm/files/init.lua
Normal file
@ -0,0 +1,3 @@
|
||||
-- $OpenBSD: init.lua,v 1.1.1.1 2006/01/25 23:32:13 jolan Exp $
|
||||
-- luaalarm's initialization steps
|
||||
lua_addpath("@alarmpath@")
|
33
devel/luaalarm/patches/patch-Makefile
Normal file
33
devel/luaalarm/patches/patch-Makefile
Normal file
@ -0,0 +1,33 @@
|
||||
$OpenBSD: patch-Makefile,v 1.1.1.1 2006/01/25 23:32:13 jolan Exp $
|
||||
--- Makefile.orig Sun Jun 29 21:44:09 2003
|
||||
+++ Makefile Wed Jan 25 00:56:36 2006
|
||||
@@ -7,24 +7,22 @@ LUALIB= $(LUA)/lib
|
||||
LUABIN= $(LUA)/bin
|
||||
|
||||
# no need to change anything below here
|
||||
-CFLAGS= $(INCS) $(WARN) -O2 $G
|
||||
-WARN= -ansi -pedantic -Wall
|
||||
-INCS= -I$(LUAINC)
|
||||
+CFLAGS+= -I$(LOCALBASE)/include -fPIC -DPIC
|
||||
|
||||
MYNAME= alarm
|
||||
-MYLIB= l$(MYNAME)
|
||||
+MYLIB= lua$(MYNAME)
|
||||
|
||||
-OBJS= $(MYLIB).o
|
||||
+OBJS= lalarm.o
|
||||
|
||||
T= $(MYLIB).so
|
||||
|
||||
-all: test
|
||||
+all: $T
|
||||
|
||||
test: $T
|
||||
$(LUABIN)/lua -l$(MYNAME) test.lua
|
||||
|
||||
$T: $(OBJS)
|
||||
- $(CC) -o $@ -shared $(OBJS)
|
||||
+ $(CC) -o $@ -shared -fPIC $(OBJS)
|
||||
|
||||
clean:
|
||||
rm -f $(OBJS) $T core core.* a.out
|
1
devel/luaalarm/pkg/DESCR
Normal file
1
devel/luaalarm/pkg/DESCR
Normal file
@ -0,0 +1 @@
|
||||
luaalarm is a Lua library that permits the handling and use of SIGALRM.
|
2
devel/luaalarm/pkg/PFRAG.shared
Normal file
2
devel/luaalarm/pkg/PFRAG.shared
Normal file
@ -0,0 +1,2 @@
|
||||
@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2006/01/25 23:32:13 jolan Exp $
|
||||
lib/luaalarm.so
|
8
devel/luaalarm/pkg/PLIST
Normal file
8
devel/luaalarm/pkg/PLIST
Normal file
@ -0,0 +1,8 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2006/01/25 23:32:13 jolan Exp $
|
||||
@unexec lua ${SYSCONFDIR}/lua/luapkg.lua del luaalarm
|
||||
%%SHARED%%
|
||||
lua/
|
||||
lua/luaalarm/
|
||||
lua/luaalarm/alarm.lua
|
||||
lua/luaalarm/init.lua
|
||||
@exec lua ${SYSCONFDIR}/lua/luapkg.lua add luaalarm ${PREFIX}/lua/luaalarm/init.lua
|
Loading…
Reference in New Issue
Block a user