2013-06-13 17:58:20 +02:00
|
|
|
# Created by: AMAKAWA Shuhei <amakawa@jp.FreeBSD.org>
|
2002-02-09 11:03:42 +01:00
|
|
|
|
|
|
|
PORTNAME= ngspice_rework
|
2021-11-17 03:25:55 +01:00
|
|
|
PORTVERSION= 35
|
2002-02-09 11:03:42 +01:00
|
|
|
CATEGORIES= cad
|
2009-08-22 02:15:15 +02:00
|
|
|
MASTER_SITES= SF/ngspice/ng-spice-rework/${PORTVERSION}
|
2013-06-13 17:58:20 +02:00
|
|
|
DISTNAME= ngspice-${PORTVERSION}
|
2002-02-09 11:03:42 +01:00
|
|
|
|
2013-06-13 17:58:20 +02:00
|
|
|
MAINTAINER= kevinz5000@gmail.com
|
|
|
|
COMMENT= Mixed-signal circuit simulator derived from Spice and Cider
|
2002-02-09 11:03:42 +01:00
|
|
|
|
2017-07-27 01:09:46 +02:00
|
|
|
LICENSE= BSD3CLAUSE BSD4CLAUSE LGPL21+
|
|
|
|
LICENSE_COMB= multi
|
2014-01-27 17:22:55 +01:00
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
2013-06-13 17:58:20 +02:00
|
|
|
|
2021-11-17 03:25:55 +01:00
|
|
|
BROKEN_aarch64= fails to link: missing sbrk
|
2020-07-04 09:53:25 +02:00
|
|
|
|
2018-09-22 18:30:26 +02:00
|
|
|
LIB_DEPENDS= libfftw3.so:math/fftw3
|
|
|
|
|
|
|
|
FLAVORS= x11 shlib
|
2021-11-13 22:49:26 +01:00
|
|
|
shlib_PKGNAMESUFFIX= -shlib
|
|
|
|
shlib_PLIST= ${MASTERDIR}/pkg-plist-shlib
|
2018-09-22 18:30:26 +02:00
|
|
|
|
2020-07-12 15:32:02 +02:00
|
|
|
USES= compiler:c11 gmake libtool ncurses readline autoreconf pkgconfig
|
2018-09-22 18:30:26 +02:00
|
|
|
|
2017-07-27 01:09:46 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2021-11-13 22:49:26 +01:00
|
|
|
CONFIGURE_ARGS= --enable-cider --enable-xspice --with-readline=yes
|
2016-11-03 18:38:51 +01:00
|
|
|
|
2018-09-22 18:30:26 +02:00
|
|
|
OPTIONS_DEFINE= DEBUG
|
2017-07-27 01:09:46 +02:00
|
|
|
|
2018-09-22 18:30:26 +02:00
|
|
|
.if ${FLAVOR:U} == shlib
|
2021-11-13 22:49:26 +01:00
|
|
|
USE_LDCONFIG= yes
|
|
|
|
CONFIGURE_ARGS+= --with-ngshared --enable-shared
|
2018-09-22 18:30:26 +02:00
|
|
|
.else
|
2019-11-01 16:34:21 +01:00
|
|
|
USES+= xorg
|
2020-06-25 08:12:16 +02:00
|
|
|
USE_XORG= ice sm x11 xaw xext xmu xt xft
|
2018-09-22 18:30:26 +02:00
|
|
|
CONFIGURE_ARGS+= --with-x
|
2021-11-13 22:49:26 +01:00
|
|
|
PLIST_FILES= bin/ngspice man/man1/ngspice.1.gz
|
|
|
|
post-install:
|
|
|
|
@cd ${STAGEDIR}${PREFIX} && \
|
|
|
|
${RM} -r include lib share && \
|
|
|
|
${RM} bin/cmpp man/man1/cmpp.1
|
2018-09-22 18:30:26 +02:00
|
|
|
.endif
|
2017-07-27 01:09:46 +02:00
|
|
|
|
|
|
|
DEBUG_CONFIGURE_ENABLE= debug
|
|
|
|
|
|
|
|
INSTALL_TARGET= install-strip
|
2009-03-24 16:32:31 +01:00
|
|
|
|
2002-02-09 11:03:42 +01:00
|
|
|
.include <bsd.port.mk>
|