Patch0: %{name}-nls-from-1.4.patch
Patch1: %{name}-as-needed.patch
Patch2: %{name}-gcc4.patch
+Patch3: perl-getopts.patch
URL: http://openjade.sourceforge.net/
BuildRequires: autoconf
BuildRequires: automake
%patch0 -p1
%patch1 -p1
%patch2 -p1
+%patch3 -p1
%build
LDFLAGS=""; export LDFLAGS
--- /dev/null
+--- openjade-1.3.3-pre1/msggen.pl.orig 2015-01-01 18:14:45.187510209 +0000
++++ openjade-1.3.3-pre1/msggen.pl 2015-01-01 18:15:15.480842474 +0000
+@@ -4,6 +4,7 @@
+ # See the file COPYING for copying permission.
+
+ use POSIX;
++use Getopt::Std;
+
+ # Package and version.
+ $package = 'openjade';
+@@ -18,8 +19,9 @@
+ undef $opt_l;
+ undef $opt_p;
+ undef $opt_t;
+-do 'getopts.pl';
+-&Getopts('l:p:t:');
++#do 'getopts.pl';
++#&Getopts('l:p:t:');
++getopts('l:p:t:');
+ $module = $opt_l;
+ $pot_file = $opt_p;
+