]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blobdiff - bison/bison.nm
Merge remote-tracking branch 'stevee/compat-packages'
[people/ms/ipfire-3.x.git] / bison / bison.nm
index 7335957027576abc419d3f57ed9eb502b9c3d2c3..8b1a1a994bd3c6326e5faa14d73a6c83c092ee19 100644 (file)
@@ -4,7 +4,7 @@
 ###############################################################################
 
 name       = bison
-version    = 2.5
+version    = 2.7.1
 release    = 1
 
 groups     = Development/Tools
@@ -21,25 +21,30 @@ source_dl  = http://ftp.gnu.org/gnu/bison/
 
 build
        requires
-               m4
+               m4 >= 1.4.16
+               perl
        end
 
        configure_cmds
                echo '#define YYENABLE_NLS 1' >> lib/config.h
        end
 
+       build_cmds
+               cd lib
+               gcc -shared -Wl,-soname,liby.so.%{version} \
+                       -o liby.so.%{version} %{CFLAGS} main.o yyerror.o
+       end
+
        test
                make check
        end
 
        install_cmds
-               mkdir -pv %{BUILDROOT}/usr/lib
-               cd %{DIR_APP}/lib && gcc -shared -Wl,-soname,liby.so.%{version} \
-                       -o liby.so.%{version} %{CFLAGS} main.o yyerror.o
-               cd %{DIR_APP}/lib && install -v liby.so.%{version} \
-                       %{BUILDROOT}/usr/lib/liby.so.%{version}
-               ln -vsf liby.so.%{version} %{BUILDROOT}/usr/lib/liby.so.2
-               ln -vsf liby.so.2 %{BUILDROOT}/usr/lib/liby.so
+               mkdir -pv %{BUILDROOT}%{libdir}
+               cd lib
+               install -v liby.so.%{version} %{BUILDROOT}%{libdir}/liby.so.%{version}
+               ln -vsf liby.so.%{version} %{BUILDROOT}%{libdir}/liby.so.2
+               ln -vsf liby.so.2 %{BUILDROOT}%{libdir}/liby.so
        end
 end