diff options
Diffstat (limited to 'media-libs/libsfml/files/libsfml-1.6-csfml-destdir.patch')
-rw-r--r-- | media-libs/libsfml/files/libsfml-1.6-csfml-destdir.patch | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/media-libs/libsfml/files/libsfml-1.6-csfml-destdir.patch b/media-libs/libsfml/files/libsfml-1.6-csfml-destdir.patch new file mode 100644 index 000000000000..cdf0c46215ae --- /dev/null +++ b/media-libs/libsfml/files/libsfml-1.6-csfml-destdir.patch @@ -0,0 +1,76 @@ +--- SFML-1.6.orig/CSFML/src/SFML/Audio/Makefile ++++ SFML-1.6/CSFML/src/SFML/Audio/Makefile +@@ -20,4 +20,4 @@ + @rm -rf $(LIBNAME)
+
+ install:
+- @($(CP) $(LIBNAME) $(DESTLIBDIR) && $(LN) $(LNFLAGS) $(LIB).$(VERSION) $(DESTLIBDIR)/$(LIB))
++ @($(CP) $(LIBNAME) $(DESTDIR)/$(libdir) && $(LN) $(LNFLAGS) $(LIB).$(VERSION) $(DESTDIR)/$(libdir)/$(LIB))
+--- SFML-1.6.orig/CSFML/src/SFML/Graphics/Makefile ++++ SFML-1.6/CSFML/src/SFML/Graphics/Makefile +@@ -20,4 +20,4 @@ + @rm -rf $(LIBNAME)
+
+ install:
+- @($(CP) $(LIBNAME) $(DESTLIBDIR) && $(LN) $(LNFLAGS) $(LIB).$(VERSION) $(DESTLIBDIR)/$(LIB))
++ @($(CP) $(LIBNAME) $(DESTDIR)/$(libdir) && $(LN) $(LNFLAGS) $(LIB).$(VERSION) $(DESTDIR)/$(libdir)/$(LIB))
+--- SFML-1.6.orig/CSFML/src/SFML/Makefile ++++ SFML-1.6/CSFML/src/SFML/Makefile +@@ -1,15 +1,18 @@ + export CC = gcc
+ export CPP = g++
+-export CFLAGS = -W -Wall -pedantic -fPIC -Wno-unused -I../.. -I../../../include -DNDEBUG -DCSFML_EXPORTS -O2
+-export LDFLAGS = -shared
++export CFLAGS += -W -Wall -pedantic -fPIC -Wno-unused -I../.. -I../../../include -DNDEBUG -DCSFML_EXPORTS
++export LDFLAGS += -shared
+ export LIBPATH = ../../../lib
+ export VERSION = 1.6
+ export CP = cp
+ export LN = ln
+ export LNFLAGS = -s -f
+-export DESTDIR = /usr/local
+-export DESTLIBDIR = $(DESTDIR)/lib
+-export DESTINCDIR = $(DESTDIR)/include
++export DESTDIR =
++ifeq ($(origin prefix), undefined)
++ export prefix = /usr/local
++endif
++export libdir = $(prefix)/lib
++export includedir = $(prefix)/include
+
+ all: csfml-system csfml-window csfml-network csfml-graphics csfml-audio
+
+@@ -42,6 +45,6 @@ + @(cd ./System && $(MAKE) $@ && cd ../Window && $(MAKE) $@ && cd ../Network && $(MAKE) $@ && cd ../Graphics && $(MAKE) $@ && cd ../Audio && $(MAKE) $@)
+
+ install:
+- @(mkdir -p $(DESTLIBDIR))
+- @(mkdir -p $(DESTINCDIR))
+- @(cd ./System && $(MAKE) $@ && cd ../Window && $(MAKE) $@ && cd ../Network && $(MAKE) $@ && cd ../Graphics && $(MAKE) $@ && cd ../Audio && $(MAKE) $@ && $(CP) -r ../../../include/SFML/ $(DESTINCDIR))
++ @(mkdir -p $(DESTDIR)/$(libdir))
++ @(mkdir -p $(DESTDIR)/$(includedir))
++ @(cd ./System && $(MAKE) $@ && cd ../Window && $(MAKE) $@ && cd ../Network && $(MAKE) $@ && cd ../Graphics && $(MAKE) $@ && cd ../Audio && $(MAKE) $@ && $(CP) -r ../../../include/SFML/ $(DESTDIR)/$(includedir))
+--- SFML-1.6.orig/CSFML/src/SFML/Network/Makefile ++++ SFML-1.6/CSFML/src/SFML/Network/Makefile +@@ -20,4 +20,4 @@ + @rm -rf $(LIBNAME)
+
+ install:
+- @($(CP) $(LIBNAME) $(DESTLIBDIR) && $(LN) $(LNFLAGS) $(LIB).$(VERSION) $(DESTLIBDIR)/$(LIB))
++ @($(CP) $(LIBNAME) $(DESTDIR)/$(libdir) && $(LN) $(LNFLAGS) $(LIB).$(VERSION) $(DESTDIR)/$(libdir)/$(LIB))
+--- SFML-1.6.orig/CSFML/src/SFML/System/Makefile ++++ SFML-1.6/CSFML/src/SFML/System/Makefile +@@ -20,4 +20,4 @@ + @rm -rf $(LIBNAME)
+
+ install:
+- @($(CP) $(LIBNAME) $(DESTLIBDIR) && $(LN) $(LNFLAGS) $(LIB).$(VERSION) $(DESTLIBDIR)/$(LIB))
++ @($(CP) $(LIBNAME) $(DESTDIR)/$(libdir) && $(LN) $(LNFLAGS) $(LIB).$(VERSION) $(DESTDIR)/$(libdir)/$(LIB))
+--- SFML-1.6.orig/CSFML/src/SFML/Window/Makefile ++++ SFML-1.6/CSFML/src/SFML/Window/Makefile +@@ -20,4 +20,4 @@ + @rm -rf $(LIBNAME)
+
+ install:
+- @($(CP) $(LIBNAME) $(DESTLIBDIR) && $(LN) $(LNFLAGS) $(LIB).$(VERSION) $(DESTLIBDIR)/$(LIB))
++ @($(CP) $(LIBNAME) $(DESTDIR)/$(libdir) && $(LN) $(LNFLAGS) $(LIB).$(VERSION) $(DESTDIR)/$(libdir)/$(LIB))
|