diff options
author | steve <steve@FreeBSD.org> | 1999-12-30 05:32:14 +0800 |
---|---|---|
committer | steve <steve@FreeBSD.org> | 1999-12-30 05:32:14 +0800 |
commit | 90426fe35b918fb7eb199687e21ac34c934cb3c9 (patch) | |
tree | 693b0e74b22cd10fa81f09922f3822f3d55103e7 /cad/cider/Makefile | |
parent | e6cb0ec46e06aae7319a4b15e9f9994d9c2fef3f (diff) | |
download | freebsd-ports-graphics-90426fe35b918fb7eb199687e21ac34c934cb3c9.tar.gz freebsd-ports-graphics-90426fe35b918fb7eb199687e21ac34c934cb3c9.tar.zst freebsd-ports-graphics-90426fe35b918fb7eb199687e21ac34c934cb3c9.zip |
* Do not set NO_WRKSUBDIR to yes. Specify WRKSRC.
* Respect CFLAGS.
* Make less use of __FreeBSD__.
* Use more system-defined make variables.
PR: 15746
Submitted by: maintainer
Diffstat (limited to 'cad/cider/Makefile')
-rw-r--r-- | cad/cider/Makefile | 32 |
1 files changed, 24 insertions, 8 deletions
diff --git a/cad/cider/Makefile b/cad/cider/Makefile index a86c3da5e6d..d4ee86e0290 100644 --- a/cad/cider/Makefile +++ b/cad/cider/Makefile @@ -14,24 +14,40 @@ EXTRACT_SUFX= .tar.Z MAINTAINER= amakawa@jp.FreeBSD.org +WRKSRC= ${WRKDIR}/sim USE_XLIB= yes -NO_WRKSUBDIR= yes MAN1= sconvert.1 nutmeg.1 spice.1 cider.1 MAN3= mfb.3 MAN5= mfbcap.5 MLINKS= spice.1 spice3.1 pre-patch: - ${CP} -f ${WRKSRC}/sim/spice/common/lib/helpdir/spice.txt ${WRKSRC}/sim/cider/common/lib/helpdir/spice.txt + @${CP} -f ${WRKSRC}/spice/common/lib/helpdir/spice.txt ${WRKSRC}/cider/common/lib/helpdir/spice.txt + +post-patch: + @${LN} -fs ${WRKSRC}/spice/common/util/makelib.sh ${WRKSRC}/cider/common/util + @${LN} -fs ${WRKSRC}/spice/common/src/lib/sparse/spdefs.h ${WRKSRC}/cider/common/src/include + @${CP} -f ${FILESDIR}/Makefile.spice ${WRKSRC}/spice/common/Makefile + @${CP} -f ${FILESDIR}/Makefile.cider ${WRKSRC}/cider/common/Makefile + @${CP} -f ${FILESDIR}/FreeBSD ${WRKSRC}/spice/common/conf + @${CP} -f ${FILESDIR}/FreeBSD ${WRKSRC}/cider/common/conf + +do-build: + @(cd ${WRKSRC}/spice/common && ${SETENV} ${MAKE_ENV} ${MAKE}) + @(cd ${WRKSRC}/cider/common && ${SETENV} ${MAKE_ENV} ${MAKE}) + +do-install: + @(cd ${WRKSRC}/spice/common && ${SETENV} ${MAKE_ENV} ${MAKE} install) + @(cd ${WRKSRC}/cider/common && ${SETENV} ${MAKE_ENV} ${MAKE} install) post-install: .if !defined(NOPORTDOCS) - ${MKDIR} ${PREFIX}/share/examples/spice3 - ${INSTALL_DATA} ${WRKSRC}/sim/spice/common/examples/*.cir ${PREFIX}/share/examples/spice3 - ${MKDIR} ${PREFIX}/share/examples/cider - ${TAR} -cf - -C ${WRKSRC}/sim/cider/common/examples . | ${TAR} -xf - -C ${PREFIX}/share/examples/cider - ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/examples/cider - ${LN} -fs ${PREFIX}/share/spice3/scripts/spinit ${PREFIX}/share/cider/scripts + @${MKDIR} ${PREFIX}/share/examples/spice3 + @${INSTALL_DATA} ${WRKSRC}/spice/common/examples/*.cir ${PREFIX}/share/examples/spice3 + @${MKDIR} ${PREFIX}/share/examples/cider + @${TAR} -cf - -C ${WRKSRC}/cider/common/examples . | ${TAR} -xf - -C ${PREFIX}/share/examples/cider + @${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/examples/cider + @${LN} -fs ${PREFIX}/share/spice3/scripts/spinit ${PREFIX}/share/cider/scripts .endif .include <bsd.port.mk> |