summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2013-05-31 08:41:55 +0000
committerwiz <wiz@pkgsrc.org>2013-05-31 08:41:55 +0000
commitf6d7cf141e61e53edc3d064f1fadfbac99095a63 (patch)
treef2f32b8f6b594339a22c3a9e16b57d5a510cc84f /www
parent3ed9717cede4ffac3578639d9abeedad239017c8 (diff)
downloadpkgsrc-f6d7cf141e61e53edc3d064f1fadfbac99095a63.tar.gz
Try fixing build on Solaris. PR pkg/47868.
Diffstat (limited to 'www')
-rw-r--r--www/libproxy/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/www/libproxy/Makefile b/www/libproxy/Makefile
index 3b45e707e2b..8cb24b91cd6 100644
--- a/www/libproxy/Makefile
+++ b/www/libproxy/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.17 2013/05/25 11:13:12 obache Exp $
+# $NetBSD: Makefile,v 1.18 2013/05/31 08:41:55 wiz Exp $
DISTNAME= libproxy-0.4.11
CATEGORIES= www gnome
@@ -13,9 +13,15 @@ USE_CMAKE= yes
USE_LIBTOOL= yes
USE_TOOLS+= pkg-config gmake
USE_LANGUAGES= c99 c++
-LIBS.SunOS+= -lnsl -lsocket
CMAKE_ARGS+= -DWITH_PYTHON:BOOL=OFF
+.include "../../mk/bsd.fast.prefs.mk"
+
+.if (${OPSYS} == "SunOS")
+# add libraries needed for Solaris, and add stuff cmake would add it on its own
+CMAKE_ARGS+= CMAKE_EXE_LINKER_FLAGS:STRING="-lnsl -lsocket ${COMPILER_RPATH_FLAG}${PREFIX}/lib"
+.endif
+
PKGCONFIG_OVERRIDE+= bindings/csharp/libproxy-sharp-1.0.pc.cmake
PKGCONFIG_OVERRIDE+= libproxy/libproxy-1.0.pc.in