summaryrefslogtreecommitdiff
path: root/math/qalculate/Makefile
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2006-02-24 00:05:00 +0000
committerjoerg <joerg@pkgsrc.org>2006-02-24 00:05:00 +0000
commit8507799fc1e2b35c0b130b44f6930efce66b0ab2 (patch)
tree93c3a5389204f065fa04634f2ec9426f33ce7a81 /math/qalculate/Makefile
parent81f5231e4f34b4edebeea48e7ac1b46067c21794 (diff)
downloadpkgsrc-8507799fc1e2b35c0b130b44f6930efce66b0ab2.tar.gz
Match PKGCONFIG_OVERRIDE with reality. Replace hard-coded -lpthread
reference to unbreak qalculate subpackages on DragonFly. Bump revision.
Diffstat (limited to 'math/qalculate/Makefile')
-rw-r--r--math/qalculate/Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/math/qalculate/Makefile b/math/qalculate/Makefile
index 231d287f02d..f4b91290be7 100644
--- a/math/qalculate/Makefile
+++ b/math/qalculate/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.13 2006/02/19 12:53:30 wiz Exp $
+# $NetBSD: Makefile,v 1.14 2006/02/24 00:05:00 joerg Exp $
DISTNAME= libqalculate-0.8.2
PKGNAME= qalculate-0.8.2
-PKGREVISION= 3
+PKGREVISION= 4
CATEGORIES= math
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=qalculate/}
@@ -16,10 +16,15 @@ USE_PKGLOCALEDIR= yes
USE_TOOLS+= gmake pkg-config
GNU_CONFIGURE= yes
LIBTOOL_OVERRIDE= ${WRKSRC}/libtool
-PKGCONFIG_OVERRIDE= ${WRKSRC}/src/libqalculate/libqalculate.pc.in
+PKGCONFIG_OVERRIDE= ${WRKSRC}/libqalculate.pc.in
UNLIMIT_RESOURCES= datasize
+SUBST_CLASSES+= pthread
+SUBST_FILES.pthread= libqalculate.pc.in
+SUBST_SED.pthread+= -e 's,@PTHREAD_LIBS@,${PTHREAD_LDFLAGS} ${PTHREAD_LIBS},g'
+SUBST_STAGE.pthread= post-patch
+
.include "../../devel/glib2/buildlink3.mk"
.include "../../devel/readline/buildlink3.mk"
.include "../../math/cln/buildlink3.mk"