You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sci-visualization/gwyddion/files/gwyddion-2.56-automagic.patch

35 lines
1.5 KiB

diff -ruN gwyddion-2.56.orig/configure.ac gwyddion-2.56/configure.ac
--- gwyddion-2.56.orig/configure.ac 2020-06-30 11:04:55.000000000 +0300
+++ gwyddion-2.56/configure.ac 2020-06-30 13:22:00.881313300 +0300
@@ -646,11 +646,13 @@
#############################################################################
# OpenEXR
# Optional. Used for HDR greyscale OpenEXR pixmap import/export.
-enable_exr=$have_cxx
-PKG_CHECK_MODULES(EXR, [OpenEXR],
+GWY_WITH([exr],,[build with OpenEXR support])
+if test "x$enable_exr" != "xno" && "x$have_cxx" != "xno"; then
+ PKG_CHECK_MODULES(EXR, [OpenEXR],
[AC_DEFINE(HAVE_EXR,1,
[Define if we have the OpenEXR package.])],
[enable_exr=no])
+fi
AM_CONDITIONAL([HAVE_EXR],[test "x$enable_exr" != xno])
#############################################################################
@@ -665,10 +667,13 @@
#############################################################################
# CFITSIO
# Optional. Used for FITS image import.
-PKG_CHECK_MODULES(CFITSIO, [cfitsio],
+GWY_WITH([cfitsio],,[build with cfitsio support])
+if test "x$enable_cfitsio" != "xno"; then
+ PKG_CHECK_MODULES(CFITSIO, [cfitsio],
[AC_DEFINE(HAVE_CFITSIO,1,
[Define if we have the cfitsio package.])],
[enable_cfitsio=no])
+fi
AM_CONDITIONAL([HAVE_CFITSIO],[test "x$enable_cfitsio" != xno])
#############################################################################