diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2009-01-12 11:27:03 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2009-01-12 11:27:03 +0800 |
commit | fddaa3326c00b8fec20c794f382155c5ec515c80 (patch) | |
tree | f557f8149d7cdb881c3bf43fe4cfeed4ea482aec /math/plplot | |
parent | 113d417f88adbacedc50f42913e9c3806e172986 (diff) | |
download | freebsd-ports-graphics-fddaa3326c00b8fec20c794f382155c5ec515c80.tar.gz freebsd-ports-graphics-fddaa3326c00b8fec20c794f382155c5ec515c80.tar.zst freebsd-ports-graphics-fddaa3326c00b8fec20c794f382155c5ec515c80.zip |
- Cleanups, no functional change:
- Remove build dependency on GNU m4.
- Sort knobs.
- Remove unneeded use of REINPLACE.
- Fix plist for WITH_GNOME case and mark BROKEN for WITH_PYTHON
PR: 130168
Submitted by: "Pedro F. Giffuni" <giffunip at tutopia dot com> (maintainer)
Diffstat (limited to 'math/plplot')
-rw-r--r-- | math/plplot/Makefile | 58 | ||||
-rw-r--r-- | math/plplot/pkg-plist | 5 |
2 files changed, 33 insertions, 30 deletions
diff --git a/math/plplot/Makefile b/math/plplot/Makefile index 3a21f4b970d..9401aac6c79 100644 --- a/math/plplot/Makefile +++ b/math/plplot/Makefile @@ -14,7 +14,6 @@ MASTER_SITES= SF MAINTAINER= giffunip@tutopia.com COMMENT= A scientific plotting package -BUILD_DEPENDS= gm4:${PORTSDIR}/devel/m4 LIB_DEPENDS= unicode.0:${PORTSDIR}/devel/libunicode \ gd.4:${PORTSDIR}/graphics/gd \ qhull.5:${PORTSDIR}/math/qhull @@ -22,9 +21,9 @@ LIB_DEPENDS= unicode.0:${PORTSDIR}/devel/libunicode \ USE_AUTOTOOLS= libltdl:15 USE_PERL5_BUILD=yes GNU_CONFIGURE= yes -CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ - LDFLAGS="-L${LOCALBASE}/lib" \ - M4="${LOCALBASE}/bin/gm4" +CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" + CONFIGURE_ARGS= --disable-cgm --disable-java --disable-octave \ --with-gd-incdir=${LOCALBASE}/include \ --with-gd-libdir=${LOCALBASE}/lib \ @@ -34,15 +33,8 @@ PLIST_SUB= VERSION="${PORTVERSION}" MAN1= plm2gif.1 plplot_libtool.1 plpr.1 pltek.1 pstex2eps.1 -.if defined(WITH_FORTRAN) -PKGNAMESUFFIX= -fortran -USE_FORTRAN= yes -CONFIGURE_ENV+= FC="${FC}" F77="${F77}" FFLAGS="${FFLAGS}" -CONFIGURE_ARGS+= --enable-f95 -PLIST_SUB+= FORTRAN="" -.else -CONFIGURE_ARGS+= --disable-f77 -PLIST_SUB+= FORTRAN="@comment " +.if !defined(WITHOUT_PTHREAD) +CONFIGURE_ARGS+= --with-pthreads .endif .if defined(WITHOUT_X11) @@ -55,19 +47,28 @@ LIB_DEPENDS+= LASi.0:${PORTSDIR}/devel/lasi PLIST_SUB+= X11="" .endif -.if !defined(WITHOUT_PTHREAD) -CONFIGURE_ARGS+= --with-pthreads +.if defined(WITH_FORTRAN) +PKGNAMESUFFIX= -fortran +USE_FORTRAN= yes +CONFIGURE_ENV+= FC="${FC}" F77="${F77}" FFLAGS="${FFLAGS}" +CONFIGURE_ARGS+= --enable-f95 +PLIST_SUB+= FORTRAN="" +.else +CONFIGURE_ARGS+= --disable-f77 +PLIST_SUB+= FORTRAN="@comment " .endif -.if defined(WITH_SVGALIB) -LIB_DEPENDS+= vga:${PORTSDIR}/graphics/svgalib -PLIST_SUB+= SVGALIB="" +.if defined(WITH_GNOME) +.undef WITHOUT_X11 +USE_GNOME= libgnomeprintui libgnomeui +PLIST_SUB+= GNOME="" .else -CONFIGURE_ARGS+= --disable-linuxvga -PLIST_SUB+= SVGALIB="@comment " +PLIST_SUB+= GNOME="@comment " +CONFIGURE_ARGS+= --disable-gcw .endif .if defined(WITH_PYTHON) +BROKEN= does not build USE_PYTHON= yes PLIST_SUB+= PYTHON="" CONFIGURE_ENV+= PYTHON_VERSION="${PYTHON_VERSION}" @@ -76,13 +77,12 @@ CONFIGURE_ARGS+= --disable-python PLIST_SUB+= PYTHON="@comment " .endif -.if defined(WITH_GNOME) -.undef WITHOUT_X11 -USE_GNOME= libgnomeprintui libgnomeui -PLIST_SUB+= GNOME="" +.if defined(WITH_SVGALIB) +LIB_DEPENDS+= vga:${PORTSDIR}/graphics/svgalib +PLIST_SUB+= SVGALIB="" .else -PLIST_SUB+= GNOME="@comment " -CONFIGURE_ARGS+= --disable-gcw +CONFIGURE_ARGS+= --disable-linuxvga +PLIST_SUB+= SVGALIB="@comment " .endif .if defined(WITH_TCLTK) @@ -110,12 +110,12 @@ 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" + @${ECHO_MSG} " WITHOUT_X11=yes Turns off X11 support" @${ECHO_MSG} " WITH_FORTRAN=yes Turns on Fortran support" - @${ECHO_MSG} " WITH_SVGALIB=yes Turns on SVGAlib support" @${ECHO_MSG} " WITH_GNOME=yes Turns on GNOME driver support" @${ECHO_MSG} " WITH_PYTHON=yes Turns on Python support" + @${ECHO_MSG} " WITH_SVGALIB=yes Turns on SVGAlib support" @${ECHO_MSG} " WITH_TCLTK=yes Turns on Tcl/Tk support" @${ECHO_MSG} "" @@ -124,8 +124,6 @@ post-patch: s|-ltcl$$|-ltcl84|g ; \ s|-lpthread|${PTHREAD_LIBS:S/"//g}|g ; \ s|{libdir}/pkgconfig|{prefix}/libdata/pkgconfig|' ${WRKSRC}/configure - @${REINPLACE_CMD} -e 's|tk octave java|tk|g' \ - ${WRKSRC}/bindings/Makefile.in @${REINPLACE_CMD} -e 's| tclsh | ${LOCALBASE}/bin/tclsh8.4 |g' \ ${WRKSRC}/scripts/mktclIndex diff --git a/math/plplot/pkg-plist b/math/plplot/pkg-plist index 632a774f1aa..2efe70ab100 100644 --- a/math/plplot/pkg-plist +++ b/math/plplot/pkg-plist @@ -63,6 +63,10 @@ lib/libplplotd.so.11 %%FORTRAN%%@dirrm lib/fortran/modules/plplot %%FORTRAN%%@dirrm lib/fortran/modules %%FORTRAN%%@dirrm lib/fortran +%%GNOME%%lib/libplplotgnome2d.a +%%GNOME%%lib/libplplotgnome2d.la +%%GNOME%%lib/libplplotgnome2d.so.0 +%%GNOME%%lib/libplplotgnome2d.so %%TCLTK%%lib/libplplottcltkd.a %%TCLTK%%lib/libplplottcltkd.la %%TCLTK%%lib/libplplottcltkd.so @@ -121,6 +125,7 @@ libdata/pkgconfig/plplotd.pc libdata/pkgconfig/plplotd-c++.pc %%FORTRAN%%libdata/pkgconfig/plplotd-f77.pc %%FORTRAN%%libdata/pkgconfig/plplotd-f95.pc +%%GNOME%%libdata/pkgconfig/plplotd-gnome2.pc %%TCLTK%%libdata/pkgconfig/plplotd-tcl.pc %%PORTDOCS%%%%DOCSDIR%%/AUTHORS %%PORTDOCS%%%%DOCSDIR%%/ChangeLog |