ports/net-im/psi/files/patch-configure
Andrey Slusar 32ea56b416 - Update to 0.10
- Removed deprecated option WITH_KDE. Now psi icons and psi.desktop
  installed without any options.

PR:		ports/92793
Submitted by:	"Stepan Zastupov [RedChrom]" <redchrom@gmail.com>
Approved by:	mantainer timeout(1 month 18 days)
2006-03-22 18:40:57 +00:00

40 lines
905 B
Text

--- configure.orig Sun Jan 8 05:19:01 2006
+++ configure Sat Feb 4 14:06:18 2006
@@ -192,6 +192,8 @@
shift
;;
--help) show_usage; exit ;;
+ --with-*)
+ shift ;;
*) show_usage; exit ;;
esac
done
@@ -1055,9 +1057,13 @@
"}\n";
QString extra;
+ QString pthread_cflags = getenv("PTHREAD_CFLAGS");
+ QString pthread_ldflags = getenv("PTHREAD_LDFLAGS");
if(!path.isEmpty())
extra += QString("-L") + path + ' ';
extra += QString("-l") + name;
+ extra += ' ' + pthread_cflags + ' ' + pthread_ldflags + ' ';
+
if(!doCompileAndLink(str, extra))
return false;
return true;
@@ -1287,14 +1293,6 @@
echo
exit 1;
fi
-cat >Makefile.tmp <<EOT
-export QTDIR = $QTDIR
-export PATH = $QTDIR/bin:$PATH
-EOT
-cat Makefile >> Makefile.tmp
-rm -f Makefile
-cp -f Makefile.tmp Makefile
-rm -f Makefile.tmp
echo
echo "Good, your configure finished. Now run 'make'."