aboutsummaryrefslogtreecommitdiffstats
path: root/science/cdcl/Makefile
blob: 44624cd4d249ca452e952b3eb6f263db3801f587 (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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# New ports collection makefile for:    DCL-C
# Date created:     15 February 2004
# Whom:         Shin'ya Murakami <murakami@ahs.scitec.kobe-u.ac.jp>
#
# $FreeBSD$
#

PORTNAME=   cdcl
PORTVERSION=    5.3.3
CATEGORIES= science graphics
MASTER_SITES=   http://www.gfd-dennou.org/arch/dcl/
DISTNAME=   dcl-${PORTVERSION}-C

MAINTAINER= murakami@ahs.scitec.kobe-u.ac.jp
COMMENT=    Scientific graphic library for geoscience

.if defined(WITHOUT_GTK)
.else
USE_GNOME=  gtk20
.endif

USE_X_PREFIX=   yes
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --prefix=${PREFIX} --exec-prefix=${PREFIX} --with-x

.if defined(WITHOUT_GTK)
CUNFIGURE_ARGS+=    --disable-gtk --disable-gtk2
.endif

PLIST_SUB=  DCL_VERSION=${PORTVERSION:S/.//g}

.include <bsd.port.pre.mk>

.if ${ARCH} == "amd64"
CFLAGS+=        -fPIC
.endif

BINARIES=   cdclcmap cdclclr cdcldate cdcldbs cdclexec cdclfont \
        cdclpara cdcltone cdcltrf cdclver
DOCFILES=   CHECK CREDITS HISTORY README README_clrmap README_gt2dlib \
        README_itr51 README_pslib README_umfmap
DEMODIRS=   gokuraku grph1 grph2 math1 math2 misc1 misc2 rakuraku
DEMOGOKUDIR=    hop jump layout step u1d u2d
DEMOGRPH1DIR=   scpack sgpack slpack
DEMOGRPH2DIR=   grpack ucpack udegpk ulpack umpack uspack uupack uxyzpk ximage
DEMOMATH1DIR=   blklib chrlib fnclib gnmlib ifalib indxlib intlib lrllib \
        oslib rfalib rfblib sublib syslib vialib viblib vralib vrblib
DEMOMATH2DIR=   fftlib intrlib rnmlib vstlib
DEMOMISC1DIR=   bitlib chglib chklib chnlib clcklib datelib fmtlib hexlib \
        misclib randlib timelib
DEMORAKUDIR=    color kihon layout map3d miss quick u2d uspack uxyz

RESTRICTED= No commercial use

post-configure:
    @${REINPLACE_CMD} -e 's|$$(DCLLANG)dcl$$(DCLVERNUM)|$$(DCLLANG)dcl|' ${WRKSRC}/Mkinclude

post-install:
.if !defined(NOPORTDOCS)
    ${MKDIR} ${EXAMPLESDIR}
    ${INSTALL_DATA} ${WRKSRC}/demo/Makefile ${EXAMPLESDIR}
.for i in ${DEMODIRS}
    ${MKDIR} ${EXAMPLESDIR}/${i}
    ${INSTALL_DATA} ${WRKSRC}/demo/${i}/Makefile ${EXAMPLESDIR}/${i}
.endfor
.for i in ${DEMOGOKUDIR}
    ${MKDIR} ${EXAMPLESDIR}/gokuraku/${i}
    ${INSTALL_DATA} ${WRKSRC}/demo/gokuraku/${i}/* ${EXAMPLESDIR}/gokuraku/${i}/
.endfor
.for i in ${DEMOGRPH1DIR}
    ${MKDIR} ${EXAMPLESDIR}/grph1/${i}
    ${INSTALL_DATA} ${WRKSRC}/demo/grph1/${i}/* ${EXAMPLESDIR}/grph1/${i}/
.endfor
.for i in ${DEMOGRPH2DIR}
    ${MKDIR} ${EXAMPLESDIR}/grph2/${i}
    ${INSTALL_DATA} ${WRKSRC}/demo/grph2/${i}/* ${EXAMPLESDIR}/grph2/${i}/
.endfor
.for i in ${DEMOMATH1DIR}
    ${MKDIR} ${EXAMPLESDIR}/math1/${i}
    ${INSTALL_DATA} ${WRKSRC}/demo/math1/${i}/* ${EXAMPLESDIR}/math1/${i}/
.endfor
.for i in ${DEMOMATH2DIR}
    ${MKDIR} ${EXAMPLESDIR}/math2/${i}
    ${INSTALL_DATA} ${WRKSRC}/demo/math2/${i}/* ${EXAMPLESDIR}/math2/${i}/
.endfor
.for i in ${DEMOMISC1DIR}
    ${MKDIR} ${EXAMPLESDIR}/misc1/${i}
    ${INSTALL_DATA} ${WRKSRC}/demo/misc1/${i}/* ${EXAMPLESDIR}/misc1/${i}/
.endfor
.for i in ${DEMORAKUDIR}
    ${MKDIR} ${EXAMPLESDIR}/rakuraku/${i}
    ${INSTALL_DATA} ${WRKSRC}/demo/rakuraku/${i}/* ${EXAMPLESDIR}/rakuraku/${i}/
.endfor
.endif
.for i in ${BINARIES}
    ${STRIP_CMD} ${PREFIX}/bin/${i}
.endfor
    @${MKDIR} ${DOCSDIR}
.for i in ${DOCFILES}
    ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}/
.endfor
.include <bsd.port.post.mk>