summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-libs/svgalib/files/svgalib-1.9.18-gentoo.patch')
-rw-r--r--media-libs/svgalib/files/svgalib-1.9.18-gentoo.patch99
1 files changed, 99 insertions, 0 deletions
diff --git a/media-libs/svgalib/files/svgalib-1.9.18-gentoo.patch b/media-libs/svgalib/files/svgalib-1.9.18-gentoo.patch
new file mode 100644
index 000000000000..859144307d24
--- /dev/null
+++ b/media-libs/svgalib/files/svgalib-1.9.18-gentoo.patch
@@ -0,0 +1,99 @@
+--- svgalib-1.9.18/Makefile 2004-02-22 20:16:50.506825616 +0200
++++ svgalib-1.9.18/Makefile 2004-02-22 20:18:55.028895384 +0200
+@@ -78,10 +78,6 @@
+
+ installheaders:
+ @echo Installing header files in $(includedir).
+- @if [ -f /usr/include/vga.h ]; then \
+- rm -f /usr/include/vga.h /usr/include/vgagl.h; \
+- echo Old header files in /usr/include removed.; \
+- fi
+ @mkdir -p $(includedir)
+ @cp $(srcdir)/src/vga.h $(includedir)/vga.h
+ @chmod a+r $(includedir)/vga.h
+@@ -95,16 +91,6 @@
+ @chmod a+r $(includedir)/vgakeyboard.h
+
+ installsharedlib: $(SHAREDLIBS) $(SVGALIBSHAREDSTUBS)
+- @if [ -f /usr/lib/libvga.sa ]; then \
+- rm -f /usr/lib/libvga.sa /usr/lib/libvgagl.sa; \
+- echo Old stubs in /usr/lib removed.; \
+- fi
+-ifndef KEEPSHAREDLIBS
+- @echo "Removing shared library images (old & current)..."
+- @for i in $(OBSOLETELDIRS); do \
+- rm -f `echo $(OBSOLETESHAREDIMAGES) | sed s?/lib/?$$i?g`; \
+- done
+-endif
+ @echo Installing shared library image as \
+ $(addprefix $(sharedlibdir)/,$(notdir $(SHAREDLIBS))).
+ @for foo in $(notdir $(SHAREDLIBS)); do \
+@@ -118,10 +104,8 @@
+ installstaticlib: static
+ @echo Installing static libraries in $(libdir).
+ @mkdir -p $(libdir)
+- @rm -f /usr/lib/libvga.a
+ @$(INSTALL_DATA) staticlib/libvga.a $(libdir)/libvga.a
+ @chmod a+r $(libdir)/libvga.a
+- @rm -f /usr/lib/libvgagl.a
+ @$(INSTALL_DATA) staticlib/libvgagl.a $(libdir)/libvgagl.a
+ @chmod a+r $(libdir)/libvgagl.a
+
+@@ -130,14 +114,6 @@
+ echo No $(bindir) directory, creating it.; \
+ mkdir -p $(bindir); \
+ fi
+- @if [ -f /usr/bin/restorefont ]; then \
+- echo Removing old utilities in /usr/bin.; \
+- for x in $(UTILS); do rm -f /usr/bin/$$x; done; \
+- fi
+- @if [ -f /usr/bin/convfont ]; then \
+- echo Removing inappropriate utilities in /usr/bin.; \
+- rm -f /usr/bin/convfont /usr/bin/setmclk; \
+- fi
+ @echo Installing textmode utilities in $(bindir):
+ @echo "restorefont: Save/restore textmode font."
+ @cp utils/restorefont $(bindir)
+@@ -210,7 +186,7 @@
+ lib3dkit-install:
+ (cd threeDKit/; $(MAKE) install)
+
+-install: uninstall installheaders $(INSTALLSHAREDLIB) installconfig \
++install: installheaders $(INSTALLSHAREDLIB) installconfig \
+ $(INSTALLSTATICLIB) $(INSTALLUTILS) $(INSTALLMAN) installmodule $(INSTALLDEV) \
+ lib3dkit-install
+ @echo
+--- svgalib-1.9.18/kernel/svgalib_helper/Makefile 2004-02-22 20:24:57.921727288 +0200
++++ svgalib-1.9.18/kernel/svgalib_helper/Makefile 2004-02-22 20:23:34.654385848 +0200
+@@ -45,8 +45,8 @@
+ svgalib_helper.o: $(svgalib_helper-objs)
+ $(LD) -r -o $@ $(svgalib_helper-objs)
+
+-install: device modules_install
++install: modules_install
+
+ modules_install: $(TARGET).o
+- mkdir -p /lib/modules/$(VER)/kernel/misc
+- install -m 0644 -c $(TARGET).o /lib/modules/$(VER)/kernel/misc
++ mkdir -p $(TOPDIR)/lib/modules/$(VER)/kernel/misc
++ install -m 0644 -c $(TARGET).o $(TOPDIR)/lib/modules/$(VER)/kernel/misc
+--- svgalib-1.9.18/Makefile.cfg 2004-02-22 20:38:09.813341464 +0200
++++ svgalib-1.9.18/Makefile.cfg 2004-02-22 20:41:45.480555064 +0200
+@@ -44,7 +44,7 @@
+ # Common prefix for installation directories.
+ # NOTE: This directory must exist when you start the install.
+ TOPDIR=
+-prefix = $(TOPDIR)/usr/local
++prefix = $(TOPDIR)/usr
+ exec_prefix = $(prefix)
+
+ # Directory where the shared stubs and static library will be installed.
+@@ -126,7 +126,7 @@
+ # MAKEWHATIS = makewhatis # Beware, this will really need a few minutes!
+
+ # Comment this out if you use devfs only and don't want to make svga nodes
+-INSTALLDEV = installdev
++#INSTALLDEV = installdev
+
+ #
+ # Comment out any driver that you don't want included in the library.