aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/epix/Makefile
blob: 6bba48f0ffee6aa6444a42d08b756b154905df90 (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
54
55
56
57
58
# ex:ts=8
# Ports collection makefile for:    epix
# Date created:         Sep 5, 2002
# Whom:             ijliao
#
# $FreeBSD$
#

PORTNAME=   epix
PORTVERSION=    1.2.10
PORTREVISION=   1
CATEGORIES= graphics
MASTER_SITES=   http://mathcs.holycross.edu/~ahwang/epix/

MAINTAINER= ports@FreeBSD.org
COMMENT=    Creates math plots and line figures using easy-to-learn syntax

LICENSE=    GPLv2 # (or later)
LICENSE_FILE=   ${WRKSRC}/COPYING

BUILD_DEPENDS=  dvips:${PORTSDIR}/print/dvipsk-tetex \
        latex-pgf>=0:${PORTSDIR}/print/latex-pgf \
        latex:${PORTSDIR}/print/teTeX-base \
        bash:${PORTSDIR}/shells/bash
RUN_DEPENDS=    latex:${PORTSDIR}/print/teTeX-base \
        bash:${PORTSDIR}/shells/bash

USE_BZIP2=  yes
USE_GMAKE=  yes
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --with-bash=${LOCALBASE}/bin/bash \
        --with-runtime=${CXX}
MAKE_JOBS_SAFE= yes

MAN1=       elaps.1 epix.1 flix.1 laps.1
INFO=       epix

post-patch:
    @${REINPLACE_CMD} -e '/^install-data-am:/s|install-data-local||' \
        ${WRKSRC}/Makefile.in
    @${REINPLACE_CMD} -e '/^install-data-am:/s|install-docDATA||' \
        ${WRKSRC}/doc/Makefile.in
    @${REINPLACE_CMD} -e '/usepackage/s|pstricks,xcolor|pstricks,tikz,xcolor|' \
        ${WRKSRC}/doc/manual.tex
    @${REINPLACE_CMD} -e '/^install-data-am:/s|install-docDATA||' \
        ${WRKSRC}/samples/Makefile.in

post-install:
.if !defined(NOPORTDOCS)
    @(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} \
        ${MAKEFILE} ${MAKE_ARGS} install-data-local)
    @(cd ${WRKSRC}/doc && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} \
        ${MAKEFILE} ${MAKE_ARGS} install-docDATA)
    @(cd ${WRKSRC}/samples && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} \
        ${MAKEFILE} ${MAKE_ARGS} install-docDATA)
.endif

.include <bsd.port.mk>