diff --git a/srcpkgs/ngspice/patches/xgraph_Makefile_am.patch b/srcpkgs/ngspice/patches/xgraph_Makefile_am.patch new file mode 100644 index 00000000000..ccb01594ade --- /dev/null +++ b/srcpkgs/ngspice/patches/xgraph_Makefile_am.patch @@ -0,0 +1,10 @@ +--- xgraph/Makefile.am.bck 2017-03-03 13:46:57.354309383 -0500 ++++ xgraph/Makefile.am 2017-03-03 13:47:05.193092565 -0500 +@@ -50,7 +50,6 @@ + + # C_WARNINGS = -Wall + C_WARNINGS = +-CFLAGS=$(ADDITIONAL_INCLUDES) $(C_WARNINGS) -g $(X_CFLAGS) + + xgraph_LDADD= $(ADDITIONAL_LIBS) $(X_LIBS) $(X_PRE_LIBS) $(X_EXTRA_LIBS) -lX11 -lm + diff --git a/srcpkgs/ngspice/patches/xgraph_Makefile_in.patch b/srcpkgs/ngspice/patches/xgraph_Makefile_in.patch new file mode 100644 index 00000000000..83a00f7dc8b --- /dev/null +++ b/srcpkgs/ngspice/patches/xgraph_Makefile_in.patch @@ -0,0 +1,15 @@ +104c104 +< CFLAGS = $(ADDITIONAL_INCLUDES) $(C_WARNINGS) -g $(X_CFLAGS) +--- +> CFLAGS = @CFLAGS@ +--- xgraph/Makefile.in.bck 2017-03-03 13:56:19.941818032 -0500 ++++ xgraph/Makefile.in 2017-03-03 13:56:33.118453570 -0500 +@@ -101,7 +101,7 @@ + AWK = @AWK@ + CC = @CC@ + CCDEPMODE = @CCDEPMODE@ +-CFLAGS = $(ADDITIONAL_INCLUDES) $(C_WARNINGS) -g $(X_CFLAGS) ++CFLAGS = @CFLAGS@ + CPP = @CPP@ + CPPFLAGS = @CPPFLAGS@ + CYGPATH_W = @CYGPATH_W@ diff --git a/srcpkgs/ngspice/template b/srcpkgs/ngspice/template new file mode 100644 index 00000000000..5bc80430858 --- /dev/null +++ b/srcpkgs/ngspice/template @@ -0,0 +1,15 @@ +# Template file for 'ngspice' +pkgname=ngspice +version=26 +revision=1 +build_style=gnu-configure +configure_args="--with-x --with-readline=yes --enable-xgraph" +hostmakedepends="bison byacc" +makedepends="readline-devel libX11-devel libXaw-devel" +short_desc="Mixed Mode Mixed Level Circuit Simulator based on Spice3F5" +maintainer="Toyam Cox " +license="LGPL-2.1" +homepage="http://ngspice.sourceforge.net" +distfiles="${SOURCEFORGE_SITE}/ngspice/ng-spice-rework/${version}/${pkgname}-${version}.tar.gz" +checksum=51e230c8b720802d93747bc580c0a29d1fb530f3dd06f213b6a700ca9a4d0108 +nocross="https://travis-ci.org/Vaelatern/void-packages/jobs/207472663 but really should be possible with clearing CFLAGS for that binary"