pkgsrc/devel/lua-filesystem/patches/patch-aa
2013-09-13 12:09:37 +00:00

27 lines
779 B
Text

$NetBSD: patch-aa,v 1.2 2013/09/13 12:09:37 fhajny Exp $
Fix default directory locations
--- config.orig 2012-10-04 14:25:54.000000000 +0000
+++ config
@@ -1,10 +1,10 @@
# Installation directories
# Default installation prefix
-PREFIX=/usr/local
+PREFIX?=/usr/local
# System's libraries directory (where binary libraries are installed)
-LUA_LIBDIR= $(PREFIX)/lib/lua/5.1
+LUA_LIBDIR= $(DESTDIR)$(PREFIX)/$(LUA_CDIR)
# Lua includes directory
LUA_INC= $(PREFIX)/include
@@ -16,7 +16,7 @@ LIB_OPTION= -shared #for Linux
LIBNAME= $T.so.$V
# Compilation directives
-WARN= -O2 -Wall -fPIC -W -Waggregate-return -Wcast-align -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings -pedantic
+WARN= -O2 -fPIC
INCS= -I$(LUA_INC)
CFLAGS= $(WARN) $(INCS)
CC= gcc