diff options
author | Robby Workman <rworkman@slackbuilds.org> | 2012-09-09 23:34:24 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2012-09-10 16:37:33 -0500 |
commit | ab44d415df158b9d097a9bbd60a6c908807b20a6 (patch) | |
tree | 505f485456dc2bbb50e0d4836fdceaa9cb04361e /network | |
parent | ac04695ab48741dd063ce0da0d56106f94e8ed2c (diff) |
network/gtorrentviewer: Make sure libm is linked
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'network')
-rw-r--r-- | network/gtorrentviewer/gtorrentviewer.SlackBuild | 5 | ||||
-rw-r--r-- | network/gtorrentviewer/patches/fix_linking_libm.diff | 12 |
2 files changed, 16 insertions, 1 deletions
diff --git a/network/gtorrentviewer/gtorrentviewer.SlackBuild b/network/gtorrentviewer/gtorrentviewer.SlackBuild index 2e8842f4e5efa..40bdec7a42eca 100644 --- a/network/gtorrentviewer/gtorrentviewer.SlackBuild +++ b/network/gtorrentviewer/gtorrentviewer.SlackBuild @@ -24,7 +24,7 @@ PRGNAM=gtorrentviewer VERSION=${VERSION:-0.2b} -BUILD=${BUILD:-2} +BUILD=${BUILD:-3} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -72,6 +72,9 @@ find . \ # Fix building against newer cURL sed -i 's|#include <curl/types.h>||g' src/main.c +# Fix linking of libm +patch -p1 < $CWD/patches/fix_linking_libm.diff + # The following 2 patches are from Fedora 13 # Let drag and drop work with URIs as well as files diff --git a/network/gtorrentviewer/patches/fix_linking_libm.diff b/network/gtorrentviewer/patches/fix_linking_libm.diff new file mode 100644 index 0000000000000..4be5b63bb378e --- /dev/null +++ b/network/gtorrentviewer/patches/fix_linking_libm.diff @@ -0,0 +1,12 @@ +diff -Nur GTorrentViewer-0.2b.orig/src/Makefile.in GTorrentViewer-0.2b/src/Makefile.in +--- GTorrentViewer-0.2b.orig/src/Makefile.in 2004-10-25 23:42:16.000000000 -0500 ++++ GTorrentViewer-0.2b/src/Makefile.in 2012-09-09 23:31:34.092115981 -0500 +@@ -115,7 +115,7 @@ + + CFLAGS = @CFLAGS@ @CURL_CFLAGS@ @GTK_CFLAGS@ + +-LDADD = @GTK_LIBS@ @CURL_LIBS@ ++LDADD = @GTK_LIBS@ @CURL_LIBS@ -lm + + bin_PROGRAMS = gtorrentviewer + |