View | Details | Raw Unified | Return to bug 250409
Collapse All | Expand All

(-)devel/luafilesystem/Makefile (-2 / +1 lines)
Lines 3-10 Link Here
3
3
4
PORTNAME=	luafilesystem
4
PORTNAME=	luafilesystem
5
DISTVERSIONPREFIX=	v
5
DISTVERSIONPREFIX=	v
6
DISTVERSION=	1_7_0
6
DISTVERSION=	1_8_0
7
PORTREVISION=	1
8
CATEGORIES=	devel
7
CATEGORIES=	devel
9
PKGNAMEPREFIX=	${LUA_PKGNAMEPREFIX}
8
PKGNAMEPREFIX=	${LUA_PKGNAMEPREFIX}
10
9
(-)devel/luafilesystem/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1506581912
1
TIMESTAMP = 1602883563
2
SHA256 (keplerproject-luafilesystem-v1_7_0_GH0.tar.gz) = 854ef99b6a4eb48af00c304e26fc4429094a8612003a7a81ba22014f32e85db3
2
SHA256 (keplerproject-luafilesystem-v1_8_0_GH0.tar.gz) = 16d17c788b8093f2047325343f5e9b74cccb1ea96001e45914a58bbae8932495
3
SIZE (keplerproject-luafilesystem-v1_7_0_GH0.tar.gz) = 30829
3
SIZE (keplerproject-luafilesystem-v1_8_0_GH0.tar.gz) = 30374
(-)devel/luafilesystem/files/patch-Makefile (-24 lines)
Lines 1-24 Link Here
1
--- Makefile.orig	2015-01-15 18:58:20 UTC
2
+++ Makefile
3
@@ -11,15 +11,18 @@ OBJS= src/$T.o
4
 
5
 lib: src/lfs.so
6
 
7
+$(OBJS): $(SRCS)
8
+	$(CC) $(CFLAGS) -c $(SRCS) -o $(OBJS)
9
+
10
 src/lfs.so: $(OBJS)
11
-	MACOSX_DEPLOYMENT_TARGET="10.3"; export MACOSX_DEPLOYMENT_TARGET; $(CC) $(LIB_OPTION) -o src/lfs.so $(OBJS)
12
+	$(CC) $(CFLAGS) $(LIB_OPTION) -o src/lfs.so $(OBJS)
13
 
14
 test: lib
15
 	LUA_CPATH=./src/?.so lua tests/test.lua
16
 
17
 install:
18
-	mkdir -p $(LUA_LIBDIR)
19
-	cp src/lfs.so $(LUA_LIBDIR)
20
+	mkdir -p $(DESTDIR)$(LUA_LIBDIR)
21
+	cp src/lfs.so $(DESTDIR)$(LUA_LIBDIR)
22
 
23
 clean:
24
 	rm -f src/lfs.so $(OBJS)
(-)devel/luafilesystem/files/patch-config (-12 / +14 lines)
Lines 1-31 Link Here
1
--- config.orig	2015-01-15 18:58:20 UTC
1
--- config.orig	2020-04-23 01:16:42 UTC
2
+++ config
2
+++ config
3
@@ -1,24 +1,24 @@
3
@@ -1,16 +1,15 @@
4
 # Installation directories
4
 # Installation directories
5
 
5
 
6
 # Default installation prefix
6
 # Default installation prefix
7
-PREFIX=/usr/local
7
-PREFIX=/usr/local
8
+PREFIX=%%PREFIX%%
8
+PREFIX?=/usr/local
9
 
9
 
10
-LUA_VERSION = 5.1
11
+LUA_VERSION?= 5.1
12
 
10
 # System's libraries directory (where binary libraries are installed)
13
 # System's libraries directory (where binary libraries are installed)
11
-LUA_LIBDIR= $(PREFIX)/lib/lua/5.1
14
-LUA_LIBDIR= $(PREFIX)/lib/lua/$(LUA_VERSION)
12
+LUA_LIBDIR= %%MODLIBDIR%%
15
+LUA_LIBDIR= %%MODLIBDIR%%
13
 
16
 
14
 # Lua includes directory
17
 # Lua includes directory
15
-LUA_INC= $(PREFIX)/include
18
-LUA_INC += -I$(PREFIX)/include
16
+LUA_INC= %%INCDIR%%
19
-LUA_INC += -I/usr/include/lua$(LUA_VERSION) -I/usr/include/lua/$(LUA_VERSION)
20
+LUA_INC += %%INCDIR%%
17
 
21
 
18
 # OS dependent
22
 # OS dependent
19
 LIB_OPTION= -shared #for Linux
23
 LIB_OPTION= -shared #for Linux
20
 #LIB_OPTION= -bundle -undefined dynamic_lookup #for MacOS X
24
@@ -22,7 +21,7 @@ MACOSX_DEPLOYMENT_TARGET= 10.5
21
 
22
-LIBNAME= $T.so.$V
23
+LIBNAME= $T.so
24
 
25
 # Compilation directives
25
 # Compilation directives
26
 WARN= -O2 -Wall -fPIC -W -Waggregate-return -Wcast-align -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings -pedantic
26
 WARN= -O2 -Wall -fPIC -W -Waggregate-return -Wcast-align -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings -pedantic
27
 INCS= -I$(LUA_INC)
27
 INCS= $(LUA_INC)
28
-CFLAGS= $(WARN) $(INCS)
28
-CFLAGS= $(WARN) $(INCS)
29
-CC= gcc
29
-CC= gcc
30
+CFLAGS+= $(WARN) $(INCS)
30
+CFLAGS+= $(WARN) $(INCS)
31
+CC?= gcc
31
+CC?= gcc
32
 
33
 # $Id: config,v 1.21 2007/10/27 22:42:32 carregal Exp $

Return to bug 250409