1997-10-06 10:18:49 +02:00
|
|
|
# New ports collection makefile for: plplot
|
|
|
|
# Date created: 03 Oct 1997
|
1999-08-31 08:53:31 +02:00
|
|
|
# Whom: Thomas Gellekum <tg@FreeBSD.org>
|
1997-10-06 10:18:49 +02:00
|
|
|
#
|
1999-08-25 09:23:21 +02:00
|
|
|
# $FreeBSD$
|
1997-10-06 10:18:49 +02:00
|
|
|
#
|
|
|
|
|
2000-04-14 09:20:58 +02:00
|
|
|
PORTNAME= plplot
|
2009-01-02 06:11:05 +01:00
|
|
|
PORTVERSION= 5.8.0
|
|
|
|
CATEGORIES= math science
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
MASTER_SITES= SF
|
2001-06-13 18:07:11 +02:00
|
|
|
|
1999-11-08 14:01:34 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 20:00:52 +01:00
|
|
|
COMMENT= A scientific plotting package
|
1997-10-06 10:18:49 +02:00
|
|
|
|
2003-08-30 19:02:43 +02:00
|
|
|
BUILD_DEPENDS= gm4:${PORTSDIR}/devel/m4
|
2005-05-09 01:40:45 +02:00
|
|
|
LIB_DEPENDS= unicode.0:${PORTSDIR}/devel/libunicode \
|
|
|
|
gd.4:${PORTSDIR}/graphics/gd \
|
|
|
|
qhull.5:${PORTSDIR}/math/qhull
|
2001-06-13 18:07:11 +02:00
|
|
|
|
2007-07-14 11:51:49 +02:00
|
|
|
USE_FORTRAN= yes
|
2007-01-16 05:59:31 +01:00
|
|
|
|
2005-11-15 07:52:12 +01:00
|
|
|
USE_AUTOTOOLS= libltdl:15
|
2006-06-06 00:17:49 +02:00
|
|
|
USE_PERL5_BUILD=yes
|
1997-10-06 10:18:49 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2003-05-18 21:37:30 +02:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
2001-06-13 18:07:11 +02:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib" \
|
2007-01-16 05:59:31 +01:00
|
|
|
M4="${LOCALBASE}/bin/gm4" \
|
|
|
|
FC="${FC}" F77="${F77}" FFLAGS="${FFLAGS}"
|
2004-02-10 16:39:09 +01:00
|
|
|
CONFIGURE_ARGS= --disable-cgm --disable-java --disable-octave \
|
2005-05-09 01:40:45 +02:00
|
|
|
--with-gd-incdir=${LOCALBASE}/include \
|
|
|
|
--with-gd-libdir=${LOCALBASE}/lib \
|
2007-01-16 05:59:31 +01:00
|
|
|
--with-freetype-font-dir=${LOCALBASE} \
|
|
|
|
--enable-f95
|
2006-08-15 02:29:13 +02:00
|
|
|
USE_LDCONFIG= yes
|
2003-05-18 21:37:30 +02:00
|
|
|
PLIST_SUB= VERSION="${PORTVERSION}"
|
|
|
|
|
|
|
|
MAN1= plm2gif.1 plplot_libtool.1 plpr.1 pltek.1 pstex2eps.1
|
|
|
|
|
|
|
|
.if defined(WITHOUT_X11)
|
|
|
|
PKGNAMESUFFIX= -nox11
|
|
|
|
CONFIGURE_ARGS+= --without-x
|
|
|
|
PLIST_SUB+= X11="@comment "
|
|
|
|
.else
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
USE_XORG= x11
|
2007-07-06 05:50:15 +02:00
|
|
|
LIB_DEPENDS+= LASi.0:${PORTSDIR}/devel/lasi
|
2003-05-18 21:37:30 +02:00
|
|
|
PLIST_SUB+= X11=""
|
|
|
|
.endif
|
1997-10-06 10:18:49 +02:00
|
|
|
|
2004-02-10 16:39:09 +01:00
|
|
|
.if !defined(WITHOUT_PTHREAD)
|
|
|
|
CONFIGURE_ARGS+= --with-pthreads
|
|
|
|
.endif
|
|
|
|
|
2004-08-11 13:07:14 +02:00
|
|
|
.if defined(WITH_SVGALIB)
|
|
|
|
LIB_DEPENDS+= vga:${PORTSDIR}/graphics/svgalib
|
|
|
|
PLIST_SUB+= SVGALIB=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-linuxvga
|
|
|
|
PLIST_SUB+= SVGALIB="@comment "
|
|
|
|
.endif
|
|
|
|
|
2004-02-10 16:39:09 +01:00
|
|
|
.if defined(WITH_PYTHON)
|
|
|
|
USE_PYTHON= yes
|
|
|
|
PLIST_SUB+= PYTHON=""
|
2006-06-06 00:17:49 +02:00
|
|
|
CONFIGURE_ENV+= PYTHON_VERSION="${PYTHON_VERSION}"
|
2004-02-10 16:39:09 +01:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-python
|
|
|
|
PLIST_SUB+= PYTHON="@comment "
|
|
|
|
.endif
|
|
|
|
|
2007-07-09 04:49:37 +02:00
|
|
|
.if defined(WITH_GNOME)
|
|
|
|
.undef WITHOUT_X11
|
2007-07-06 05:50:15 +02:00
|
|
|
USE_GNOME= libgnomeprintui libgnomeui
|
|
|
|
PLIST_SUB+= GNOME=""
|
2007-07-09 04:49:37 +02:00
|
|
|
.else
|
|
|
|
PLIST_SUB+= GNOME="@comment "
|
|
|
|
CONFIGURE_ARGS+= --disable-gcw
|
|
|
|
.endif
|
2007-07-06 05:50:15 +02:00
|
|
|
|
2001-12-22 14:59:12 +01:00
|
|
|
.if defined(WITH_TCLTK)
|
2003-05-18 21:37:30 +02:00
|
|
|
.undef WITHOUT_X11
|
|
|
|
PKGNAMESUFFIX= -tcltk
|
2006-06-06 00:17:49 +02:00
|
|
|
LIB_DEPENDS+= itk.3:${PORTSDIR}/x11-toolkits/itk
|
|
|
|
CONFIGURE_ENV+= ITKINCDIR="${LOCALBASE}/include/itk3.3" \
|
|
|
|
ITKLIBDIR="${LOCALBASE}/lib" \
|
|
|
|
TKINCDIR="${LOCALBASE}/include/tk8.4" \
|
|
|
|
TKPRIVATEINCDIR="${LOCALBASE}/include/tk8.4/generic" \
|
|
|
|
TKLIBDIR="${LOCALBASE}/lib" \
|
|
|
|
ITCLINCDIR="${LOCALBASE}/include/itcl3.3" \
|
2003-05-18 21:37:30 +02:00
|
|
|
ITCLLIBDIR="${LOCALBASE}/lib" \
|
2006-06-06 00:17:49 +02:00
|
|
|
TCLINCDIR="${LOCALBASE}/include/tcl8.4" \
|
|
|
|
TCLPRIVATEINCDIR="${LOCALBASE}/include/tcl8.4/generic" \
|
2003-05-18 21:37:30 +02:00
|
|
|
TCLLIBDIR="${LOCALBASE}/lib"
|
2003-07-01 08:23:16 +02:00
|
|
|
MAN1+= plrender.1 plserver.1 pltcl.1
|
2001-12-22 14:59:12 +01:00
|
|
|
PLIST_SUB+= TCLTK=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-itcl --disable-tcl --disable-tk
|
|
|
|
PLIST_SUB+= TCLTK="@comment "
|
|
|
|
.endif
|
|
|
|
|
2004-02-10 16:39:09 +01:00
|
|
|
pre-everything::
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
@${ECHO_MSG} "PLplot has the following tunable options:"
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
@${ECHO_MSG} " WITHOUT_X11=yes Turns off X11 support"
|
|
|
|
@${ECHO_MSG} " WITHOUT_PTHREAD=yes Turns off pthread support"
|
2004-08-11 13:07:14 +02:00
|
|
|
@${ECHO_MSG} " WITH_SVGALIB=yes Turns on SVGAlib support"
|
2007-07-09 04:49:37 +02:00
|
|
|
@${ECHO_MSG} " WITH_GNOME=yes Turns on GNOME driver support"
|
2004-02-10 16:39:09 +01:00
|
|
|
@${ECHO_MSG} " WITH_PYTHON=yes Turns on Python support"
|
|
|
|
@${ECHO_MSG} " WITH_TCLTK=yes Turns on Tcl/Tk support"
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
|
2001-12-22 14:59:12 +01:00
|
|
|
post-patch:
|
2006-06-06 00:17:49 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|-ltk$$|-ltk84|g ; \
|
|
|
|
s|-ltcl$$|-ltcl84|g ; \
|
|
|
|
s|-lpthread|${PTHREAD_LIBS:S/"//g}|g ; \
|
|
|
|
s|{libdir}/pkgconfig|{prefix}/libdata/pkgconfig|' ${WRKSRC}/configure
|
2004-11-26 22:03:59 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|tk octave java|tk|g' \
|
|
|
|
${WRKSRC}/bindings/Makefile.in
|
2006-06-06 00:17:49 +02:00
|
|
|
@${REINPLACE_CMD} -e 's| tclsh | ${LOCALBASE}/bin/tclsh8.4 |g' \
|
2003-05-18 21:37:30 +02:00
|
|
|
${WRKSRC}/scripts/mktclIndex
|
2001-12-22 14:59:12 +01:00
|
|
|
|
2004-02-10 16:39:09 +01:00
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
.for file in AUTHORS ChangeLog Copyright FAQ NEWS PROBLEMS README
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
|
|
|
|
.endfor
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/drivers/README.drivers \
|
|
|
|
${DOCSDIR}/README.drivers
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/lib/csa/README \
|
|
|
|
${DOCSDIR}/README.csa
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/lib/csa/README.1st \
|
|
|
|
${DOCSDIR}/README.1st.csa
|
|
|
|
.endif
|
|
|
|
|
2007-04-18 13:46:10 +02:00
|
|
|
.include <bsd.port.mk>
|