2004-02-27 22:35:23 +00:00
|
|
|
# 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
|
2005-02-24 20:15:00 +00:00
|
|
|
PORTVERSION= 5.3
|
2005-03-12 10:54:27 +00:00
|
|
|
PORTREVISION= 1
|
2004-02-27 22:35:23 +00:00
|
|
|
CATEGORIES= science graphics
|
|
|
|
MASTER_SITES= http://www.gfd-dennou.org/arch/dcl/
|
2005-02-24 20:15:00 +00:00
|
|
|
DISTNAME= dcl-5.3-C
|
2004-02-27 22:35:23 +00:00
|
|
|
|
2005-02-24 20:15:00 +00:00
|
|
|
MAINTAINER= murakami@ahs.scitec.kobe-u.ac.jp
|
|
|
|
COMMENT= Scientific graphic library for geoscience
|
2004-02-27 22:35:23 +00:00
|
|
|
|
2005-02-24 20:15:00 +00:00
|
|
|
.if defined(WITHOUT_GTK)
|
|
|
|
.else
|
2004-02-27 22:35:23 +00:00
|
|
|
USE_GNOME= gtk20
|
|
|
|
.endif
|
|
|
|
|
|
|
|
USE_X_PREFIX= yes
|
2005-02-24 20:15:00 +00:00
|
|
|
USE_REINPLACE= yes
|
2004-02-27 22:35:23 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2005-02-24 20:15:00 +00:00
|
|
|
CONFIGURE_ARGS= --prefix=${PREFIX} --exec-prefix=${PREFIX} --libdir=${PREFIX}/lb/${PORTNAME}-${PORTVERSION} --with-x
|
2004-02-27 22:35:23 +00:00
|
|
|
|
2005-02-24 20:15:00 +00:00
|
|
|
.if defined(WITHOUT_GTK)
|
|
|
|
CUNFIGURE_ARGS+= --disable-gtk --disable-gtk2
|
|
|
|
.endif
|
|
|
|
|
|
|
|
DCL_VERSION= ${PORTVERSION}-C
|
|
|
|
PLIST_SUB= DCL_VERSION=${DCL_VERSION}
|
|
|
|
|
|
|
|
BINARIES= cdclcmap cdclclr cdcldate cdcldbs cdclexec cdclfont \
|
|
|
|
cdclpara cdcltone cdcltrf cdclver
|
|
|
|
PSLIBS= dclps2kdraw dclpscat dclpsfix dclpsfont dclpsline \
|
|
|
|
dclpsmargin dclpsmerge dclpsnup dclpsrmcm dclpsrot \
|
|
|
|
dclpsselect dclpsseparate dclpsunrot
|
|
|
|
DOCFILES= CHECK CREDITS HISTORY README README_clrmap README_gt2dlib \
|
|
|
|
README_itr51 README_pslib README_umfmap
|
2004-02-27 22:35:23 +00:00
|
|
|
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"
|
|
|
|
|
2005-02-24 20:15:00 +00:00
|
|
|
pre-build:
|
|
|
|
@cd ${WRKSRC}
|
|
|
|
@${REINPLACE_CMD} -e 's+dcldbase+dcldbase-${PORTVERSION}-C+' ${WRKSRC}/Mkinclude
|
|
|
|
@${REINPLACE_CMD} -e 's+dclps+cdclps+g' ${WRKSRC}/bin/Makefile
|
|
|
|
@${REINPLACE_CMD} -e 's+dclps+cdclps+g' ${WRKSRC}/src/env2/pslib/Makefile
|
|
|
|
.for i in ${PSLIBS}
|
|
|
|
${MV} ${WRKSRC}/src/env2/pslib/${i} ${WRKSRC}/src/env2/pslib/c${i}
|
|
|
|
.endfor
|
|
|
|
|
2004-02-27 22:35:23 +00:00
|
|
|
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.mk>
|