diff options
Diffstat (limited to 'math/mupad/Makefile')
-rw-r--r-- | math/mupad/Makefile | 61 |
1 files changed, 31 insertions, 30 deletions
diff --git a/math/mupad/Makefile b/math/mupad/Makefile index 0b1a17ad87de..10054f365caa 100644 --- a/math/mupad/Makefile +++ b/math/mupad/Makefile @@ -6,18 +6,18 @@ # PORTNAME= mupad -PORTVERSION= 2.5.3 -PORTREVISION= 2 +PORTVERSION= 3.1.1 CATEGORIES= math linux MASTER_SITES= ftp://ftp.mupad.de/MuPAD/distrib/unix/ -DISTNAME= mupad_linux_scilab_253 -EXTRACT_SUFX= .tgz +DISTNAME= MuPADscilab-${PORTVERSION}-0.i386 +EXTRACT_SUFX= .rpm DIST_SUBDIR= mupad MAINTAINER= maho@FreeBSD.org COMMENT= A sophisticated computer algebra system -BROKEN= Size mismatch +EXTRACT_DEPENDS= rpm2cpio.pl:${PORTSDIR}/archivers/rpm2cpio + NO_CDROM= "unsure to sell for profit" USE_LINUX?= yes @@ -26,39 +26,40 @@ ONLY_FOR_ARCHS= i386 INSTALLS_SHLIB= yes NO_FILTER_SHLIBS= yes NO_WRKSUBDIR= yes -NO_BUILD= yes MAN1= mmg.1 mmgd.1 mupad.1 xmupad.1 +MANCOMPRESSED= yes +EXTRACT_CMD= rpm2cpio.pl +EXTRACT_BEFORE_ARGS= +EXTRACT_AFTER_ARGS= | ${CPIO} -id --quiet +USE_REINPLACE= yes +MUPADBASEDIR=MuPAD + +do-build: + @${MV} ${WRKSRC}/usr/local/MuPADscilab-${PORTVERSION}/linux ${WRKSRC}/usr/local/MuPADscilab-${PORTVERSION}/freebsd +.for d in manual mmg mupad mxdvi vcam xmupad xvc2jvx + @${REINPLACE_CMD} -e 's:%%PREFIX%%:${PREFIX}:g' \ + ${WRKSRC}/usr/local/bin/${d} +.endfor + ${RM} -rf ${WRKSRC}/usr/local/MuPADscilab-${PORTVERSION}/share/doc/man do-install: - @${MKDIR} ${PREFIX}/mupad/freebsd - @${MKDIR} ${PREFIX}/mupad/share - @${MKDIR} ${PREFIX}/mupad/packages @${FIND} ${WRKSRC} -name "*.orig" | ${XARGS} ${RM} - @${RM} -rf ${WRKSRC}/packages/scilab/linux - @${RM} -rf ${WRKSRC}/linux/lib/libXpm.so* - @${RM} -rf ${WRKSRC}/packages/scilab/linux - @${RM} -rf ${WRKSRC}/packages/scilab/solaris - @${TAR} cf - -C ${WRKSRC}/linux . | ${TAR} xf - -C ${PREFIX}/mupad/freebsd - @${TAR} --exclude doc --exclude man1 --exclude mann -cf - -C ${WRKSRC}/share . | ${TAR} xf - -C ${PREFIX}/mupad/share - @${TAR} -cf - -C ${WRKSRC}/packages --exclude CVS . | ${TAR} xf - -C ${PREFIX}/mupad/packages - @${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/mupad - @${INSTALL_DATA} ${WRKSRC}/INSTALL ${PREFIX}/mupad - @${INSTALL_DATA} ${WRKSRC}/LICENSE ${PREFIX}/mupad -.for d in mmg mupad mxdvi mxmupad mxvcam - @${BRANDELF} -t Linux ${PREFIX}/mupad/freebsd/bin/$d + @${MKDIR} ${PREFIX}/${MUPADBASEDIR} +.for d in manual mmg mupad mxdvi vcam xmupad xvc2jvx + @${INSTALL_SCRIPT} ${WRKSRC}/usr/local/bin/${d} ${PREFIX}/bin .endfor - -.for d in ${MAN1} - @${INSTALL_MAN} ${WRKSRC}/share/doc/man/man1/$d ${PREFIX}/man/man1 + @${TAR} cf - -C ${WRKSRC}/usr/local/MuPADscilab-${PORTVERSION} . | ${TAR} xf - -C ${PREFIX}/${MUPADBASEDIR} + @${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/${MUPADBASEDIR} +.for d in mmg mupad mxdvi mxmupad xvc2jvx + @${BRANDELF} -t Linux ${PREFIX}/${MUPADBASEDIR}/freebsd/bin/${d} .endfor - .if !defined(NOPORTDOCS) - @${MKDIR} ${PREFIX}/mupad/share/doc - @${TAR} cf - -C ${WRKSRC}/share/doc --exclude man1 --exclude mann . | ${TAR} xf - -C ${PREFIX}/mupad/share/doc +.for d in ${MAN1} + @${INSTALL_MAN} ${WRKSRC}/usr/share/man/man1/${d}.gz ${PREFIX}/man/man1 +.endfor + @${MKDIR} ${DOCSDIR} + @${TAR} cf - -C ${WRKSRC}/usr/share/doc/MuPADscilab-${PORTVERSION} . | ${TAR} xf - -C ${DOCSDIR} .endif -post-install: - @${SED} -e 's,/usr/local,${PREFIX},g' ${PKGMESSAGE} - .include <bsd.port.mk> |