summaryrefslogtreecommitdiff
path: root/source/l/svgalib
diff options
context:
space:
mode:
authorPatrick J Volkerding <volkerdi@slackware.com>2016-06-30 20:26:57 +0000
committerEric Hameleers <alien@slackware.com>2018-05-31 23:31:18 +0200
commitd31c50870d0bee042ce660e445c9294a59a3a65b (patch)
tree6bfc0de3c95267b401b620c2c67859557dc60f97 /source/l/svgalib
parent76fc4757ac91ac7947a01fb7b53dddf9a78a01d1 (diff)
downloadcurrent-d31c50870d0bee042ce660e445c9294a59a3a65b.tar.gz
Slackware 14.2slackware-14.2
Thu Jun 30 20:26:57 UTC 2016 Slackware 14.2 x86_64 stable is released! The long development cycle (the Linux community has lately been living in "interesting times", as they say) is finally behind us, and we're proud to announce the release of Slackware 14.2. The new release brings many updates and modern tools, has switched from udev to eudev (no systemd), and adds well over a hundred new packages to the system. Thanks to the team, the upstream developers, the dedicated Slackware community, and everyone else who pitched in to help make this release a reality. The ISOs are off to be replicated, a 6 CD-ROM 32-bit set and a dual-sided 32-bit/64-bit x86/x86_64 DVD. Please consider supporting the Slackware project by picking up a copy from store.slackware.com. We're taking pre-orders now, and offer a discount if you sign up for a subscription. Have fun! :-)
Diffstat (limited to 'source/l/svgalib')
-rw-r--r--source/l/svgalib/svgalib-1.9.25-round_gtf_gtfcalc_c.patch11
-rw-r--r--source/l/svgalib/svgalib-1.9.25-vga_getmodenumber.patch11
-rwxr-xr-xsource/l/svgalib/svgalib.SlackBuild11
3 files changed, 31 insertions, 2 deletions
diff --git a/source/l/svgalib/svgalib-1.9.25-round_gtf_gtfcalc_c.patch b/source/l/svgalib/svgalib-1.9.25-round_gtf_gtfcalc_c.patch
new file mode 100644
index 00000000..91c7859c
--- /dev/null
+++ b/source/l/svgalib/svgalib-1.9.25-round_gtf_gtfcalc_c.patch
@@ -0,0 +1,11 @@
+--- svgalib-1.9.25.org/utils/gtf/gtfcalc.c 2009-08-05 13:05:26.473160060 +0530
++++ svgalib-1.9.25/utils/gtf/gtfcalc.c 2009-08-05 13:05:41.876227891 +0530
+@@ -64,7 +64,7 @@
+
+ /*-------------------------- Implementation -------------------------------*/
+
+-static double round(double v)
++double round(double v)
+ {
+ return floor(v + 0.5);
+ }
diff --git a/source/l/svgalib/svgalib-1.9.25-vga_getmodenumber.patch b/source/l/svgalib/svgalib-1.9.25-vga_getmodenumber.patch
new file mode 100644
index 00000000..59baedbc
--- /dev/null
+++ b/source/l/svgalib/svgalib-1.9.25-vga_getmodenumber.patch
@@ -0,0 +1,11 @@
+--- svgalib-1.9.25/src/vgamodesel.c.orig 2012-02-03 10:45:43.000000000 +0200
++++ svgalib-1.9.25/src/vgamodesel.c 2012-02-03 10:45:47.000000000 +0200
+@@ -35,7 +35,7 @@ int __svgalib_name2number(char *m)
+ int vga_getmodenumber(char *m)
+ {
+ int i;
+- char s[3];
++ char s[8];
+
+ __svgalib_getchipset(); /* Do initialisation first */
+ i = __svgalib_name2number(m);
diff --git a/source/l/svgalib/svgalib.SlackBuild b/source/l/svgalib/svgalib.SlackBuild
index c4c405b1..1e95669f 100755
--- a/source/l/svgalib/svgalib.SlackBuild
+++ b/source/l/svgalib/svgalib.SlackBuild
@@ -1,6 +1,6 @@
#!/bin/sh
-# Copyright 2006, 2007, 2008, 2009, 2010 Patrick J. Volkerding, Sebeka, MN, USA
+# Copyright 2006, 2007, 2008, 2009, 2010, 2015 Patrick J. Volkerding, Sebeka, MN, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +23,7 @@
PKGNAM=svgalib
VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z* | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
@@ -78,6 +78,8 @@ find . -name "*.h" -exec chmod 644 {} \;
zcat $CWD/svgalib.prefix.diff.gz | patch -p1 --verbose || exit 1
zcat $CWD/svgalib-1.9.25-kernel-2.6.26.diff.gz | patch -p1 --verbose || exit 1
zcat $CWD/svgalib.nohelper.diff.gz | patch -p1 --verbose || exit 1
+zcat $CWD/svgalib-1.9.25-round_gtf_gtfcalc_c.patch.gz | patch -p1 --verbose || exit 1
+zcat $CWD/svgalib-1.9.25-vga_getmodenumber.patch.gz | patch -p1 --verbose || exit 1
# Build and install - spamming your partition first...:
make install NO_HELPER=y || exit 1
@@ -115,6 +117,11 @@ cp -a \
$PKG/usr/doc/${PKGNAM}-$VERSION
)
+# Make sure the package contains all library symlinks:
+( cd $PKG/usr/lib${LIBDIRSUFFIX}
+ ldconfig -l *
+)
+
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc