summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmanuele Giaquinta <exg@gentoo.org>2006-10-16 11:26:53 +0000
committerEmanuele Giaquinta <exg@gentoo.org>2006-10-16 11:26:53 +0000
commitc1f7c42061588edbe39b7e27cf6241498d2f4d8c (patch)
tree10159cf3929f01920eab1816cc7a5da6527a4613 /dev-lang/lua/files
parentchange the openoffice mask to <2.0.4 (diff)
downloadhistorical-c1f7c42061588edbe39b7e27cf6241498d2f4d8c.tar.gz
historical-c1f7c42061588edbe39b7e27cf6241498d2f4d8c.tar.bz2
historical-c1f7c42061588edbe39b7e27cf6241498d2f4d8c.zip
Add patch for ppc-macos. Cleanup.
Package-Manager: portage-2.1.2_pre3-r1
Diffstat (limited to 'dev-lang/lua/files')
-rw-r--r--dev-lang/lua/files/lua-5.0.3-destdir.patch30
-rw-r--r--dev-lang/lua/files/lua-5.0.3-dylib.patch27
2 files changed, 57 insertions, 0 deletions
diff --git a/dev-lang/lua/files/lua-5.0.3-destdir.patch b/dev-lang/lua/files/lua-5.0.3-destdir.patch
new file mode 100644
index 000000000000..c95cf4e3e3eb
--- /dev/null
+++ b/dev-lang/lua/files/lua-5.0.3-destdir.patch
@@ -0,0 +1,30 @@
+--- Makefile.old 2006-10-15 19:11:53.684244053 +0200
++++ Makefile 2006-10-15 19:13:19.637126651 +0200
+@@ -30,11 +30,11 @@
+
+ # official installation
+ install: all strip
+- mkdir -p $(INSTALL_BIN) $(INSTALL_INC) $(INSTALL_LIB) $(INSTALL_MAN)
+- $(INSTALL_EXEC) bin/* $(INSTALL_BIN)
+- $(INSTALL_DATA) include/*.h $(INSTALL_INC)
+- $(INSTALL_DATA) lib/*.a $(INSTALL_LIB)
+- $(INSTALL_DATA) doc/*.1 $(INSTALL_MAN)
++ mkdir -p $(DESTDIR)$(INSTALL_BIN) $(DESTDIR)$(INSTALL_INC) $(DESTDIR)$(INSTALL_LIB) $(DESTDIR)$(INSTALL_MAN)
++ $(INSTALL_EXEC) bin/* $(DESTDIR)$(INSTALL_BIN)
++ $(INSTALL_DATA) include/*.h $(DESTDIR)$(INSTALL_INC)
++ $(INSTALL_DATA) lib/*.a $(DESTDIR)$(INSTALL_LIB)
++ $(INSTALL_DATA) doc/*.1 $(DESTDIR)$(INSTALL_MAN)
+
+ # shared libraries (for Linux)
+ so:
+@@ -50,8 +50,8 @@
+
+ # install shared libraries
+ soinstall:
+- $(INSTALL_EXEC) lib/*.so.* $(INSTALL_LIB)
+- cd $(INSTALL_LIB); ln -fs liblua.so.$V liblua.so; ln -fs liblualib.so.$V liblualib.so
++ $(INSTALL_EXEC) lib/*.so.* $(DESTDIR)$(INSTALL_LIB)
++ cd $(DESTDIR)$(INSTALL_LIB); ln -fs liblua.so.$V liblua.so; ln -fs liblualib.so.$V liblualib.so
+
+ # clean shared libraries
+ soclean:
diff --git a/dev-lang/lua/files/lua-5.0.3-dylib.patch b/dev-lang/lua/files/lua-5.0.3-dylib.patch
new file mode 100644
index 000000000000..447edb6b26f9
--- /dev/null
+++ b/dev-lang/lua/files/lua-5.0.3-dylib.patch
@@ -0,0 +1,27 @@
+--- Makefile.old 2006-10-07 15:40:26.052127208 +0200
++++ Makefile 2006-10-07 19:06:55.504062239 +0200
+@@ -42,6 +42,12 @@
+ $(CC) $(LDFLAGS) -o lib/liblualib.so.$V -shared -Wl,-soname,liblualib.so.$V src/lib/*.o -L$(LIB) -llua $(EXTRA_LIBS) $(DLLIB)
+ cd lib; ln -fs liblua.so.$V liblua.so; ln -fs liblualib.so.$V liblualib.so
+
++dylib:
++ $(CC) -dynamiclib -flat_namespace -undefined suppress -o lib/liblua.$V.dylib src/*.lo -install_name $(INSTALL_LIB)/liblua.$V.dylib -compatibility_version $V -current_version $V
++ $(CC) -dynamiclib -flat_namespace -undefined suppress -o lib/liblualib.$V.dylib src/lib/*.lo -install_name $(INSTALL_LIB)/liblualib.$V.dylib -compatibility_version $V -current_version $V
++ cd lib; ln -fs liblua.$V.dylib liblua.dylib; ln -fs liblualib.$V.dylib liblualib.dylib
++ cd lib; ln -fs liblua.$V.dylib liblua.$(V:%.0=%).dylib; ln -fs liblualib.$V.dylib liblualib.$(V:%.0=%).dylib
++
+ # binaries using shared libraries
+ sobin:
+ rm -f bin/*
+@@ -53,6 +59,11 @@
+ $(INSTALL_EXEC) lib/*.so.* $(INSTALL_LIB)
+ cd $(INSTALL_LIB); ln -fs liblua.so.$V liblua.so; ln -fs liblualib.so.$V liblualib.so
+
++dylibinstall:
++ $(INSTALL_EXEC) lib/*.dylib $(DESTDIR)$(INSTALL_LIB)
++ cd $(DESTDIR)$(INSTALL_LIB); ln -fs liblua.$V.dylib liblua.dylib; ln -fs liblualib.$V.dylib liblualib.dylib
++ cd $(DESTDIR)$(INSTALL_LIB); ln -fs liblua.$V.dylib liblua.$(V:%.0=%).dylib; ln -fs liblualib.$V.dylib liblualib.$(V:%.0=%).dylib
++
+ # clean shared libraries
+ soclean:
+ rm -f lib/*.so* bin/*