summaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authorxtraeme <xtraeme>2004-01-07 07:37:59 +0000
committerxtraeme <xtraeme>2004-01-07 07:37:59 +0000
commit1ee4054d1296e17914b467202e3668f1f74e4e56 (patch)
tree8a54807704d38000d46d4b915cc1c14fe75e1a65 /x11
parent0296a336664c6a2f0e100bfa4011e9190c556694 (diff)
downloadpkgsrc-1ee4054d1296e17914b467202e3668f1f74e4e56.tar.gz
Replace harcoded -lpthread from configure script with ${PTHREAD_LDFLAGS}
to make this build on systems where -lpthread is not valid.
Diffstat (limited to 'x11')
-rw-r--r--x11/xosd/Makefile.common10
1 files changed, 9 insertions, 1 deletions
diff --git a/x11/xosd/Makefile.common b/x11/xosd/Makefile.common
index cf9a39fd479..bdb53533824 100644
--- a/x11/xosd/Makefile.common
+++ b/x11/xosd/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.6 2003/09/26 11:23:43 jmmv Exp $
+# $NetBSD: Makefile.common,v 1.7 2004/01/07 07:37:59 xtraeme Exp $
#
DISTNAME= xosd-2.2.5
@@ -21,4 +21,12 @@ SHLIBTOOL_OVERRIDE= ${WRKSRC}/libtool-disable-static
CONFIGURE_ARGS+= --disable-xinerama
+post-extract:
+ @( \
+ ${MV} ${WRKSRC}/configure ${WRKSRC}/configure.fixme; \
+ ${SED} -e "s,-lpthread,${PTHREAD_LDFLAGS},g" \
+ ${WRKSRC}/configure.fixme > ${WRKSRC}/configure; \
+ ${CHMOD} +x ${WRKSRC}/configure \
+ )
+
.include "../../mk/pthread.buildlink2.mk"