pkgsrc/misc/kdeutils3/Makefile
marino 011e54391a misc/kdeutils3: Fix PR#46302 (DragonFly)
The problem with this package is that the configure step is insufficient
at determining if the math long double functions are supported.  It tests
for a couple of functions and assumes that if those test pass, then all
"L" functions are supported.

When DragonFly recently upgraded its math library by adding support for a
number of long double functions, this package started failing.  Support for
expl, logl, log10l, sinhl, tanhl, acoshl, asinhl, atanhl, and coshl are
still missing on *all* BSDs.

The fix for the package is to override the configure script by falsely
stating that long double is not supported.  Only kcalc uses long double so
this misconfiguration only has the effect to cause kcalc to use the
standard double math functions.  FreeBSD almost definitely needs the same
Makefile fix.

No revbump is needed because pre-libm improved DragonFly releases are
configured the same way.
2012-04-06 12:55:23 +00:00

50 lines
1.5 KiB
Makefile

# $NetBSD: Makefile,v 1.85 2012/04/06 12:55:23 marino Exp $
DISTNAME= kdeutils-${_KDE_VERSION}
PKGREVISION= 18
COMMENT= Utilities for the KDE integrated X11 desktop
PKG_DESTDIR_SUPPORT= user-destdir
.include "../../meta-pkgs/kde3/Makefile.kde3"
.include "../../mk/bsd.prefs.mk"
# Ensure we export symbols in the linked shared object.
LDFLAGS+= ${EXPORT_SYMBOLS_LDFLAGS}
MAKE_ENV+= EXPORT_SYMBOLS_LDFLAGS=${EXPORT_SYMBOLS_LDFLAGS:Q}
DEPENDS+= gtar-base>=1.13.25:../../archivers/gtar-base
EVAL_PREFIX+= PREFIX.gtar=gtar
PREFIX.gtar_DEFAULT= ${LOCALBASE}
SUBST_CLASSES+= tarexe
SUBST_STAGE.tarexe= pre-configure
SUBST_MESSAGE.tarexe= Use GNU tar in ark
SUBST_FILES.tarexe= ark/ark.kcfg
SUBST_SED.tarexe= -e 's:<default>tar</default>:<default>${PREFIX.gtar}/bin/${GNU_PROGRAM_PREFIX}tar</default>:'
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "NetBSD" && exists(/usr/include/machine/apmvar.h)
CPPFLAGS+= -D__NetBSD_APM__
.endif
.if ${OPSYS} == "DragonFly"
CONFIGURE_ENV+= ac_cv_c_long_double=no
.endif
CONFIGURE_ARGS+= --with-snmp=no
CONFIGURE_ARGS+= --with-pythondir=${LOCALBASE}
CONFIGURE_ENV+= PYVERSSUFFIX=${PYVERSSUFFIX:Q}
.include "../../meta-pkgs/kde3/kde3.mk"
.include "../../devel/gmp/buildlink3.mk"
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../lang/python/application.mk"
.include "../../x11/kdebase3/buildlink3.mk"
.include "../../x11/kdelibs3/buildlink3.mk"
.include "../../x11/libXScrnSaver/buildlink3.mk"
.include "../../x11/libXtst/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"