aboutsummaryrefslogtreecommitdiffstats
path: root/math/dislin/Makefile
blob: e45458d07b40f0a1092411de41ce497d8713508d (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
52
53
# New ports collection makefile for:    linux-dislin
# Date created:             2003-12-14
# Whom:                 des
#
# $FreeBSD$
#

PORTNAME=   dislin
PORTVERSION=    8.3
CATEGORIES= math
MASTER_SITES=   ftp://ftp.gwdg.de/pub/grafik/dislin/unix/
DISTNAME=   ${PORTNAME}-${PORTVERSION}.fbsd${BINVER}

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

ONLY_FOR_ARCHS= i386
USE_XLIB=   yes
NO_BUILD=   yes
WRKSRC=     ${WRKDIR}/${PORTNAME}-${PORTVERSION}
LDCONFIG_DIRS=  ${DISLIN_DIR}/lib

MD5_FILE=   ${MASTERDIR}/distinfo${BINVER}
PLIST_SUB=  VER=${PORTVERSION}
SUB_FILES=  dislin.sh pkg-message
SUB_LIST=   DISLIN_DIR=${DISLIN_DIR}
PKGMESSAGE= ${WRKDIR}/pkg-message
DISLIN_DIR= ${PREFIX}/dislin
PROGRAMS=   clink disaps disdrv disdrv_nw disdrv_w disgcl disgif dishlp \
        dishpj disimg disman dismov disprv distif dlink f2clink gclhelp \
        gclhlp gclman

.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 501000
BINVER=     -5.1
.endif

.if ${OSVERSION} >= 600000
LIB_DEPENDS+=   c.5:${PORTSDIR}/misc/compat5x
.endif

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.post.mk>