summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorhasso <hasso>2009-08-26 10:58:11 +0000
committerhasso <hasso>2009-08-26 10:58:11 +0000
commitba6f60df9fe140eb7afe10edaea56a45bb33b500 (patch)
treea4d1d8b1a27fab79f07ae0641f7fa17cd4f1a7e1 /graphics
parentcb53b5ab07833866ee43212ecf789bb3acb8fa7d (diff)
downloadpkgsrc-ba6f60df9fe140eb7afe10edaea56a45bb33b500.tar.gz
Needs msgfmt and pkg-config. Add workaround for a problem which is probably
a bug in cmake.
Diffstat (limited to 'graphics')
-rw-r--r--graphics/hugin/Makefile21
1 files changed, 20 insertions, 1 deletions
diff --git a/graphics/hugin/Makefile b/graphics/hugin/Makefile
index e7597fc1732..bb5d7c07f89 100644
--- a/graphics/hugin/Makefile
+++ b/graphics/hugin/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2009/08/21 18:08:44 adam Exp $
+# $NetBSD: Makefile,v 1.2 2009/08/26 10:58:11 hasso Exp $
DISTNAME= hugin-0.8.0
CATEGORIES= graphics
@@ -15,6 +15,25 @@ PKG_DESTDIR_SUPPORT= user-destdir
USE_CMAKE= yes
USE_LANGUAGES= c c++
USE_LIBTOOL= yes
+USE_TOOLS+= msgfmt pkg-config
+
+# Workaround for a bug(?) in cmake. CXX_FLAGS will end containing
+# '-pthread;-D_THREAD_SAFE' Happens at least on FreeBSD and DragonFly.
+SUBST_CLASSES+= pthread
+SUBST_STAGE.pthread= post-configure
+SUBST_FILES.pthread= \
+ ${WRKSRC}/src/hugin1/hugin/CMakeFiles/hugin.dir/flags.make \
+ ${WRKSRC}/src/hugin1/hugin/CMakeFiles/hugin.dir/link.txt \
+ ${WRKSRC}/src/hugin1/base_wx/CMakeFiles/huginbasewx.dir/flags.make \
+ ${WRKSRC}/src/hugin1/stitch_project/CMakeFiles/hugin_stitch_project.dir/flags.make \
+ ${WRKSRC}/src/hugin1/stitch_project/CMakeFiles/hugin_stitch_project.dir/link.txt \
+ ${WRKSRC}/src/hugin1/nona_gui/CMakeFiles/nona_gui.dir/flags.make \
+ ${WRKSRC}/src/hugin1/nona_gui/CMakeFiles/nona_gui.dir/link.txt \
+ ${WRKSRC}/src/hugin1/ptbatcher/CMakeFiles/PTBatcher.dir/flags.make \
+ ${WRKSRC}/src/hugin1/ptbatcher/CMakeFiles/PTBatcher.dir/link.txt \
+ ${WRKSRC}/src/hugin1/ptbatcher/CMakeFiles/PTBatcherGUI.dir/flags.make \
+ ${WRKSRC}/src/hugin1/ptbatcher/CMakeFiles/PTBatcherGUI.dir/link.txt
+SUBST_SED.pthread= -e 's|-pthread;-D_THREAD_SAFE|-pthread -D_THREAD_SAFE|g'
.include "../../devel/boost-headers/buildlink3.mk"
.include "../../devel/boost-libs/buildlink3.mk"