...
 
Commits (161)
......@@ -5,6 +5,9 @@ syntax: glob
*.m4
*.pyc
*.pyo
*.o
*.so
*.dylib
*~
autom4te.cache
data/defs.py
......
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>Gajim</string>
<key>CFBundleIconFile</key>
<string>Gajim.icns</string>
<key>CFBundleIdentifier</key>
<string>org.gajim.osx</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>Gajim</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>GAJM</string>
<key>CFBundleVersion</key>
<string>0.13</string>
<key>NSMainNibFile</key>
<string>Gajim</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
</dict>
</plist>
{
IBClasses = ({CLASS = FirstResponder; LANGUAGE = ObjC; SUPERCLASS = NSObject; });
IBVersion = 1;
}
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IBDocumentLocation</key>
<string>82 255 356 240 0 0 1280 832 </string>
<key>IBEditorPositions</key>
<dict>
<key>29</key>
<string>476 296 342 44 0 0 1280 832 </string>
</dict>
<key>IBFramework Version</key>
<string>446.1</string>
<key>IBOldestOS</key>
<integer>4</integer>
<key>IBOpenObjects</key>
<array>
<integer>289</integer>
<integer>29</integer>
</array>
<key>IBSystem Version</key>
<string>8S165</string>
</dict>
</plist>
SUBDIRS = data src po scripts
include buildsys.mk
include extra.mk
.PHONY: dist
dist:
rm -fr dist
hg archive -t files dist/gajim-${VERSION}
cp configure config.h.in dist/gajim-${VERSION}
cp po/Makefile.in.in po/POTFILES.in dist/gajim-${VERSION}/po
chmod +x dist/gajim-${VERSION}
cd dist && tar cfz ../gajim-${VERSION}.tar.gz gajim-${VERSION}
rm -fr dist
echo "Successfully created gajim-${VERSION}.tar.gz."
SUBDIRS = src data po icons
ACLOCAL_AMFLAGS = -I m4
bin_SCRIPTS = scripts/gajim scripts/gajim-history-manager scripts/gajim-remote
docfilesdir = $(docdir)
docfiles_DATA = README \
README.html \
ChangeLog \
COPYING \
THANKS \
THANKS.artists \
AUTHORS
EXTRA_DIST = \
$(docfiles_DATA) \
autogen.sh \
intltool-extract.in \
intltool-merge.in \
intltool-update.in \
gajim.nsi \
setup_win32.py \
scripts/gajim.in
DISTCLEANFILES = \
intltool-extract \
intltool-merge \
intltool-update \
scripts/gajim \
scripts/gajim-remote \
scripts/gajim-histrory-manager
MAINTAINERCLEANFILES = \
configure \
Makefile.in \
intltool-extract.in \
intltool-update.in \
intltool-merge.in \
ltmain.sh \
missing \
mkinstalldirs \
install-sh \
compile \
depcomp \
config.guess \
config.log \
config.sub \
config.status \
aclocal.m4 \
libtool \
po/POTFILES.in \
m4/intltool.m4
MAINTAINERCLEANDIRS = \
autom4te.cache \
build \
dist
test:
python test/runtests.py
.PHONY: test
doc:
epydoc --config=doc/epydoc.conf
.PHONY: doc
#!/usr/bin/env bash
AM_ARGS="--add-missing --gnu --copy"
CONF_ARGS=""
if test x`uname -s 2>/dev/null` = 'xDarwin' -a -f /Library/Frameworks/GTK+.framework/Versions/Current/env; then
. /Library/Frameworks/GTK+.framework/Versions/Current/env
AM_ARGS="${AM_ARGS} --ignore-deps"
CONF_ARGS="${CONF_ARGS} --disable-idle --without-x"
fi
echo "[encoding: UTF-8]" > po/POTFILES.in \
&& ls -1 data/gajim.desktop.in.in data/glade/*.glade \
src/*py src/common/*py src/common/zeroconf/*.py | grep -v ipython_view.py >> \
po/POTFILES.in || exit 1
if test -z `which pkg-config 2>/dev/null`;then
echo "***Error: pkg-config not found***"
#!/bin/sh
if ! which pkg-config >/dev/null 2>&1; then
echo "*** ERROR: pkg-config not found ***"
echo "See README.html for build requirements."
exit 1
fi
which glibtoolize >/dev/null 2>&1 && LIBTOOLIZE="glibtoolize" || LIBTOOLIZE="libtoolize"
fi
mkdir -p config
echo "[encoding: UTF-8]" > po/POTFILES.in && \
ls -1 data/gajim.desktop.in.in data/glade/*.glade \
src/*.py src/common/*.py src/common/zeroconf/*.py src/osx/*.py | \
grep -v ipython_view.py >>po/POTFILES.in || exit 1
intltoolize --force --automake \
&& aclocal -I ./m4 \
&& $LIBTOOLIZE --copy --force --automake \
&& autoheader \
&& autoconf \
&& automake ${AM_ARGS} \
&& ./configure ${CONF_ARGS} $@
intltoolize --force && \
aclocal -I ./m4 && \
autoheader && \
autoconf && \
./configure ${CONF_ARGS} $@
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
AC_INIT([Gajim - A Jabber Instant Messager],
[0.13.10.0-dev],[http://trac.gajim.org/],[gajim])
AC_PREREQ([2.59])
AC_CONFIG_MACRO_DIR(m4)
AC_CONFIG_SRCDIR(src)
AC_CONFIG_HEADER(config.h)
AC_CONFIG_AUX_DIR(config)
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([1.8])
AM_MAINTAINER_MODE
dnl Make Objective-C work with automake
AM_CONDITIONAL([am__fastdepOBJC], false)
AC_CONFIG_AUX_DIR(.)
IT_PROG_INTLTOOL([0.35.0])
PKG_PROG_PKG_CONFIG([0.19])
AM_DISABLE_STATIC
AC_ENABLE_SHARED(yes)
AC_ENABLE_STATIC(no)
AC_CANONICAL_HOST
AC_CANONICAL_TARGET
AC_ISC_POSIX
AC_PROG_CC
AC_PROG_OBJC
AC_PROG_LN_S
AC_PROG_INSTALL
AC_PROG_MAKE_SET
AC_PROG_LIBTOOL
AM_PROG_INSTALL_SH
AC_C_CONST
AC_CHECK_HEADERS([libintl.h])
AC_PATH_X
BUILDSYS_SHARED_LIB
IT_PROG_INTLTOOL([0.35.0])
PKG_PROG_PKG_CONFIG([0.19])
GETTEXT_PACKAGE=gajim
AC_SUBST([GETTEXT_PACKAGE])
......@@ -49,6 +43,59 @@ AM_PATH_PYTHON([2.5])
if test "x$PYTHON" = "x:"; then
AC_MSG_ERROR([Python not found])
fi
AC_SUBST(PYTHON_FLAGS, $PYTHON_FLAGS)
dnl ****
dnl Cocoa
dnl ****
AC_ARG_ENABLE([cocoa],
[ --disable-cocoa do not build cocoa integration [default auto]],
enable_cocoa=$enableval, enable_cocoa=yes)
if test "x$enable_cocoa" = "xyes"; then
dnl There is no pkgconfig for cocoa; lets do a header check
temp_save_cflags="$CFLAGS"
CFLAGS="$CFLAGS -ObjC"
AC_CHECK_HEADER(Cocoa/Cocoa.h, [have_cocoa=true], [have_cocoa=false])
AC_CHECK_HEADER(AppKit/AppKit.h, [have_appkit=true], [have_appkit=false])
CFLAGS="$temp_save_cflags"
if test x"$have_cocoa" = x"true" -a x"$have_appkit" = x"true"; then
AC_SUBST(OSX_MODULES, "growl nsapp_m syncmenu")
else
AC_SUBST(OSX_MODULES, "")
fi
fi
dnl ****
dnl Carbon
dnl ****
AC_ARG_ENABLE([carbon],
[ --disable-carbon do not build with carbon [default auto]],
enable_carbon=$enableval, enable_carbon=yes)
if test x"$enable_carbon" = x"yes";then
dnl There is no pkgconfig for carbon; lets do a header check
AC_CHECK_HEADER(Carbon/Carbon.h, [have_carbon=true], [have_carbon=false])
AC_CHECK_HEADER(IOKit/IOKitLib.h, [have_iokit=true], [have_iokit=false])
if test x"$have_carbon" = x"true" -a x"$have_iokit" = x"true"; then
have_idle_osx=true
dnl Disable custom trayicon
have_trayicon=gtk+
dnl Hack to work around failure in gettext package detection on OS/X
if test "x$GMSGFMT" = "x";then
AC_SUBST(GMSGFMT, msgfmt)
AC_SUBST(MSGFMT, msgfmt)
AC_SUBST(XGETTEXT, xgettext)
fi
AC_SUBST(OSX_IDLEMODULE, "idle_c")
else
AC_SUBST(OSX_IDLEMODULE, "")
have_carbon=false
have_idle_osx=false
fi
fi
ACLOCAL_AMFLAGS="\${ACLOCAL_FLAGS}"
AC_SUBST(ACLOCAL_AMFLAGS)
......@@ -74,27 +121,20 @@ AS_AC_EXPAND(PKGDATADIR, "${datadir}/${PACKAGE}")
AS_AC_EXPAND(DOCDIR, "${docdir}")
AS_AC_EXPAND(LOCALEDIR, "${localedir}")
AC_SUBST(VERSION)
AC_SUBST(PACKAGE)
AC_SUBST(PACKAGE, gajim)
AC_SUBST(VERSION, 0.12.1.5)
AC_CONFIG_FILES([
Makefile
data/Makefile
data/glade/Makefile
data/emoticons/Makefile
data/pixmaps/Makefile
data/iconsets/Makefile
data/moods/Makefile
data/activities/Makefile
icons/Makefile
buildsys.mk
extra.mk
data/gajim.desktop.in
data/defs.py
src/Makefile
scripts/gajim
scripts/gajim-remote:scripts/gajim.in
scripts/gajim-history-manager:scripts/gajim.in
po/Makefile.in
])
BUILDSYS_TOUCH_DEPS
AC_OUTPUT
echo "
*****************************
......@@ -104,4 +144,3 @@ echo "
Documentation .... ${DOCDIR}
Others ........... ${PKGDATADIR}
*****************************"
SUBDIRS = activities emoticons glade iconsets moods other pixmaps sounds
include ../buildsys.mk
SUBDIRS = glade emoticons pixmaps iconsets moods activities
@INTLTOOL_DESKTOP_RULE@
desktopdir = $(datadir)/applications
desktop_in_files = gajim.desktop.in.in
desktop_DATA = $(desktop_in_files:.desktop.in.in=.desktop)
installdefsdir = $(gajim_srcdir)/common
installdefs_DATA = defs.py
soundsdir = $(pkgdatadir)/data/sounds
sounds_DATA = $(srcdir)/sounds/*.wav
otherdir = $(pkgdatadir)/data/other
other_DATA = other/servers.xml other/cacerts.pem
man_MANS = gajim.1 gajim-remote.1
EXTRA_DIST = $(desktop_in_files) \
$(sounds_DATA) \
$(other_DATA) \
$(man_MANS) \
defs.py.in
DISTCLEANFILES = $(desktop_DATA) \
$(installdefs_DATA)
CLEANFILES = gajim.desktop
MAINTAINERCLEANFILES = Makefile.in
include ../../buildsys.mk
install-extra:
for i in */*/*.png; do \
${INSTALL_STATUS}; \
if ${MKDIR_P} ${DESTDIR}${datadir}/${PACKAGE}/activities/$$(dirname $$i) && ${INSTALL} -m 644 $$i ${DESTDIR}${datadir}/${PACKAGE}/activities/$$i; then \
${INSTALL_OK}; \
else \
${INSTALL_FAILED}; \
fi \
done
activitiesdir = $(pkgdatadir)/data/activities
nobase_dist_activities_DATA = $(srcdir)/*/*/*
MAINTAINERCLEANFILES = Makefile.in
include ../../buildsys.mk
install-extra:
for i in */emoticons.py */*.png */*.gif; do \
${INSTALL_STATUS}; \
if ${MKDIR_P} ${DESTDIR}${datadir}/${PACKAGE}/emoticons/$$(dirname $$i) && ${INSTALL} -m 644 $$i ${DESTDIR}${datadir}/${PACKAGE}/emoticons/$$i; then \
${INSTALL_OK}; \
else \
${INSTALL_FAILED}; \
fi \
done
emoticonsdir = $(pkgdatadir)/data/emoticons
nobase_dist_emoticons_DATA = \
$(srcdir)/*/*.png \
$(srcdir)/*/*.gif \
$(srcdir)/*/emoticons.py
MAINTAINERCLEANFILES = Makefile.in
include ../../buildsys.mk
install-extra:
for i in *.glade; do \
${INSTALL_STATUS}; \
if ${MKDIR_P} ${DESTDIR}${datadir}/${PACKAGE}/glade && ${INSTALL} -m 644 $$i ${DESTDIR}${datadir}/${PACKAGE}/glade/$$i; then \
${INSTALL_OK}; \
else \
${INSTALL_FAILED}; \
fi \
done
gladedir = $(pkgdatadir)/data/glade
glade_DATA = $(srcdir)/*.glade
EXTRA_DIST = $(glade_DATA)
DISTCLEANFILES = *.h
MAINTAINERCLEANFILES = Makefile.in
include ../../buildsys.mk
install-extra:
for i in */*/*.png */*/*/*.png; do \
${INSTALL_STATUS}; \
if ${MKDIR_P} ${DESTDIR}${datadir}/${PACKAGE}/iconsets/$$(dirname $$i) && ${INSTALL} -m 644 $$i ${DESTDIR}${datadir}/${PACKAGE}/iconsets/$$i; then \
${INSTALL_OK}; \
else \
${INSTALL_FAILED}; \
fi \
done
iconsetdir = $(pkgdatadir)/data/iconsets
nobase_dist_iconset_DATA = \
$(srcdir)/*/16x16/* \
$(srcdir)/*/32x32/* \
$(srcdir)/*/48x48/* \
$(srcdir)/transports/*/16x16/* \
$(srcdir)/transports/*/32x32/* \
$(srcdir)/transports/*/48x48/*
MAINTAINERCLEANFILES = Makefile.in
include ../../buildsys.mk
install-extra:
for i in */*.png; do \
${INSTALL_STATUS}; \
if ${MKDIR_P} ${DESTDIR}${datadir}/${PACKAGE}/moods/$$(dirname $$i) && ${INSTALL} -m 644 $$i ${DESTDIR}${datadir}/${PACKAGE}/moods/$$i; then \
${INSTALL_OK}; \
else \
${INSTALL_FAILED}; \
fi \
done
moodsdir = $(pkgdatadir)/data/moods
nobase_dist_moods_DATA = $(srcdir)/*/*
MAINTAINERCLEANFILES = Makefile.in
include ../../buildsys.mk
install-extra:
for i in *.pem *.xml; do \
${INSTALL_STATUS}; \
if ${MKDIR_P} ${DESTDIR}${datadir}/${PACKAGE}/other && ${INSTALL} -m 644 $$i ${DESTDIR}${datadir}/${PACKAGE}/other/$$i; then \
${INSTALL_OK}; \
else \
${INSTALL_FAILED}; \
fi \
done
include ../../buildsys.mk
install-extra:
for i in *.bmp *.icns *.ico *.png *.svg agents/*.png dock_icns/*.icns events/*.png; do \
${INSTALL_STATUS}; \
if ${MKDIR_P} ${DESTDIR}${datadir}/${PACKAGE}/pixmaps/$$(dirname $$i) && ${INSTALL} -m 644 $$i ${DESTDIR}${datadir}/${PACKAGE}/pixmaps/$$i; then \
${INSTALL_OK}; \
else \
${INSTALL_FAILED}; \
fi \
done
pixmapsdir = $(pkgdatadir)/data/pixmaps
nobase_dist_pixmaps_DATA = \
$(srcdir)/gajim.ico
MAINTAINERCLEANFILES = Makefile.in
include ../../buildsys.mk
install-extra:
for i in *.wav; do \
${INSTALL_STATUS}; \
if ${MKDIR_P} ${DESTDIR}${datadir}/${PACKAGE}/sounds && ${INSTALL} -m 644 $$i ${DESTDIR}${datadir}/${PACKAGE}/sounds/$$i; then \
${INSTALL_OK}; \
else \
${INSTALL_FAILED}; \
fi \
done
OSX_IDLEMODULE = @OSX_IDLEMODULE@
OSX_MODULES = @OSX_MODULES@
PYTHON_CFLAGS = @PYTHON_INCLUDES@
PYTHON_LIBS = -lpython${PYTHON_VERSION}
PYTHON_LDFLAGS = -L${PYTHON_PREFIX}/lib
PYTHON_PREFIX = @PYTHON_PREFIX@
PYTHON_VERSION = @PYTHON_VERSION@
PYGTK_CFLAGS = @PYGTK_CFLAGS@
PYGTK_DEFS = @PYGTK_DEFS@
PYGTK_LIBS = @PYGTK_LIBS@
VERSION = @VERSION@
XSCRNSAVER_LIBS = @XSCRNSAVER_LIBS@
--- gtk+-2.14.7/gdk/quartz/gdkevents-quartz.c.orig 2009-01-10 00:42:03.000000000 +0100
+++ gtk+-2.14.7/gdk/quartz/gdkevents-quartz.c 2009-01-10 00:43:04.000000000 +0100
@@ -473,9 +473,9 @@
if (nsflags & NSShiftKeyMask)
modifiers |= GDK_SHIFT_MASK;
if (nsflags & NSControlKeyMask)
- modifiers |= GDK_CONTROL_MASK;
- if (nsflags & NSCommandKeyMask)
modifiers |= GDK_MOD1_MASK;
+ if (nsflags & NSCommandKeyMask)
+ modifiers |= GDK_CONTROL_MASK;
return modifiers;
}
This diff is collapsed.
#!/bin/sh
cd "$(dirname $0)/src"
exec python -OOt gajim.py "$@"
exec python -t gajim.py $@
dnl
dnl Copyright (c) 2007 - 2009, Jonathan Schleifer <js@webkeks.org>
dnl
dnl https://webkeks.org/hg/buildsys/
dnl
dnl Permission to use, copy, modify, and/or distribute this software for any
dnl purpose with or without fee is hereby granted, provided that the above
dnl copyright notice and this permission notice is present in all copies.
dnl
dnl THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
dnl AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
dnl IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
dnl ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
dnl LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
dnl CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
dnl SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
dnl INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
dnl CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
dnl ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
dnl POSSIBILITY OF SUCH DAMAGE.
dnl
AC_DEFUN([BUILDSYS_LIB], [
AC_ARG_ENABLE(shared,
AS_HELP_STRING([--disable-shared], [don't build shared libraries]))
AS_IF([test x"$enable_shared" = x"no"],
[BUILDSYS_STATIC_LIB_ONLY],
[BUILDSYS_SHARED_LIB])
])
AC_DEFUN([BUILDSYS_PROG_IMPLIB], [
AC_REQUIRE([AC_CANONICAL_HOST])
AC_MSG_CHECKING(whether we need an implib)
case "$host" in
*-*-cygwin* | *-*-mingw*)
AC_MSG_RESULT(yes)
PROG_IMPLIB_NEEDED='yes'
PROG_IMPLIB_LDFLAGS='-Wl,-export-all-symbols,--out-implib,lib${PROG}.a'
;;
*)
AC_MSG_RESULT(no)
PROG_IMPLIB_NEEDED='no'
PROG_IMPLIB_LDFLAGS=''
;;
esac
AC_SUBST(PROG_IMPLIB_NEEDED)
AC_SUBST(PROG_IMPLIB_LDFLAGS)
])
AC_DEFUN([BUILDSYS_SHARED_LIB], [
AC_REQUIRE([AC_CANONICAL_HOST])
AC_MSG_CHECKING(for shared library system)
case "$host" in
*-apple-*)
AC_MSG_RESULT(Mac OS X)
LIB_CPPFLAGS='-DPIC'
LIB_CFLAGS='-fPIC'
LIB_LDFLAGS='-dynamiclib -install_name ${libdir}/${LIB}'
LIB_PREFIX='lib'
LIB_SUFFIX='.dylib'
PLUGIN_CPPFLAGS='-DPIC'
PLUGIN_CFLAGS='-fPIC'
PLUGIN_LDFLAGS='-bundle -flat_namespace -undefined suppress'
PLUGIN_SUFFIX='.impl'
INSTALL_LIB='${INSTALL} -m 755 $$i ${DESTDIR}${libdir}/$${i%.dylib}.${LIB_MAJOR}.${LIB_MINOR}.dylib && ${LN_S} -f $${i%.dylib}.${LIB_MAJOR}.${LIB_MINOR}.dylib ${DESTDIR}${libdir}/$${i%.dylib}.${LIB_MAJOR}.dylib && ${LN_S} -f $${i%.dylib}.${LIB_MAJOR}.${LIB_MINOR}.dylib ${DESTDIR}${libdir}/$$i'
UNINSTALL_LIB='rm -f ${DESTDIR}${libdir}/$$i ${DESTDIR}${libdir}/$${i%.dylib}.${LIB_MAJOR}.dylib ${DESTDIR}${libdir}/$${i%.dylib}.${LIB_MAJOR}.${LIB_MINOR}.dylib'
CLEAN_LIB=''
;;
*-*-solaris*)
AC_MSG_RESULT(Solaris)
LIB_CPPFLAGS='-DPIC'
LIB_CFLAGS='-fPIC'
LIB_LDFLAGS='-shared -fPIC -Wl,-soname=${LIB}.${LIB_MAJOR}.${LIB_MINOR}'
LIB_PREFIX='lib'
LIB_SUFFIX='.so'
PLUGIN_CPPFLAGS='-DPIC'
PLUGIN_CFLAGS='-fPIC'
PLUGIN_LDFLAGS='-shared -fPIC'
PLUGIN_SUFFIX='.so'
RPATH_LDFLAGS='-Wl,-rpath,${libdir}'
INSTALL_LIB='${INSTALL} -m 755 $$i ${DESTDIR}${libdir}/$$i.${LIB_MAJOR}.${LIB_MINOR} && rm -f ${DESTDIR}${libdir}/$$i && ${LN_S} $$i.${LIB_MAJOR}.${LIB_MINOR} ${DESTDIR}${libdir}/$$i'
UNINSTALL_LIB='rm -f ${DESTDIR}${libdir}/$$i ${DESTDIR}${libdir}/$$i.${LIB_MAJOR}.${LIB_MINOR}'
CLEAN_LIB=''
;;
*-*-openbsd* | *-*-mirbsd*)
AC_MSG_RESULT(Solaris)
LIB_CPPFLAGS='-DPIC'
LIB_CFLAGS='-fPIC'
LIB_LDFLAGS='-shared -fPIC'
LIB_PREFIX='lib'
LIB_SUFFIX='.so.${LIB_MAJOR}.${LIB_MINOR}'
PLUGIN_CPPFLAGS='-DPIC'
PLUGIN_CFLAGS='-fPIC'
PLUGIN_LDFLAGS='-shared -fPIC'
PLUGIN_SUFFIX='.so'
RPATH_LDFLAGS='-Wl,-rpath,${libdir}'
INSTALL_LIB='${INSTALL} -m 755 $$i ${DESTDIR}${libdir}/$$i'
UNINSTALL_LIB='rm -f ${DESTDIR}${libdir}/$$i'
CLEAN_LIB=''
;;
*-*-cygwin* | *-*-mingw*)
AC_MSG_RESULT(Win32)
LIB_CPPFLAGS='-DPIC'
LIB_CFLAGS=''
LIB_LDFLAGS='-shared -Wl,--out-implib,${LIB}.a'
LIB_PREFIX='lib'
LIB_SUFFIX='.dll'
PLUGIN_CPPFLAGS=''
PLUGIN_CFLAGS=''
PLUGIN_LDFLAGS='-shared'
PLUGIN_SUFFIX='.dll'
RPATH_LDFLAGS='-Wl,-rpath,${libdir}'
INSTALL_LIB='${MKDIR_P} ${DESTDIR}${bindir} && ${INSTALL} -m 755 $$i ${DESTDIR}${bindir}/$$i && ${INSTALL} -m 755 $$i.a ${DESTDIR}${libdir}/$$i.a'
UNINSTALL_LIB='rm -f ${DESTDIR}${bindir}/$$i ${DESTDIR}${libdir}/$$i.a'
CLEAN_LIB='${LIB}.a'
;;
*)
AC_MSG_RESULT(GNU)
LIB_CPPFLAGS='-DPIC'
LIB_CFLAGS='-fPIC'
LIB_LDFLAGS='-shared -fPIC -Wl,-soname=${LIB}.${LIB_MAJOR}'
LIB_PREFIX='lib'
LIB_SUFFIX='.so'
PLUGIN_CPPFLAGS='-DPIC'
PLUGIN_CFLAGS='-fPIC'
PLUGIN_LDFLAGS='-shared -fPIC'
PLUGIN_SUFFIX='.so'
RPATH_LDFLAGS='-Wl,-rpath,${libdir}'
INSTALL_LIB='${INSTALL} -m 755 $$i ${DESTDIR}${libdir}/$$i.${LIB_MAJOR}.${LIB_MINOR}.0 && ${LN_S} -f $$i.${LIB_MAJOR}.${LIB_MINOR}.0 ${DESTDIR}${libdir}/$$i.${LIB_MAJOR} && ${LN_S} -f $$i.${LIB_MAJOR}.${LIB_MINOR}.0 ${DESTDIR}${libdir}/$$i'
UNINSTALL_LIB='rm -f ${DESTDIR}${libdir}/$$i ${DESTDIR}${libdir}/$$i.${LIB_MAJOR} ${DESTDIR}${libdir}/$$i.${LIB_MAJOR}.${LIB_MINOR}.0'
CLEAN_LIB=''
;;
esac
AC_SUBST(LIB_CPPFLAGS)
AC_SUBST(LIB_CFLAGS)
AC_SUBST(LIB_LDFLAGS)
AC_SUBST(LIB_PREFIX)
AC_SUBST(LIB_SUFFIX)
AC_SUBST(PLUGIN_CPPFLAGS)
AC_SUBST(PLUGIN_CFLAGS)
AC_SUBST(PLUGIN_LDFLAGS)
AC_SUBST(PLUGIN_SUFFIX)
AC_SUBST(RPATH_LDFLAGS)
AC_SUBST(INSTALL_LIB)
AC_SUBST(UNINSTALL_LIB)
AC_SUBST(CLEAN_LIB)
])
AC_DEFUN([BUILDSYS_STATIC_LIB_ONLY], [
AC_REQUIRE([AC_PROG_RANLIB])
AC_PATH_TOOL(AR, ar)
LIB_CPPFLAGS=''
LIB_CFLAGS=''
LIB_LDFLAGS=''
LIB_PREFIX='lib'
LIB_SUFFIX='.a'
RPATH_LDFLAGS=''
INSTALL_LIB='${INSTALL} -m 644 $$i ${DESTDIR}${libdir}/$$i'
UNINSTALL_LIB='rm -f ${DESTDIR}${libdir}/$$i'
CLEAN_LIB=''
AC_SUBST(LIB_CPPFLAGS)
AC_SUBST(LIB_CFLAGS)
AC_SUBST(LIB_LDFLAGS)
AC_SUBST(LIB_PREFIX)
AC_SUBST(LIB_SUFFIX)
AC_SUBST(RPATH_LDFLAGS)
AC_SUBST(INSTALL_LIB)
AC_SUBST(UNINSTALL_LIB)
AC_SUBST(CLEAN_LIB)
])
AC_DEFUN([BUILDSYS_TOUCH_DEPS], [
${as_echo:="echo"} "${as_me:="configure"}: touching .deps files"
for i in $(find . -name Makefile); do
DEPSFILE="$(dirname $i)/.deps"
test -f "$DEPSFILE" && rm "$DEPSFILE"
touch -t 0001010000 "$DEPSFILE"
done
])
include ../buildsys.mk
install-extra:
for i in gajim gajim-remote gajim-history-manager; do \
${INSTALL_STATUS}; \
if ${MKDIR_P} ${DESTDIR}${bindir} && ${INSTALL} -m 755 $$i ${DESTDIR}${bindir}/$$i; then \
${INSTALL_OK}; \
else \
${INSTALL_FAILED}; \
fi \
done
......@@ -21,13 +21,18 @@
## along with Gajim. If not, see <http://www.gnu.org/licenses/>.
##
APP=`basename $0`
APP="$(basename $0)"
if test $(id -u) -eq 0; then
echo "You must not launch $APP as root, it is INSECURE"
exit 1
fi
[ "$APP" = "gajim-history-manager" ] && APP="history_manager"
libdir="@LIBDIR@"
PYTHON_EXEC="@PYTHON@"
cd "@GAJIM_SRCDIR@"
exec "@PYTHON@" -OO $APP.py "$@"
cd "$libdir/gajim"
export PYTHONPATH="$PYTHONPATH:$libdir/gajim"
export GAJIM_DATADIR="@DATADIR@/gajim"
export GAJIM_LOCALEDIR="@DATADIR@/locale"
exec $PYTHON_EXEC $APP.pyc "$@"
include ../extra.mk
SUBDIRS = common osx
SRCS = adhoc_commands.py \
advanced_configuration_window.py \
atom_window.py \
cell_renderer_image.py \
chat_control.py \
config.py \
conversation_textview.py \
dataforms_widget.py \
dialogs.py \
disco.py \
dock.py \
features_window.py \
filetransfers_window.py \
gajim-remote.py \
gajim.py \
gajim_themes_window.py \
groupchat_control.py \
groups.py \
gtkexcepthook.py \
gtkgui_helpers.py \
gui_menu_builder.py \
history_manager.py \
history_window.py \
htmltextview.py \
ipython_view.py \
message_control.py \
message_textview.py \
message_window.py \
music_track_listener.py \
negotiation.py \
network_manager_listener.py \
notify.py \
profile_window.py \
remote_control.py \
roster_window.py \
search_window.py \
secrets.py \
session.py \
statusicon.py \
tooltips.py \
vcard.py
DISTCLEAN = trayicon.so
include ../buildsys.mk
all: ${OBJS} trayicon.so
# Don't depend on the actual file, we can create the symlink anyway
trayicon.so:
rm -f trayicon.so
ln -s traymodule/trayicon.so trayicon.so
install-extra:
for i in ${OBJS}; do \
${INSTALL_STATUS}; \
if ${MKDIR_P} ${DESTDIR}${libdir}/${PACKAGE} && ${INSTALL} -m 644 $$i ${DESTDIR}${libdir}/${PACKAGE}/$$i; then \
${INSTALL_OK}; \
else \
${INSTALL_FAILED}; \
fi \
done
INCLUDES = \
$(PYTHON_INCLUDES)
export MACOSX_DEPLOYMENT_TARGET=10.4
gajimsrcdir = $(gajim_srcdir)
nobase_dist_gajimsrc_PYTHON = \
$(srcdir)/*.py \
$(srcdir)/common/*.py \
$(srcdir)/common/protocol/*.py \
$(srcdir)/common/xmpp/*.py \
$(srcdir)/common/zeroconf/*.py \
$(srcdir)/command_system/*.py \
$(srcdir)/command_system/implementation/*.py
dist-hook:
rm -f $(distdir)/ipython_view.py
MAINTAINERCLEANFILES = Makefile.in
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -390,4 +390,4 @@ class CapsCache(object):
else:
q.update_last_seen()
# vim: se ts=3:
\ No newline at end of file
# vim: se ts=3:
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
# No-op file that just helps python with the syncmenu module directory.
# vim: se ts=3:
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.