openbsd-ports/math/plplot/Makefile

112 lines
2.6 KiB
Makefile
Raw Normal View History

2010-11-19 02:23:05 -05:00
# $OpenBSD: Makefile,v 1.41 2010/11/19 07:23:11 espie Exp $
2010-11-06 12:07:00 -04:00
SHARED_ONLY = Yes
2010-11-06 12:07:00 -04:00
COMMENT-main = advanced 2D and 3D scientific plotting library
COMMENT-c++ = C++ interface to plplot
2010-11-06 12:07:00 -04:00
COMMENT-f77 = Fortran 77 interface to plplot
2010-11-06 12:07:00 -04:00
VERSION = 5.8.0
DISTNAME = plplot-${VERSION}
SHARED_LIBS = csirocsa 3.0 \
plplotcxxd 12.0 \
plplotd 13.0 \
plplotf77cd 11.0 \
plplotf77d 11.0
2010-11-06 12:07:00 -04:00
PKGNAME-main = ${DISTNAME}
2010-07-18 06:50:11 -04:00
PKGNAME-c++ = plplot-c++-${VERSION}
2010-11-06 12:07:00 -04:00
PKGNAME-f77 = plplot-f77-${VERSION}
REVISION-main = 5
REVISION-c++ = 5
REVISION-f77 = 8
2010-11-06 12:07:00 -04:00
CATEGORIES = math graphics
2010-11-06 12:07:00 -04:00
HOMEPAGE = http://plplot.sourceforge.net/
2010-11-06 12:07:00 -04:00
MAINTAINER = Steven Mestdagh <steven@openbsd.org>
# LGPL
2010-11-06 12:07:00 -04:00
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM = Yes
PERMIT_DISTFILES_FTP = Yes
2010-11-06 12:07:00 -04:00
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=plplot/}
2010-11-06 12:07:00 -04:00
MODULES = devel/gettext \
2010-05-23 05:34:41 -04:00
fortran
MODFORTRAN_COMPILER = g77
2010-11-06 12:07:00 -04:00
USE_LIBTOOL = Yes
2010-10-18 16:52:05 -04:00
USE_GROFF = Yes
2010-11-19 02:23:05 -05:00
BUILD_DEPENDS = print/ghostscript/gnu-fonts \
2010-05-23 05:34:41 -04:00
${MODFORTRAN_BUILD_DEPENDS}
2010-11-19 02:23:05 -05:00
myRUN_DEPENDS = print/ghostscript/gnu-fonts
2010-11-06 12:07:00 -04:00
MODULES += devel/cmake
2010-11-06 12:07:00 -04:00
CONFIGURE_STYLE = cmake
2010-11-06 12:07:00 -04:00
CONFIGURE_ARGS = -D ENABLE_java=OFF \
-D ENABLE_f77=ON \
-D ENABLE_f95=OFF \
-D ENABLE_itcl=OFF \
-D ENABLE_pdl=OFF \
-D ENABLE_python=OFF \
-D PLD_gcw=OFF \
-D ENABLE_tcl=OFF \
-D ENABLE_tk=OFF \
-D ENABLE_wxwidgets=OFF \
-D ENABLE_gnome2=OFF \
-D ENABLE_octave=OFF \
-D PLD_wxwidgets=OFF
2010-11-06 12:07:00 -04:00
DOCSRC = ${WRKSRC}/doc/docbook/src
2010-11-06 12:07:00 -04:00
FLAVOR ?=
2007-01-11 02:53:24 -05:00
2010-11-06 12:07:00 -04:00
MULTI_PACKAGES = -main -c++ -f77
2007-01-11 02:53:24 -05:00
2010-11-06 12:07:00 -04:00
myWANTLIB = GL ICE SM X11 Xau Xdamage Xdmcp Xext Xfixes \
Xrender Xxf86vm cairo drm expat fontconfig \
freetype gd glib-2.0 gmodule-2.0 gobject-2.0 \
gthread-2.0 jpeg m pango-1.0 pangocairo-1.0 \
pangoft2-1.0 pixman-1 png pthread-stubs xcb \
2010-11-06 12:07:00 -04:00
xcb-render xcb-shm z ${MODGETTEXT_WANTLIB}
2010-11-06 12:07:00 -04:00
WANTLIB-main = ${myWANTLIB} c pthread
WANTLIB-c++ = ${myWANTLIB} csirocsa plplotd stdc++
2010-11-06 12:07:00 -04:00
WANTLIB-f77 += ${myWANTLIB} csirocsa plplotd ${MODFORTRAN_WANTLIB}
2010-11-19 02:23:05 -05:00
myLIB_DEPENDS = devel/glib2 \
devel/pango \
graphics/cairo \
graphics/gd \
${MODGETTEXT_LIB_DEPENDS}
2010-11-06 12:07:00 -04:00
LIB_DEPENDS-main = ${myLIB_DEPENDS}
2010-11-19 02:23:05 -05:00
LIB_DEPENDS-c++ = math/plplot,-main \
${myLIB_DEPENDS}
2010-11-19 02:23:05 -05:00
LIB_DEPENDS-f77 = math/plplot,-main \
2010-05-23 05:34:41 -04:00
${myLIB_DEPENDS} \
2010-05-28 10:48:34 -04:00
${MODFORTRAN_LIB_DEPENDS}
2010-11-06 12:07:00 -04:00
RUN_DEPENDS-main = ${MODLIBICONV_RUN_DEPENDS} ${myRUN_DEPENDS}
RUN_DEPENDS-c++ =
2010-11-06 12:07:00 -04:00
RUN_DEPENDS-f77 =
pre-configure:
@perl -pi -e 's/3plplot/3/g' ${DOCSRC}/*.3plplot
@cd ${DOCSRC} && for m in *.3plplot; do mv $$m $${m%\.3plplot}.3; done
post-install:
${INSTALL_MAN} ${DOCSRC}/*.3 ${PREFIX}/man/man3
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/plplot/html
${INSTALL_DATA} ${DOCSRC}/*.html ${PREFIX}/share/doc/plplot/html
.include <bsd.port.mk>