mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-29 01:13:08 +00:00
37e782dfbc
minor COMMENT typos and surrounding whitespace fixes. Categories A-C. CR: D196 Approved by: portmgr (bapt)
64 lines
1.6 KiB
Makefile
64 lines
1.6 KiB
Makefile
# Created by: Julian Jenkins <kaveman@magna.com.au>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= spice
|
|
PORTVERSION= 3f5.2
|
|
PORTREVISION= 8
|
|
CATEGORIES= cad
|
|
MASTER_SITES= http://embedded.eecs.berkeley.edu/pubs/downloads/spice/:sources
|
|
PKGNAMESUFFIX= ${NOX11SUFX}
|
|
DISTFILES= spice3f5${EXTRACT_SUFX}:sources \
|
|
cp.ps toc.ps doc.ps
|
|
DIST_SUBDIR= spice
|
|
EXTRACT_ONLY= spice3f5${EXTRACT_SUFX}
|
|
|
|
MAINTAINER= hrs@FreeBSD.org
|
|
COMMENT= General-purpose circuit simulation program
|
|
|
|
LICENSE= BSD
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}3f5
|
|
MAKEFILE= ${FILESDIR}/Makefile
|
|
MAKE_ENV+= STRIP_CMD=${STRIP_CMD}
|
|
MAKE_JOBS_UNSAFE= yes
|
|
MAN1= sconvert.1 nutmeg.1 spice.1
|
|
MAN3= mfb.3
|
|
MAN5= mfbcap.5
|
|
MLINKS= spice.1 spice3.1
|
|
|
|
OPTIONS_DEFINE= DOCS X11
|
|
OPTIONS_DEFAULT=DOCS X11
|
|
|
|
NO_STAGE= yes
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MX11}
|
|
USE_XORG= x11 xaw xext xmu xt
|
|
NOX11SUFX=
|
|
.else
|
|
NOX11SUFX= -nox11
|
|
COMMENT= A general-purpose circuit simulation program (non-X11 version)
|
|
MAKE_ARGS+= -DWITHOUT_X11
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|/usr/ucb|${LOCALBASE}/bin|' ${WRKSRC}/util/build
|
|
|
|
do-configure:
|
|
@${CP} ${FILESDIR}/FreeBSD ${WRKSRC}/conf/FreeBSD
|
|
@${CP} ${FILESDIR}/FreeBSD.without_x11 ${WRKSRC}/conf/FreeBSD.without_x11
|
|
@${REINPLACE_CMD} -e 's+@CC@+${CC}+ ; s+@CFLAGS@+${CFLAGS}+ ; \
|
|
s+@X11BASE@+${LOCALBASE}+;' \
|
|
${WRKSRC}/conf/FreeBSD ${WRKSRC}/conf/FreeBSD.without_x11
|
|
|
|
post-install:
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
${MKDIR} ${DOCSDIR}
|
|
${CAT} ${DISTDIR}/${DIST_SUBDIR}/*.ps > ${DOCSDIR}/spice3f3.ps
|
|
${GZIP_CMD} ${DOCSDIR}/*.ps
|
|
.endif
|
|
${MKDIR} ${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/examples/*.cir ${EXAMPLESDIR}
|
|
|
|
.include <bsd.port.mk>
|