1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00
freebsd-ports/cad/ngspice_rework/Makefile
Nuno Teixeira 7223e2f99a cad/ngspice_rework: Move man pages to share/man
Approved by:	portmgr (blanket)
2024-03-02 23:32:29 +00:00

49 lines
1.2 KiB
Makefile

PORTNAME= ngspice_rework
PORTVERSION= 41
PORTREVISION= 1
CATEGORIES= cad
MASTER_SITES= SF/ngspice/ng-spice-rework/${PORTVERSION}
DISTNAME= ngspice-${PORTVERSION}
MAINTAINER= kevinz5000@gmail.com
COMMENT= Mixed-signal circuit simulator derived from Spice and Cider
WWW= https://ngspice.sourceforge.io/
LICENSE= BSD3CLAUSE BSD4CLAUSE LGPL21+
LICENSE_COMB= multi
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libfftw3.so:math/fftw3
FLAVORS= x11 shlib
shlib_PKGNAMESUFFIX= -shlib
shlib_PLIST= ${MASTERDIR}/pkg-plist-shlib
USES= compiler:c11 gmake libtool ncurses readline autoreconf pkgconfig
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-cider --enable-xspice --with-readline=yes
GNU_CONFIGURE_MANPREFIX= ${PREFIX}/share
OPTIONS_DEFINE= DEBUG
.if ${FLAVOR:U} == shlib
USE_LDCONFIG= yes
CONFIGURE_ARGS+= --with-ngshared --enable-shared
.else
USES+= xorg
USE_XORG= ice sm x11 xaw xext xmu xt xft
CONFIGURE_ARGS+= --with-x
PLIST_FILES= bin/ngspice share/man/man1/ngspice.1.gz
post-install:
@cd ${STAGEDIR}${PREFIX} && \
${RM} -r include lib share/ngspice && \
${RM} bin/cmpp man/man1/cmpp.1
.endif
DEBUG_CONFIGURE_ENABLE= debug
INSTALL_TARGET= install-strip
.include <bsd.port.mk>