Ticket #26032: psi.diff
File psi.diff, 6.4 KB (added by michaelld (Michael Dickens), 14 years ago) |
---|
-
psi/files/patch-configure.diff
1 diff --git a/configure b/configure2 index a5bdd58..d56acea 1007553 --- a/configure4 +++ b/configure5 @@ -48,6 +48,9 @@ Dependency options:6 --with-aspell-inc=[path] Path to Aspell include files7 --with-aspell-lib=[path] Path to Aspell library files8 --disable-enchant Disable use of enchant9 + --disable-plugins Disable use of Plugins10 + --enable-plugins Enable Psi Plugin support11 +12 13 EOT14 }15 @@ -274,6 +277,16 @@ while [ $# -gt 0 ]; do16 shift17 ;;18 19 + --disable-plugins)20 + QC_DISABLE_plugins="Y"21 + shift22 + ;;23 +24 + --enable-plugins)25 + QC_ENABLE_PLUGINS="Y"26 + shift27 + ;;28 +29 --verbose)30 QC_VERBOSE="Y"31 shift32 @@ -318,6 +331,8 @@ echo QC_DISABLE_aspell=$QC_DISABLE_aspell33 echo QC_WITH_ASPELL_INC=$QC_WITH_ASPELL_INC34 echo QC_WITH_ASPELL_LIB=$QC_WITH_ASPELL_LIB35 echo QC_DISABLE_enchant=$QC_DISABLE_enchant36 +echo QC_DISABLE_plugins=$QC_DISABLE_plugins37 +echo QC_ENABLE_PLUGINS=$QC_ENABLE_PLUGINS38 echo39 fi40 41 @@ -1614,6 +1629,48 @@ public:42 #endif43 }44 };45 +#line 1 "plugins.qcm"46 +/*47 +-----BEGIN QCMOD-----48 +name: Plugins49 +arg: enable-plugins,Enable Psi Plugin support50 +51 +-----END QCMOD-----52 +*/53 +54 +//----------------------------------------------------------------------------55 +// qc_plugins56 +//----------------------------------------------------------------------------57 +class qc_plugins : public ConfObj58 +{59 +public:60 + qc_plugins(Conf *c) : ConfObj(c) {}61 + QString name() const { return "Plugins"; }62 + QString shortname() const { return "Plugins"; }63 + bool exec()64 + {65 + QString s;66 +67 + // Check if Jingle was enabled explicitly68 + s = conf->getenv("QC_ENABLE_PLUGINS");69 + if(s.isEmpty())70 + return false;71 +72 + conf->addDefine("PSI_PLUGINS");73 +74 + // Finish75 + conf->addExtra("CONFIG += psi_plugins");76 +77 + qWarning("");78 + qWarning("");79 + qWarning(" !!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!!!");80 + qWarning(" PLUGIN SUPPORT IS STILL UNFINISHED !!!");81 + qWarning(" THE PLUGIN INTERFACE /WILL/ CHANGE !!!");82 + qWarning(" USE AT YOUR OWN RISK !!!");83 +84 + return true;85 + }86 +};87 88 EOT89 cat >$1/modules_new.cpp <<EOT90 @@ -1665,6 +1722,10 @@ cat >$1/modules_new.cpp <<EOT91 o = new qc_conf(conf);92 o->required = true;93 o->disabled = false;94 + o = new qc_plugins(conf);95 + o->required = false;96 + o->disabled = false;97 +98 99 EOT100 cat >$1/conf4.h <<EOT101 @@ -2710,6 +2771,9 @@ export QC_WITH_ASPELL_INC102 export QC_WITH_ASPELL_LIB103 export QC_DISABLE_enchant104 export QC_VERBOSE105 +export QC_DISABLE_plugins106 +export QC_ENABLE_PLUGINS107 +108 rm -rf .qconftemp109 (110 mkdir .qconftemp -
psi/files/patch-configure_externalqca.diff
1 --- a/configure 2010-08-04 21:13:48.000000000 -0400 2 +++ b/configure 2010-08-04 21:14:44.000000000 -0400 3 @@ -652,38 +652,7 @@ 4 // based on crypto.prf. any changes made to that file need to be tracked here. 5 static QString internal_crypto_prf(const QString &incdir, const QString &libdir) 6 { 7 - QString out = QString( 8 -"QCA_INCDIR = %1\n" 9 -"QCA_LIBDIR = %2\n" 10 -"\n" 11 -"CONFIG *= qt\n" 12 -"\n" 13 -"LINKAGE =\n" 14 -"\n" 15 -"# on mac, if qca was built as a framework, link against it\n" 16 -"mac: {\n" 17 -" framework_dir = \$\$QCA_LIBDIR\n" 18 -" exists(\$\$framework_dir/qca.framework) {\n" 19 -" #QMAKE_FRAMEWORKPATH *= \$\$framework_dir\n" 20 -" LIBS += -F\$\$framework_dir\n" 21 -" INCLUDEPATH += \$\$framework_dir/qca.framework/Headers\n" 22 -" LINKAGE = -framework qca\n" 23 -" }\n" 24 -"}\n" 25 -"\n" 26 -"# else, link normally\n" 27 -"isEmpty(LINKAGE) {\n" 28 -" INCLUDEPATH += \$\$QCA_INCDIR/QtCrypto\n" 29 -" LIBS += -L\$\$QCA_LIBDIR\n" 30 -" LINKAGE = -lqca\n" 31 -" CONFIG(debug, debug|release) {\n" 32 -" windows:LINKAGE = -lqcad\n" 33 -" mac:LINKAGE = -lqca_debug\n" 34 -" }\n" 35 -"}\n" 36 -"\n" 37 -"LIBS += \$\$LINKAGE\n" 38 - ).arg(incdir, libdir); 39 + QString out = QString("CONFIG *= crypto\n"); 40 return out; 41 } 42 -
psi/Portfile
5 5 6 6 name psi 7 7 version 0.14 8 revision 18 revision 2 9 9 categories net chat 10 10 maintainers rowue 11 11 description jabber-based instant messaging client … … 26 26 depends_lib lib:libz:zlib \ 27 27 port:qt4-mac 28 28 29 patch.pre_args -p1 30 31 configure.args --release --verbose --disable-xss \ 32 --qtdir=${prefix}/libexec/qt4-mac \ 33 --bindir=${applications_dir} 29 34 30 configure.args --qtdir=${prefix}/libexec/qt4-mac 35 variant externalqca description {Use external qca} { 31 36 32 destroot { 33 xinstall -m 755 -d ${destroot}${applications_dir} 34 file copy ${worksrcpath}/src/psi.app ${destroot}${applications_dir} 35 system "strip \ 36 ${destroot}${applications_dir}/psi.app/Contents/MacOS/psi" 37 } 37 patchfiles-append patch-configure_externalqca.diff 38 38 39 variant externalqca description {Use external qca} {40 41 39 configure.args-append --disable-bundled-qca 42 40 depends_lib-append port:qca-ossl \ 43 41 port:qca-gnupg \ 44 42 port:qca 45 43 } 46 44 45 if {![variant_isset externalqca]} { 46 patchfiles-append patch_third-parth_qca_qca-ossl_qca-ossl.cpp.diff 47 } 47 48 49 destroot.destdir INSTALL_ROOT="${destroot}" 50 48 51 # variant ipv6 description {Add ipv6 support} { 49 52 # 50 53 # patchfiles-append patch-src-src.pro.diff … … 53 56 54 57 variant plugins description {Build with experimental Plugin Support} { 55 58 56 patch.pre_args -p1 57 58 patchfiles-append patch-configure.diff \ 59 patchfiles-append patch-configure_plugins.diff \ 59 60 patch-src-applicationinfo.cpp.diff \ 60 61 patch-src-pluginhost.cpp.diff \ 61 62 patch-src-pluginhost.h.diff \