summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVlad Glagolev2015-02-11 20:26:23 +0300
committerVlad Glagolev2015-02-11 20:26:23 +0300
commit1d002cceeee95c0863bbf8fcfc23f0553c003220 (patch)
treee44c3ad2fec14b14382f76941fe0d66a8938948b
parent60081e2e1a7f0a78980333a80be5cff4ffc690e3 (diff)
lynx: fixed build with default CFLAGS
-rw-r--r--http/lynx/HISTORY4
-rwxr-xr-xhttp/lynx/PRE_BUILD4
-rw-r--r--http/lynx/locale.patch11
3 files changed, 19 insertions, 0 deletions
diff --git a/http/lynx/HISTORY b/http/lynx/HISTORY
index 7860812676..3f7baeb8e0 100644
--- a/http/lynx/HISTORY
+++ b/http/lynx/HISTORY
@@ -1,3 +1,7 @@
+2015-02-11 Vlad Glagolev <stealth@sourcemage.org>
+ * PRE_BUILD: added, to apply the patch
+ * locale.patch: fixed build with default CFLAGS
+
2012-05-15 Vlad Glagolev <stealth@sourcemage.org>
* DEPENDS: added more dependencies
* BUILD: use LYNX_OPTS
diff --git a/http/lynx/PRE_BUILD b/http/lynx/PRE_BUILD
new file mode 100755
index 0000000000..d028efb28f
--- /dev/null
+++ b/http/lynx/PRE_BUILD
@@ -0,0 +1,4 @@
+default_pre_build &&
+cd "$SOURCE_DIRECTORY" &&
+
+patch -p0 < "$SPELL_DIRECTORY/locale.patch"
diff --git a/http/lynx/locale.patch b/http/lynx/locale.patch
new file mode 100644
index 0000000000..407f7b65d4
--- /dev/null
+++ b/http/lynx/locale.patch
@@ -0,0 +1,11 @@
+--- src/LYMain.c.orig 2015-02-11 17:08:22.080000232 +0000
++++ src/LYMain.c 2015-02-11 17:08:47.350000293 +0000
+@@ -57,7 +57,7 @@
+ #include <io.h>
+ #endif
+
+-#if defined(LOCALE) && !defined(HAVE_LIBINTL_H)
++#if defined(LOCALE)
+ #undef gettext /* Solaris locale.h prototypes gettext() */
+ #include <locale.h>
+ #ifndef HAVE_GETTEXT