adium: Fixes in prep for 1.15.1 release
[siplcs.git] / src / adium / README.Adium
blobd002f8d9ca2d2f8ca53cabd2ff9ea7ae927792e1
1 Compiling SIPE plugin for Adium
2 ===============================
3 To compile the Adium plugin you will need XCode, then to get the following dependencies:
5 * Adium 1.5+ code:              http://trac.adium.im/wiki/GettingNewestAdiumSource
6 * libnss 3.14+libnspr 4.9.2:    https://developer.mozilla.org/en-US/docs/NSS/NSS_3.14_release_notes
8 1. Get Adium
9 --------------
10 Follow the instructions at their URL above.
12 2. Setup Adium Source Tree variable in XCode 
13 ----------------------------------------------
14 Point a source tree variable ($ADIUM_SRCPATH) to the directory you put Adium in.
15 i.e If Adium is located in /tmp/Adium,  $ADIUM_SRCPATH should be set to /tmp/Adium
17 3. Get and build libnss and libnspr
18 -------------------------------------
19 $ curl -O https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_14_RTM/src/nss-3.14-with-nspr-4.9.2.tar.gz
20 $ tar -xvzf nss-3.14-with-nspr-4.9.2.tar.gz
21 $ cd nss-3.14
22 $ grep -lR '@executable_path' * | xargs sed -i '.orig' -e 's/@executable_path/@rpath/g' 
23 $ make nss_build_all install -C mozilla/security/nss BUILD_OPT=1 NSS_ENABLE_ECC=1 NS_USE_GCC=1 NO_MDUPDATE=1 NSS_USE_SYSTEM_SQLITE=1 USE_64=1 NSPR_INCLUDE_DIR=mozilla/nsprpub/dist/include/nspr
25 NOTE: Make sure the directory name for where nss is located does not have a space in it.  The nss make scripts don't quote paths, so it fails with spaces.
27 TODO: Import NSS/NSPR as an external build system target in XCode project, and pull RELEASE_OBJDIR_NAME from the autoconf.mk file to dynamically find the build products.
29 4. Setup NSS Source Tree variable in XCode 
30 --------------------------------------------
31 Point a source tree variable ($NSS_SRCPATH) to the directory you put NSS/NSPR in
32 i.e if NSS is located in /tmp/nss-3.14 ,  $NSS_SRCPATH should be /tmp/nss-3.14
34 5. Correct the NSS/NSPR library paths in XCode
35 ------------------------------------------------
36 Note: The XCode project file has hardcoded paths based off of the RELEASE_OBJDIR_NAME in autoconf.mk.  The path is different for different MacOS versions (e.g. Darwin11.4.2 for Lion, Darwin12.2.1 for Mountain Lion).  This project file is currently pointing to the Lion build variant.  You will have to correct the file path for the files that show as "missing" (in red in the Project Explorer view) to point to the correct RELEASE_OBJDIR_NAME if you are running on something other than Lion.  The above noted TODO, should resolve this, but for now it's required to build cleanly.
38 6. Build SIPEAdiumPlugin.xcodeproj and test it
39 ------------------------------------------------
40 Load the project in XCode, hit build!
43 Now fire up Adium and add an Office Communicator account type.