sources/luafilesystem/luafilesystem-arch.patch
author Anders Bergh <anders1@gmail.com>
Mon, 17 Dec 2007 04:44:31 +0100
changeset 1 c42d991ddcdb
permissions -rw-r--r--
Add utils dir (sync scripts etc will go here) Add my AUR package sources Add some more things to .hgignore

diff -ruN luafilesystem-1.3.0.orig/Makefile luafilesystem-1.3.0/Makefile
--- luafilesystem-1.3.0.orig/Makefile	2007-06-07 03:28:08.000000000 +0200
+++ luafilesystem-1.3.0/Makefile	2007-10-27 20:36:46.000000000 +0200
@@ -12,12 +12,12 @@
 lib: src/$(LIBNAME)
 
 src/$(LIBNAME): $(OBJS)
-	export MACOSX_DEPLOYMENT_TARGET="10.3"; $(CC) $(CFLAGS) $(LIB_OPTION) -o src/$(LIBNAME) $(OBJS)
+	$(CC) $(CFLAGS) $(LIB_OPTION) -o src/$(LIBNAME) $(OBJS)
 
 install: src/$(LIBNAME)
-	mkdir -p $(LUA_LIBDIR)
-	cp src/$(LIBNAME) $(LUA_LIBDIR)
-	cd $(LUA_LIBDIR); ln -f -s $(LIBNAME) $T.so
+	mkdir -p $(DESTDIR)$(LUA_LIBDIR)
+	cp src/$(LIBNAME) $(DESTDIR)$(LUA_LIBDIR)
+	cd $(DESTDIR)$(LUA_LIBDIR); ln -f -s $(LIBNAME) $T.so
 
 clean:
 	rm -f src/$(LIBNAME) $(OBJS)
diff -ruN luafilesystem-1.3.0.orig/config luafilesystem-1.3.0/config
--- luafilesystem-1.3.0.orig/config	2007-07-31 05:22:55.000000000 +0200
+++ luafilesystem-1.3.0/config	2007-10-27 20:36:08.000000000 +0200
@@ -1,8 +1,8 @@
 # Installation directories
 # System's libraries directory (where binary libraries are installed)
-LUA_LIBDIR= /usr/local/lib/lua/5.1
+LUA_LIBDIR= /usr/lib/lua/5.1
 # Lua includes directory
-LUA_INC= /usr/local/include
+LUA_INC= /usr/include
 
 # OS dependent
 LIB_OPTION= -shared #for Linux