blob: b34d51002e7b495740d00e75c0f3126b213de0a7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# New ports collection makefile for: mupad
# Date created: Apr 4 2001
# Whom: Nakata Maho <chat95@mbox.kyoto-inet.or.jp>
#
# $FreeBSD$
#
PORTNAME= mupad
PORTVERSION= 3.2.0
CATEGORIES= math linux
MASTER_SITES= ftp://ftp.mupad.de/MuPAD/distrib/unix/
DISTNAME= mupad-${PORTVERSION}-3-linux-i386
EXTRACT_SUFX= .rpm
DIST_SUBDIR= mupad
MAINTAINER= maho@FreeBSD.org
COMMENT= A sophisticated computer algebra system
EXTRACT_DEPENDS= rpm2cpio.pl:${PORTSDIR}/archivers/rpm2cpio
RUN_DEPENDS+= ${LINUXBASE}/usr/X11R6/lib/libGL.so.1:${PORTSDIR}/graphics/linux_dri
NO_CDROM= "unsure to sell for profit"
USE_LINUX= yes
ONLY_FOR_ARCHS= i386
NO_WRKSUBDIR= yes
EXTRACT_CMD= rpm2cpio.pl
EXTRACT_BEFORE_ARGS=
EXTRACT_AFTER_ARGS= | ${CPIO} -id --quiet
USE_REINPLACE= yes
MUPADBASEDIR=MuPAD-${PORTVERSION}
do-build:
@${MV} ${WRKSRC}/opt/MuPAD-${PORTVERSION}/linux ${WRKSRC}/opt/MuPAD-${PORTVERSION}/freebsd
.for d in mmg32 mupad32 xmupad32 xvc2jvx32
@${REINPLACE_CMD} -e 's:/opt/MuPAD-${PORTVERSION}/share/bin:${PREFIX}/${MUPADBASEDIR}/share/bin:g' \
${WRKSRC}/usr/local/bin/${d}
.endfor
do-install:
@${FIND} ${WRKSRC} -name "*.orig" | ${XARGS} ${RM}
@${MKDIR} ${PREFIX}/${MUPADBASEDIR}
@${TAR} cf - -C ${WRKSRC}/opt/MuPAD-${PORTVERSION} . | ${TAR} xf - -C ${PREFIX}/${MUPADBASEDIR}
.for d in mmg mupad xmupad xvc2jvx
@${INSTALL_SCRIPT} ${WRKSRC}/usr/local/bin/${d}32 ${PREFIX}/bin
@${LN} -s ${PREFIX}/bin/${d}32 ${PREFIX}/bin/${d}
.endfor
.include <bsd.port.mk>
|