summaryrefslogtreecommitdiff
path: root/security/lua-sec/patches/patch-aa
blob: 8cb4ed4eaa349e0d768ec33e51dca7547f64e227 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
$NetBSD: patch-aa,v 1.4 2014/04/07 20:14:48 fhajny Exp $

Pass installation dirs properly, fix search paths, add Solaris support

--- Makefile.orig	2014-01-29 20:43:33.000000000 +0000
+++ Makefile
@@ -6,7 +6,7 @@ LUACPATH	?= /usr/lib/lua/5.1
 # Comment this lines if you will link with non-internal LuaSocket's help files
 #  and edit INCDIR and LIBDIR properly.
 EXTRA		 = luasocket
-DEFS		 = -DWITH_LUASOCKET
+DEFS		 = -DWITH_LUASOCKET -DLUA_COMPAT_MODULE
 
 # Edit the lines below to inform new path, if necessary.
 # Path below points to internal LuaSocket's help files.
@@ -30,6 +30,7 @@ none:
 	@echo "  * linux"
 	@echo "  * bsd"
 	@echo "  * macosx"
+	@echo "  * solaris"
 
 install:
 	@cd src && $(MAKE) LUACPATH="$(LUACPATH)" LUAPATH="$(LUAPATH)" install
@@ -52,5 +53,11 @@ macosx:
 	@echo "------------------------------"
 	@cd src && $(MAKE) INCDIR="$(INCDIR)" LIBDIR="$(LIBDIR)" MACVER="$(MACOSX_VERSION)" DEFS="$(DEFS)" EXTRA="$(EXTRA)" $@
 
+solaris:
+	@echo "---------------------"
+	@echo "** Build for Solaris **"
+	@echo "---------------------"
+	@cd src ; $(MAKE) INCDIR="$(INCDIR)" LIBDIR="$(LIBDIR)" DEFS="$(DEFS)" EXTRA="$(EXTRA)" $@
+
 clean:
 	@cd src && $(MAKE) clean