diff --git a/cad/ngspice_rework/Makefile b/cad/ngspice_rework/Makefile index 9ef7b0a9fa6b..4e6feafc68cc 100644 --- a/cad/ngspice_rework/Makefile +++ b/cad/ngspice_rework/Makefile @@ -1,48 +1,53 @@ # Created by: AMAKAWA Shuhei PORTNAME= ngspice_rework PORTVERSION= 32 +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 LICENSE= BSD3CLAUSE BSD4CLAUSE LGPL21+ LICENSE_COMB= multi LICENSE_FILE= ${WRKSRC}/COPYING BROKEN_aarch64= Fails to link: missing sbrk LIB_DEPENDS= libfftw3.so:math/fftw3 FLAVORS= x11 shlib -shlib_PKGNAMESUFFIX= -shlib +shlib_PKGNAMESUFFIX= -shlib shlib_CONFLICTS_INSTALL= ngspice_rework-2* +shlib_PLIST= ${MASTERDIR}/pkg-plist-shlib x11_CONFLICTS_INSTALL= ngspice_rework-shlib-2* USES= compiler:c11 gmake libtool ncurses readline autoreconf pkgconfig -USE_LDCONFIG= yes GNU_CONFIGURE= yes - -CONFIGURE_ARGS= --enable-cider --enable-shared --enable-xspice --with-readline=yes +CONFIGURE_ARGS= --enable-cider --enable-xspice --with-readline=yes OPTIONS_DEFINE= DEBUG .if ${FLAVOR:U} == shlib -CONFIGURE_ARGS+= --with-ngshared -PLIST_SUB+= SHLIB="" X11="@comment " +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_SUB+= SHLIB="@comment " X11="" +RUN_DEPENDS= ngspice_rework-shlib>0:cad/ngspice_rework@shlib +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 .endif DEBUG_CONFIGURE_ENABLE= debug INSTALL_TARGET= install-strip .include diff --git a/cad/ngspice_rework/pkg-plist b/cad/ngspice_rework/pkg-plist-shlib similarity index 95% rename from cad/ngspice_rework/pkg-plist rename to cad/ngspice_rework/pkg-plist-shlib index c4723abba754..1990dbeb4afb 100644 --- a/cad/ngspice_rework/pkg-plist +++ b/cad/ngspice_rework/pkg-plist-shlib @@ -1,146 +1,144 @@ bin/cmpp -%%X11%%bin/ngspice -%%SHLIB%%libdata/pkgconfig/ngspice.pc -%%SHLIB%%lib/libngspice.so -%%SHLIB%%lib/libngspice.so.0 -%%SHLIB%%lib/libngspice.so.0.0.0 +libdata/pkgconfig/ngspice.pc +lib/libngspice.so +lib/libngspice.so.0 +lib/libngspice.so.0.0.0 lib/ngspice/analog.cm lib/ngspice/digital.cm lib/ngspice/spice2poly.cm lib/ngspice/table.cm lib/ngspice/xtradev.cm lib/ngspice/xtraevt.cm man/man1/cmpp.1.gz -%%X11%%man/man1/ngspice.1.gz share/ngspice/dlmain.c include/ngspice/enhtypes.h include/ngspice/evtshared.h include/ngspice/evttypes.h include/ngspice/randnumb.h include/ngspice/stringskip.h include/ngspice/1-f-code.h include/ngspice/FastNorm3.h include/ngspice/acdefs.h include/ngspice/bdrydefs.h include/ngspice/bool.h include/ngspice/carddefs.h include/ngspice/ciderinp.h include/ngspice/cidersupt.h include/ngspice/cktdefs.h include/ngspice/cluster.h include/ngspice/cm.h include/ngspice/cmconstants.h include/ngspice/cmproto.h include/ngspice/cmtypes.h include/ngspice/compatmode.h include/ngspice/complex.h include/ngspice/config.h include/ngspice/const.h include/ngspice/contdefs.h include/ngspice/cpdefs.h include/ngspice/cpextern.h include/ngspice/cpstd.h include/ngspice/defines.h include/ngspice/devdefs.h include/ngspice/dgen.h include/ngspice/distodef.h include/ngspice/dllitf.h include/ngspice/domndefs.h include/ngspice/dopdefs.h include/ngspice/dstring.h include/ngspice/dvec.h include/ngspice/elctdefs.h include/ngspice/enh.h include/ngspice/evt.h include/ngspice/evtproto.h include/ngspice/evtudn.h include/ngspice/fftext.h include/ngspice/ftedbgra.h include/ngspice/ftedebug.h include/ngspice/ftedefs.h include/ngspice/ftedev.h include/ngspice/fteext.h include/ngspice/fteinp.h include/ngspice/fteinput.h include/ngspice/fteoptdefs.h include/ngspice/fteparse.h include/ngspice/gendefs.h include/ngspice/gendev.h include/ngspice/graph.h include/ngspice/grid.h include/ngspice/hash.h include/ngspice/hlpdefs.h include/ngspice/iferrmsg.h include/ngspice/ifsim.h include/ngspice/inpdefs.h include/ngspice/inpmacs.h include/ngspice/inpptree.h include/ngspice/ipc.h include/ngspice/ipcproto.h include/ngspice/ipctiein.h include/ngspice/jobdefs.h include/ngspice/lsort.h include/ngspice/macros.h include/ngspice/material.h include/ngspice/matldefs.h include/ngspice/memory.h include/ngspice/meshdefs.h include/ngspice/meshext.h include/ngspice/methdefs.h include/ngspice/mif.h include/ngspice/mifcmdat.h include/ngspice/mifdefs.h include/ngspice/mifparse.h include/ngspice/mifproto.h include/ngspice/miftypes.h include/ngspice/missing_math.h include/ngspice/mobdefs.h include/ngspice/modldefs.h include/ngspice/multi_line.h include/ngspice/ngspice.h include/ngspice/noisedef.h include/ngspice/numcards.h include/ngspice/numconst.h include/ngspice/numenum.h include/ngspice/numgen.h include/ngspice/numglobs.h include/ngspice/onedev.h include/ngspice/onemesh.h include/ngspice/opdefs.h include/ngspice/optdefs.h include/ngspice/optndefs.h include/ngspice/outpdefs.h include/ngspice/plot.h include/ngspice/pnode.h include/ngspice/profile.h include/ngspice/pssdefs.h include/ngspice/pzdefs.h include/ngspice/sen2defs.h include/ngspice/sensdefs.h include/ngspice/sensgen.h include/ngspice/sharedspice.h include/ngspice/sim.h include/ngspice/smpdefs.h include/ngspice/sperror.h include/ngspice/spmatrix.h include/ngspice/stringutil.h include/ngspice/suffix.h include/ngspice/swec.h include/ngspice/tclspice.h include/ngspice/tfdefs.h include/ngspice/trandefs.h include/ngspice/trcvdefs.h include/ngspice/tskdefs.h include/ngspice/twodev.h include/ngspice/twomesh.h include/ngspice/typedefs.h include/ngspice/wallace.h include/ngspice/wincolornames.h include/ngspice/wordlist.h include/ngspice/wstdio.h share/ngspice/scripts/ciderinit share/ngspice/scripts/devaxis share/ngspice/scripts/devload share/ngspice/scripts/setplot share/ngspice/scripts/spectrum share/ngspice/scripts/spinit