diff options
author | asau <asau@pkgsrc.org> | 2009-09-06 15:40:49 +0000 |
---|---|---|
committer | asau <asau@pkgsrc.org> | 2009-09-06 15:40:49 +0000 |
commit | ac086ea031f458879de8dbb61d3500ae70f534ae (patch) | |
tree | 36af3ebf54355b70e81c114ee5b92dfff858caa6 /math/qalculate-units | |
parent | 4cec74c6a5528fdd69449f52aa0826ff3ad2d0a2 (diff) | |
download | pkgsrc-ac086ea031f458879de8dbb61d3500ae70f534ae.tar.gz |
Fix build after CLN update. Bump revision (autoconf dependency).
Diffstat (limited to 'math/qalculate-units')
-rw-r--r-- | math/qalculate-units/Makefile | 9 | ||||
-rw-r--r-- | math/qalculate-units/distinfo | 4 | ||||
-rw-r--r-- | math/qalculate-units/patches/patch-ab | 39 |
3 files changed, 42 insertions, 10 deletions
diff --git a/math/qalculate-units/Makefile b/math/qalculate-units/Makefile index d4e304a3702..3205e162f6d 100644 --- a/math/qalculate-units/Makefile +++ b/math/qalculate-units/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.15 2009/08/26 19:57:59 sno Exp $ +# $NetBSD: Makefile,v 1.16 2009/09/06 15:46:38 asau Exp $ DISTNAME= qalculate-units-0.9.4 -PKGREVISION= 1 +PKGREVISION= 2 CATEGORIES= math MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=qalculate/} @@ -14,9 +14,12 @@ PKG_DESTDIR_SUPPORT= user-destdir USE_LANGUAGES= c c++ USE_LIBTOOL= yes USE_PKGLOCALEDIR= yes -USE_TOOLS+= gmake intltool msgfmt pkg-config +USE_TOOLS+= autoconf gmake intltool msgfmt pkg-config GNU_CONFIGURE= yes +pre-configure: + ${RUN} cd ${WRKSRC}; autoconf + .include "../../math/qalculate/buildlink3.mk" .include "../../x11/gtk2/buildlink3.mk" .include "../../mk/bsd.pkg.mk" diff --git a/math/qalculate-units/distinfo b/math/qalculate-units/distinfo index a3b08ea576a..78302723ce4 100644 --- a/math/qalculate-units/distinfo +++ b/math/qalculate-units/distinfo @@ -1,7 +1,7 @@ -$NetBSD: distinfo,v 1.5 2006/06/22 18:52:00 jlam Exp $ +$NetBSD: distinfo,v 1.6 2009/09/06 15:46:38 asau Exp $ SHA1 (qalculate-units-0.9.4.tar.gz) = 1a6c124e572671973be9d249aba682e745f01f91 RMD160 (qalculate-units-0.9.4.tar.gz) = 621636ecc487b71a85f7e6f9785e275ed2ac2e17 Size (qalculate-units-0.9.4.tar.gz) = 375642 bytes SHA1 (patch-aa) = b345c2bfdee5c3000ae23f6f77b7ef7e491fa385 -SHA1 (patch-ab) = a5500e60ffd51c40ed266ae7c26faf7b6e441234 +SHA1 (patch-ab) = d781007f3efb881c385e57a9ec68dd616b73d0ab diff --git a/math/qalculate-units/patches/patch-ab b/math/qalculate-units/patches/patch-ab index c21745ee4ba..5ab67d84ce0 100644 --- a/math/qalculate-units/patches/patch-ab +++ b/math/qalculate-units/patches/patch-ab @@ -1,8 +1,16 @@ -$NetBSD: patch-ab,v 1.1 2006/06/22 18:52:01 jlam Exp $ +$NetBSD: patch-ab,v 1.2 2009/09/06 15:46:38 asau Exp $ ---- configure.in.orig 2006-04-18 03:13:12.000000000 -0400 -+++ configure.in -@@ -55,6 +55,33 @@ fi +--- configure.in.orig 2006-04-18 11:13:12.000000000 +0400 ++++ configure.in 2009-09-06 19:44:37.000000000 +0400 +@@ -24,6 +24,7 @@ + AC_HEADER_STDC + AC_PROG_INTLTOOL + AM_PROG_LIBTOOL ++PKG_PROG_PKG_CONFIG + + dnl ------------------------------------ + dnl | check for compiler characteristics |------------------------------------- +@@ -55,6 +56,33 @@ changequote([,])dnl @@ -36,7 +44,28 @@ $NetBSD: patch-ab,v 1.1 2006/06/22 18:52:01 jlam Exp $ dnl -------------------------------- dnl | check for neccessary libraries |----------------------------------------- dnl -------------------------------- -@@ -89,33 +116,6 @@ PKG_CHECK_MODULES(QALCULATE, [ +@@ -63,11 +91,16 @@ + + AC_LANG([C++]) + +-AC_PATH_CLN(1.1.0, [ +- LIBS="$LIBS $CLN_LIBS" +- CPPFLAGS="$CPPFLAGS $CLN_CPPFLAGS" ++if pkg-config --atleast-version=1.1.0 cln; then ++ CLN_CPPFLAGS="`pkg-config --cflags cln`" ++ CLN_LIBS="`pkg-config --libs cln`" ++ LIBS="$LIBS `pkg-config --libs cln`" ++ CPPFLAGS="$CPPFLAGS `pkg-config --cflags cln`" + AC_DEFINE(HAVE_LIBCLN,1,[If CLN can be used]) +-], AC_MSG_ERROR([No suitable installed version of CLN could be found.])) ++else AC_MSG_ERROR([No suitable installed version of CLN could be found.]) ++fi ++AC_SUBST(CLN_CPPFLAGS) ++AC_SUBST(CLN_LIBS) + + PKG_CHECK_MODULES(GLIB, [ + glib-2.0 >= 2.4 +@@ -89,33 +122,6 @@ AC_SUBST(QALCULATE_CFLAGS) AC_SUBST(QALCULATE_LIBS) |