summaryrefslogtreecommitdiffstats
path: root/math/linux-dislin/Makefile
blob: 736f21efe0f66bb2441c3b43c5cae37d84e2c0dc (plain)
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
# New ports collection makefile for:	linux-dislin
# Date created:				2003-12-14
# Whom:					des
#
# $FreeBSD$
#

PORTNAME=	dislin
PORTVERSION=	8.2
CATEGORIES=	math
MASTER_SITES=	ftp://ftp.gwdg.de/pub/grafik/dislin/linux/${MACHINE_ARCH}/
PKGNAMEPREFIX=	linux-
EXTRACT_SUFX=	.linux.tar.gz
DIST_SUBDIR=	${MACHINE_ARCH}

MAINTAINER=	des@FreeBSD.org
COMMENT=	A scientific data plotting package

USE_LINUX=	yes
ONLY_FOR_ARCHS=	i386 alpha
NO_BUILD=	yes
INSTALLS_SHLIB=	yes
LDCONFIG_DIRS=	${DISLIN_DIR}/lib

MD5_FILE=	${MASTERDIR}/distinfo.${MACHINE_ARCH}
PLIST=		${PKGDIR}/pkg-plist.${MACHINE_ARCH}
PKGMESSAGE=	${WRKDIR}/pkg-message
DISLIN_DIR=	${PREFIX}/dislin
PROGRAMS=	clink disaps disdrv disdrv_nw disdrv_w disgif dishlp dishpj \
		disimg disman dismov disprv distif dlink f2clink g77link

do-configure:
	${SED} -e 's,%%DISLIN_DIR%%,${DISLIN_DIR},' \
	    <${FILESDIR}/dislin-wrapper.sh >${WRKDIR}/dislin.sh
	${SED} -e 's,%%DISLIN_DIR%%,${DISLIN_DIR},' \
	    <${FILESDIR}/pkg-message >${WRKDIR}/pkg-message

do-install:
	(cd ${WRKSRC} && ${ENV} DISLIN=${DISLIN_DIR} ${SH} INSTALL)
	${INSTALL_SCRIPT} ${WRKDIR}/dislin.sh ${DISLIN_DIR}/bin
.for _program in ${PROGRAMS}
	${LN} -s ${DISLIN_DIR}/bin/dislin.sh ${PREFIX}/bin/${_program}
.endfor

post-install:
	${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>
OpenPOWER on IntegriCloud