summaryrefslogtreecommitdiff
path: root/x11/qt3-libs/Makefile.common
diff options
context:
space:
mode:
Diffstat (limited to 'x11/qt3-libs/Makefile.common')
-rw-r--r--x11/qt3-libs/Makefile.common10
1 files changed, 9 insertions, 1 deletions
diff --git a/x11/qt3-libs/Makefile.common b/x11/qt3-libs/Makefile.common
index 44a45c2abfc..cda0f840120 100644
--- a/x11/qt3-libs/Makefile.common
+++ b/x11/qt3-libs/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.53 2005/06/22 21:14:45 jlam Exp $
+# $NetBSD: Makefile.common,v 1.54 2005/07/01 01:10:06 reed Exp $
#
DISTNAME= qt-x11-free-${QTVERSION}
CATEGORIES= x11
@@ -61,8 +61,15 @@ BUILDLINK_PASSTHRU_DIRS+=/usr/local/include/bind /usr/local/lib/bind
SYS_LIBS= -lbind -ldb -ldl
.elif ${OPSYS} == "DragonFly"
CONFIGURE_ARGS+= -platform freebsd-g++
+.elif ${OPSYS} == "Darwin"
+QMAKE_RANLIB= ${RANLIB}
+. if exists(/usr/lib/libresolv.dylib)
+LDFLAGS+= -lresolv
+. endif
.endif
+QMAKE_RANLIB?= ${TRUE}
+
.if !exists(${X11BASE}/lib/libXinerama.so)
CONFIGURE_ARGS+= -no-xinerama
.endif
@@ -112,6 +119,7 @@ pre-configure:
-e 's:@PTHREAD_LDFLAGS@:${PTHREAD_LDFLAGS}:g' \
-e 's:@PTHREAD_LIBS@:${PTHREAD_LIBS}:g' \
-e 's:@COMPILER_RPATH_FLAG@:${COMPILER_RPATH_FLAG}:g' \
+ -e 's:@QMAKE_RANLIB@:${QMAKE_RANLIB}:g' \
${FILESDIR}/qmake.conf > ${WRKSRC}/qmake.conf
for dir in ${WRKSRC}/mkspecs/*; do \
${CP} ${WRKSRC}/qmake.conf $${dir}; \