Files
ports/cad/ngspice/Makefile.inc
T
sthen 901a6c9511 set CPPFLAGS/LDFLAGS to consistently pick up headers and libraries on
gcc and clang archs. add dep on fftw.

fixes a build problem on ports-gcc archs where the default library path
includes /usr/local/lib/gcc/ARCH-unknown-openbsd/15.2.0/../../.., a.k.a.
/usr/local/lib, but the default include search path for system headers
just has /usr/local/lib/gcc/x86_64-unknown-openbsd/15.2.0/include{,-fixed}
and /usr/include (so the library is picked up, but headers are not).

ok claudio@
2026-01-28 13:53:10 +00:00

35 lines
580 B
Makefile

V ?= 43
DISTNAME ?= ngspice-${V}
CATEGORIES ?= cad
HOMEPAGE ?= https://ngspice.sourceforge.net/
# BSD
PERMIT_PACKAGE ?= Yes
SITES ?= ${SITE_SOURCEFORGE:=ngspice/}
USE_GMAKE ?= yes
AUTOCONF_VERSION = 2.69
AUTOMAKE_VERSION = 1.16
CONFIGURE_STYLE = autoreconf
TAR = ${LOCALBASE}/bin/gtar
# C++ + C11
COMPILER ?= base-clang ports-gcc
BUILD_DEPENDS += archivers/gtar
CONFIGURE_ARGS += --enable-cider \
--enable-xspice \
--with-readline=yes
CONFIGURE_ARGS += --disable-openmp
CONFIGURE_ENV = CPPFLAGS=-I${LOCALBASE}/include \
LDFLAGS=-L${LOCALBASE}/lib