Info2: << Package: libplplot10-shlibs # v=5.9.7 bumps only libplplotd to libN=11. # As of 5.15.0, the libraries are # libplplotcxx.16.dylib (note loss of 'd') # libplplot.18.dylib (note loss of 'd') # libqsastime.1.dylib # libcsironn.1.dylib # libcsirocsa.1.dylib Version: 5.9.6 Revision: 7 BuildDepends: << aquaterm-dev, cairo (>= 1.12.8-1), cmake, fink-package-precedence, fontconfig2-dev (>= 2.10.0-1), freetype219 (>= 2.10.2-1), glib2-dev (>= 2.22.0-1), lasi1-dev, libtool2, pango1-xft2-ft219-dev (>= 1.24.5-4), pkgconfig, qhull8.0-dev (>= 2020.2-2), swig, x11-dev << Depends: << aquaterm-shlibs, cairo-shlibs (>= 1.12.8-1), fontconfig2-shlibs (>= 2.10.0-1), freetype219-shlibs (>= 2.10.2-1), glib2-shlibs (>= 2.22.0-1), lasi1-shlibs, libcsiro1-shlibs (>= %v-%r), libtool2-shlibs, pango1-xft2-ft219-shlibs (>= 1.24.5-4), qhull8.0-shlibs (>= 2020.2-2), x11 << GCC: 4.0 Source: mirror:sourceforge:plplot/plplot-%v.tar.gz Source-Checksum: SHA256(a1324a5c5677f4d45b95a27d788a5bee8a99143d9aa3ff0c0f2c769e90e61aad) PatchFile: %n.patch PatchFile-MD5: 46e139e1b9ad6eb0fec90480b0db37ba PatchScript: << sed -e 's,@PREFIX@,%p,g' < %{PatchFile} | patch -p1 perl -pi.bak -e 's/(set\(\S+_SOVERSION\s+)(\d+)/"$1".(1+$2);/e' cmake/modules/plplot_version.cmake perl -pi -e 's,/usr/local,%p,g' cmake/modules/FindLTDL.cmake # Not needed from v5.13.0 perl -pi -e 's,qhull/qhull_a.h,libqhull/qhull_a.h,' cmake/modules/FindQHULL.cmake lib/nn/delaunay.c src/plgridd.c << UseMaxBuildJobs: false SetCFLAGS: -MD SetCXXFLAGS: -MD CompileScript: << #!/bin/sh -ev export CCACHE_DISABLE=1 export PKG_CONFIG_PATH=%p/lib/glib-2.0/pkgconfig-strict:$PKG_CONFIG_PATH %p/bin/cmake -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \ -DCMAKE_INSTALL_PREFIX:PATH=%p \ -DCMAKE_INSTALL_LIBDIR:PATH=%p/lib/plplot \ -DBUILD_SHARED_LIBS:BOOL=ON \ -DDEFAULT_NO_BINDINGS:BOOL=ON \ -DENABLE_cxx:BOOL=ON \ -DPLD_wxwidgets:BOOL=OFF \ -DLTDL_LIBRARIES:FILEPATH=%p/lib/libltdl.dylib \ . make fink-package-precedence \ --prohibit-bdep=plplot-dev,plplot-nognome-dev \ --prohibit-bdep=libplplot10-dev \ --prohibit-bdep=libcsiro1-dev \ --depfile-ext='\.d' \ . << InstallScript: << #!/bin/sh -ev make install DESTDIR=%d # can't find cmake flag to control this location # (overriding default based on libdir) mv %i/lib/plplot/pkgconfig %i/lib ## remove silliness from pkg-config data #perl -pi -e 's,-L/usr/lib,,g' %i/lib/pkgconfig/plplotd.pc # aw heck, remove *everything* except direct link (Requires: # gets plplot sublibs, not need internal implementation libs) perl -pi -e 's/^Libs:.*/Libs: -L\${libdir} -lplplotd/' %i/lib/pkgconfig/plplotd.pc # fix installation of docfiles to use upstream set but in # fink-policy-required location: save and restore automatic mv %i/share/doc/plplot TARGET_DOC_FILES << DocFiles: TARGET_DOC_FILES/* Shlibs: << %p/lib/plplot/libplplotd.10.dylib 10.0.0 %n (>= 5.9.6-1) %p/lib/plplot/libplplotcxxd.10.dylib 10.0.0 %n (>= 5.9.6-1) %p/lib/plplot/libqsastime.1.dylib 1.0.0 %n (>= 5.9.6-1) << SplitOff: << Package: libplplot10-dev Depends: libplplot10-shlibs (= %v-%r) Conflicts: << libplplot10-dev, libplplot18-5.15.0-dev << Replaces: << libplplot10-dev, libplplot18-5.15.0-dev << BuildDependsOnly: true Files: << include lib/pkgconfig lib/plplot/libplplotd.dylib lib/plplot/libplplotcxxd.dylib lib/plplot/libqsastime.dylib share/plplot5.9.6/examples << DocFiles: TARGET_DOC_FILES/* << SplitOff10: << Package: libcsiro1-shlibs Depends: qhull8.0-shlibs (>= 2020.2-2) Files: << lib/plplot/libcsirocsa.*.dylib lib/plplot/libcsironn.*.dylib << Shlibs: << %p/lib/plplot/libcsirocsa.1.dylib 1.0.0 %n (>= 5.9.6-1) %p/lib/plplot/libcsironn.1.dylib 1.0.0 %n (>= 5.9.6-1) << DocFiles: TARGET_DOC_FILES/* << SplitOff11: << Package: libcsiro1-dev Depends: libcsiro1-shlibs (= %v-%r) Conflicts: << libcsiro1-dev, libcsiro1-5.15.0-dev << Replaces: << libcsiro1-dev, libcsiro1-5.15.0-dev << BuildDependsOnly: true Files: << lib/plplot/libcsirocsa.dylib lib/plplot/libcsironn.dylib << DocFiles: TARGET_DOC_FILES/* << SplitOff2: << Package: plplot-bin Depends: << libcsiro1-shlibs (>= %v-%r), libplplot10-shlibs (>= %v-%r), libtool2-shlibs, qhull8.0-shlibs (>= 2020.2-2) << Replaces: plplot, plplot-nognome Files: << bin share/man << DocFiles: TARGET_DOC_FILES/* << Description: Scientific plotting package DescDetail: << PLplot is relatively small, portable, freely distributable, and is rich enough to satisfy most users. It has a wide range of plot types including line (linear, log), contour, 3D, fill, and almost 1000 characters (including Greek and mathematical) in its extended font set. The package is designed to make it easy to quickly get graphical output; only a handful of function calls is typically required. For more advanced use, virtually all aspects of plotting are configurable. "plplot-bin" is some useful utility programs (plm2gif, plpr, pltex). Some formerly-supplied programs are no longer available because they were buggy and/or obsolete (plrender, pltex), or specifically related to certain bindings sets (pltcl, plserver). This packaging is just the basic libraries (no bindings for languages that are themselves large fink package trees). << DescUsage: << << DescPackaging: << Fix aqt.cmake to use fink's aquaterm package instead of non-fink Framework installation of it. Try to fix ldtl detection to look in fink dir (cmake tests don't know to look in "nothing special" (use-test) rather than searching for file by name?) but mainly hardcode it because cmake library detection is an opaque mess. Bump all SOVERSION by 1 so that none are zero because compatibility_version 0.0.0 has a special meaning that cmake doesn't understand (libtool was smart enough to do this automatically). There does not appear to be a separate variable for c_v and VERSION only affects the .x.y.z.dylib filename not the .x.filename (WTF?) No idea why default installation with certain features disabled installs headers specifically for them (gcw.h), but not fixing it for now. That and the splitoff divisions based on debian's packaging. All symbols are resolved, so neuter un-needed linking from .pc Libs. The csiro stuff looks like only used internally and by own binaries (no public .h). Old plplot suite layout was a disaster, with multiple providers of same libs that could not swap cleanly (removing one left hole in other!) because of Provides, and Replaces without Conflicts. Even with new %n for headers, we cannot Replaces/Conflicts to eject the old -dev packages because there are runtime Depends on them (BDO:false) and having the same name in a Provides and a real Package confuses dpkg. So we just kill old .info and Replaces much of it, hopefully old will eventually fade away from users' systems. Still uses legacy libqhull. Our libplplot18 package has patch for libqhull_r << License: LGPL Maintainer: None Homepage: http://plplot.sourceforge.net <<