cmake likes to link with -lpthread instead of -pthread, so prevent that.

Fix dependencies of all subpackages.
This commit is contained in:
ajacoutot 2011-04-26 08:06:41 +00:00
parent 8c5d4081e4
commit 18605b3eba
2 changed files with 19 additions and 9 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.10 2011/03/24 06:50:09 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.11 2011/04/26 08:06:41 ajacoutot Exp $
SHARED_ONLY= Yes
@ -15,6 +15,11 @@ PKGNAME-gnome= libproxy-gnome-${VERSION}
PKGNAME-mozilla= libproxy-mozilla-${VERSION}
PKGNAME-webkit= libproxy-webkit-${VERSION}
REVISION-main= 0
REVISION-gnome= 0
REVISION-mozilla= 0
REVISION-webkit= 0
CATEGORIES= net
SHARED_LIBS += modman 0.0 # 1.0
@ -32,7 +37,8 @@ MASTER_SITES= ${HOMEPAGE}/files/
# order matters: cmake must come before python
MODULES= devel/cmake \
lang/python
lang/python \
devel/gettext
# do not enable webkit support by default because of cyclic dependency:
# libproxy,-webkit -> webkit -> libsoup -> libproxy
@ -59,24 +65,25 @@ RUN_DEPENDS-webkit= ${MODGETTEXT_RUN_DEPENDS}
LIB_DEPENDS-webkit= STEM->=${VERSION}:${BUILD_PKGPATH}, \
www/webkit
cWANTLIB += m pthread stdc++
cWANTLIB += m stdc++
WANTLIB-main += ${cWANTLIB} c perl
WANTLIB-main += ${cWANTLIB} c perl pthread
WANTLIB-gnome += ${cWANTLIB} ${MODGETTEXT_WANTLIB}
WANTLIB-gnome += ORBit-2 c gconf-2 gio-2.0 glib-2.0 gmodule-2.0
WANTLIB-gnome += gobject-2.0 gthread-2.0 modman proxy
WANTLIB-gnome += gobject-2.0 gthread-2.0 modman proxy pthread
WANTLIB-mozilla += ${cWANTLIB} c modman nspr4 plc4 plds4 proxy
WANTLIB-mozilla += xulrunner1.9/mozjs
WANTLIB-webkit += ${cWANTLIB} ${MODGETTEXT_WANTLIB}
WANTLIB-webkit += GL X11 Xau Xcomposite Xcursor Xdamage Xdmcp Xext Xfixes
WANTLIB-webkit += Xi Xinerama Xrandr Xrender Xxf86vm atk-1.0 cairo drm
WANTLIB-webkit += expat fontconfig freetype gdk-x11-2.0 gdk_pixbuf-2.0
WANTLIB-webkit += gio-2.0 glib-2.0 gmodule-2.0 gnutls gobject-2.0 gthread-2.0
WANTLIB-webkit += gio-2.0 glib-2.0 gmodule-2.0 gobject-2.0 gthread-2.0
WANTLIB-webkit += gtk-x11-2.0 modman pango-1.0 pangocairo-1.0
WANTLIB-webkit += pangoft2-1.0 pixman-1 png proxy pthread-stubs soup-2.4
WANTLIB-webkit += tasn1 webkit-1.0 xcb xcb-render xcb-shm xml2 z
WANTLIB-webkit += webkit-1.0 xcb xcb-render xcb-shm xml2 z
CONFIGURE_ARGS= -DCMAKE_C_FLAGS="${CFLAGS} -pthread" \
-DCMAKE_CXX_FLAGS="${CXXFLAGS} -pthread" \

View File

@ -1,4 +1,7 @@
$OpenBSD: patch-libproxy_cmake_libproxy_cmk,v 1.1 2011/03/24 06:50:09 ajacoutot Exp $
$OpenBSD: patch-libproxy_cmake_libproxy_cmk,v 1.2 2011/04/26 08:06:41 ajacoutot Exp $
Do not link with -lpthread (we use -pthread in CMAKE_C*_FLAGS)
--- libproxy/cmake/libproxy.cmk.orig Wed Sep 1 22:23:34 2010
+++ libproxy/cmake/libproxy.cmk Tue Mar 22 09:35:32 2011
@@ -2,7 +2,7 @@ add_library(libproxy SHARED extension_config.cpp exten
@ -6,7 +9,7 @@ $OpenBSD: patch-libproxy_cmake_libproxy_cmk,v 1.1 2011/03/24 06:50:09 ajacoutot
target_link_libraries(libproxy modman;ws2_32;${LIBPROXY_LIBRARIES})
else()
- target_link_libraries(libproxy modman;m;pthread;dl;${LIBPROXY_LIBRARIES})
+ target_link_libraries(libproxy modman;m;pthread;${LIBPROXY_LIBRARIES})
+ target_link_libraries(libproxy modman;m;${LIBPROXY_LIBRARIES})
endif()
file(TO_NATIVE_PATH ${MODULE_INSTALL_DIR} MODULE_INSTALL_DIR)
if(WIN32)