Re: [Ekiga-devel-list] please help me
- From: Thierry Simonnet <t simonnet esiee fr>
- To: Ekiga development mailing list <ekiga-devel-list gnome org>
- Cc: Rohit Negi <rohitnegi017 gmail com>
- Subject: Re: [Ekiga-devel-list] please help me
- Date: Thu, 20 May 2010 11:21:35 +0200
Hello,
For windows cross compile process is quite difficult ;-)
I set up my environment using Debian, but I think there will be no
trouble for CentOS:
Let's have a look on different points :
1. cross compiler : I use i586-mingw32msvc-gcc version 4.4.2
(mingw32-binutils, mingw32-runtime, gcc-mingw32)
2. Makefile : let me know which Makefile you use.
3. Components : there are more than opal,ptlib and ekiga to get
and/or cross compile. (libpng-1.2.37-bin.zip, ptlib,
atk-dev_1.30.0-1_win32.zip, libpng-1.2.37-dep.zip, regex,
cairo-dev_1.8.10-3_win32.zip, libpng-1.2.37-lib.zip,
speex-1.2rc1.tar.gz, celt-0.7.1.tar.gz,
gettext-runtime-dev-0.17-1.zip, libxml2-2.7.7.tar.gz, theora,
cyrus-sasl-2.1.22.zip, glib-dev_2.24.0-2_win32.zip,
loudmouth-1.4.3-win.zip, ekiga, gtk+-dev_2.20.0-1_win32.zip,
nsis-2.46.zip, x264, expat-2.0.1.tar.gz,
gtk2-runtime-2.20-2010-04-30-ts.exe, opal, ffmpeg,
libiconv-1.9.2-1-bin.zip, openldap-2.4.19.tgz,
libogg-1.1.4.tar.gz, pango-dev_1.28.0-1_win32.zip). Here are
versions I use for trunk version.
4. You need to see in your Makefile if update-sources section get
every component.
As I can see, there is some trouble with gtk2-runtime package. use 2.16
version (both dev and runtime).
In attachment a Makefile I used for 3.2.6 version (change Ekiga
GIT_EKIGA_REV according to your wishes).
Don't hesitate to contact me for more help
Thierry
On 05/20/2010 10:11 AM, Rohit Negi wrote:
Hi All,
I would like to make sip communicator for windows with the feature
already have in the ekiga like voice ,video and IM .
( http://ekiga.org/ekiga-softphone-features ) and i have compiled the
ptlib ,opal ,ekiga source code successfully in centOS 5.4.
when i debug then i got following error:using command
ekiga -d 4 2>output.txt
please help me out.
(ekiga:10956): GLib-GObject-WARNING **: invalid (NULL) pointer instance
(ekiga:10956): GLib-GObject-CRITICAL **: g_signal_connect_data:
assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
(ekiga:10956): Gtk-CRITICAL **: gtk_settings_get_for_screen: assertion
`GDK_IS_SCREEN (screen)' failed
(ekiga:10956): GLib-GObject-CRITICAL **: g_object_get: assertion
`G_IS_OBJECT (object)' failed
(ekiga:10956): GLib-GObject-WARNING **: value "TRUE" of type
`gboolean' is invalid or out of range for property `visible' of type
`gboolean'
(ekiga:10956): Gtk-CRITICAL **: gtk_settings_get_for_screen: assertion
`GDK_IS_SCREEN (screen)' failed
(ekiga:10956): GLib-GObject-CRITICAL **: g_object_get: assertion
`G_IS_OBJECT (object)' failed
(ekiga:10956): Gtk-CRITICAL **: gtk_settings_get_for_screen: assertion
`GDK_IS_SCREEN (screen)' failed
(ekiga:10956): GLib-GObject-CRITICAL **: g_object_get: assertion
`G_IS_OBJECT (object)' failed
(ekiga:10956): Gtk-CRITICAL **: gtk_settings_get_for_screen: assertion
`GDK_IS_SCREEN (screen)' failed
(ekiga:10956): GLib-GObject-CRITICAL **: g_object_get: assertion
`G_IS_OBJECT (object)' failed
(ekiga:10956): Gtk-CRITICAL **: gtk_settings_get_for_screen: assertion
`GDK_IS_SCREEN (screen)' failed
(ekiga:10956): GLib-GObject-CRITICAL **: g_object_get: assertion
`G_IS_OBJECT (object)' failed
(ekiga:10956): Gtk-CRITICAL **: gtk_settings_get_for_screen: assertion
`GDK_IS_SCREEN (screen)' failed
(ekiga:10956): GLib-GObject-CRITICAL **: g_object_get: assertion
`G_IS_OBJECT (object)' failed
(ekiga:10956): GLib-GObject-WARNING **: invalid (NULL) pointer instance
(ekiga:10956): GLib-GObject-CRITICAL **: g_signal_connect_data:
assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
(ekiga:10956): Gtk-CRITICAL **: gtk_settings_get_for_screen: assertion
`GDK_IS_SCREEN (screen)' failed
(ekiga:10956): GLib-GObject-CRITICAL **: g_object_get: assertion
`G_IS_OBJECT (object)' failed
(ekiga:10956): GLib-GObject-WARNING **: value "TRUE" of type
`gboolean' is invalid or out of range for property `visible' of type
`gboolean'
(ekiga:10956): Gtk-CRITICAL **: gtk_settings_get_for_screen: assertion
`GDK_IS_SCREEN (screen)' failed
(ekiga:10956): GLib-GObject-CRITICAL **: g_object_get: assertion
`G_IS_OBJECT (object)' failed
(ekiga:10956): Gtk-CRITICAL **: gtk_settings_get_for_screen: assertion
`GDK_IS_SCREEN (screen)' failed
(ekiga:10956): GLib-GObject-CRITICAL **: g_object_get: assertion
`G_IS_OBJECT (object)' failed
(ekiga:10956): Gtk-CRITICAL **: gtk_settings_get_for_screen: assertion
`GDK_IS_SCREEN (screen)' failed
(ekiga:10956): GLib-GObject-CRITICAL **: g_object_get: assertion
`G_IS_OBJECT (object)' failed
(ekiga:10956): Gtk-CRITICAL **: gtk_settings_get_for_screen: assertion
`GDK_IS_SCREEN (screen)' failed
(ekiga:10956): GLib-GObject-CRITICAL **: g_object_get: assertion
`G_IS_OBJECT (object)' failed
(ekiga:10956): Gtk-CRITICAL **: gtk_settings_get_for_screen: assertion
`GDK_IS_SCREEN (screen)' failed
(ekiga:10956): GLib-GObject-CRITICAL **: g_object_get: assertion
`G_IS_OBJECT (object)' failed
(ekiga:10956): Gtk-CRITICAL **: gtk_settings_get_for_screen: assertion
`GDK_IS_SCREEN (screen)' failed
(ekiga:10956): GLib-GObject-CRITICAL **: g_object_get: assertion
`G_IS_OBJECT (object)' failed
(ekiga:10956): Gtk-CRITICAL **: gtk_settings_get_for_screen: assertion
`GDK_IS_SCREEN (screen)' failed
(ekiga:10956): GLib-GObject-CRITICAL **: g_object_get: assertion
`G_IS_OBJECT (object)' failed
(ekiga:10956): Gtk-CRITICAL **: gtk_settings_get_for_screen: assertion
`GDK_IS_SCREEN (screen)' failed
(ekiga:10956): GLib-GObject-CRITICAL **: g_object_get: assertion
`G_IS_OBJECT (object)' failed
(ekiga:10956): Gtk-CRITICAL **: gtk_settings_get_for_screen: assertion
`GDK_IS_SCREEN (screen)' failed
(ekiga:10956): GLib-GObject-CRITICAL **: g_object_get: assertion
`G_IS_OBJECT (object)' failed
(ekiga:10956): Gtk-CRITICAL **: gtk_settings_get_for_screen: assertion
`GDK_IS_SCREEN (screen)' failed
(ekiga:10956): GLib-GObject-CRITICAL **: g_object_get: assertion
`G_IS_OBJECT (object)' failed
(ekiga:10956): Gtk-CRITICAL **: gtk_settings_get_for_screen: assertion
`GDK_IS_SCREEN (screen)' failed
(ekiga:10956): GLib-GObject-CRITICAL **: g_object_get: assertion
`G_IS_OBJECT (object)' failed
(ekiga:10956): Gtk-CRITICAL **: gtk_settings_get_for_screen: assertion
`GDK_IS_SCREEN (screen)' failed
(ekiga:10956): GLib-GObject-CRITICAL **: g_object_get: assertion
`G_IS_OBJECT (object)' failed
(ekiga:10956): Gtk-CRITICAL **: gtk_settings_get_for_screen: assertion
`GDK_IS_SCREEN (screen)' failed
(ekiga:10956): GLib-GObject-CRITICAL **: g_object_get: assertion
`G_IS_OBJECT (object)' failed
(ekiga:10956): Gtk-CRITICAL **: gtk_settings_get_for_screen: assertion
`GDK_IS_SCREEN (screen)' failed
(ekiga:10956): GLib-GObject-CRITICAL **: g_object_get: assertion
`G_IS_OBJECT (object)' failed
(ekiga:10956): Gtk-CRITICAL **: gtk_settings_get_for_screen: assertion
`GDK_IS_SCREEN (screen)' failed
(ekiga:10956): GLib-GObject-CRITICAL **: g_object_get: assertion
`G_IS_OBJECT (object)' failed
(ekiga:10956): Gtk-CRITICAL **: gtk_settings_get_for_screen: assertion
`GDK_IS_SCREEN (screen)' failed
(ekiga:10956): GLib-GObject-CRITICAL **: g_object_get: assertion
`G_IS_OBJECT (object)' failed
(ekiga:10956): Gtk-CRITICAL **: gtk_settings_get_for_screen: assertion
`GDK_IS_SCREEN (screen)' failed
(ekiga:10956): GLib-GObject-CRITICAL **: g_object_get: assertion
`G_IS_OBJECT (object)' failed
(ekiga:10956): Gtk-CRITICAL **: gtk_settings_get_for_screen: assertion
`GDK_IS_SCREEN (screen)' failed
(ekiga:10956): GLib-GObject-CRITICAL **: g_object_get: assertion
`G_IS_OBJECT (object)' failed
(ekiga:10956): Gtk-CRITICAL **: gtk_settings_get_for_screen: assertion
`GDK_IS_SCREEN (screen)' failed
(ekiga:10956): GLib-GObject-CRITICAL **: g_object_get: assertion
`G_IS_OBJECT (object)' failed
(ekiga:10956): Gtk-CRITICAL **: gtk_settings_get_for_screen: assertion
`GDK_IS_SCREEN (screen)' failed
(ekiga:10956): GLib-GObject-WARNING **: invalid (NULL) pointer instance
(ekiga:10956): GLib-GObject-CRITICAL **: g_signal_connect_data:
assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
thanks,
rohit
_______________________________________________
ekiga-devel-list mailing list
ekiga-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/ekiga-devel-list
--
Thierry Simonnet
ESIEE-Paris
Par respect pour l’environnement, n’imprimez ce mail que si nécessaire
#!/usr/bin/make -f
SILENT := 0
DEBUG := 0
MAKEFLAGS:=
MAKEOPTS:=$(MAKEFLAGS)
MAKE_LIB_OPTS:=$(MAKEFLAGS)
BUILDROOT := $(CURDIR)
TARGETDIR := $(BUILDROOT)/dist
SRCDIR := $(BUILDROOT)/src
INCLUDEDIR:=$(BUILDROOT)/include
LIBDIR := $(BUILDROOT)/lib
BINDIR := $(BUILDROOT)/bin
export PKG_CONFIG_LIBDIR:=$(LIBDIR)
export DEB_BUILD_GNU_TYPE:=$(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
export DEB_HOST_GNU_TYPE:="i586-pc-mingw32"
WGET := wget -nv -T 60 -N
HOST_TOOL_PREFIX:=i586-mingw32msvc
REALCC:=$(HOST_TOOL_PREFIX)-gcc
REALCXX:=$(HOST_TOOL_PREFIX)-g++
CONCURRENCY:=1
MACH_FLAGS:=-march=pentium-mmx
OPTI_FLAGS:=-O3 -fomit-frame-pointer
# IX86_TYPE according to Intel
# 0 : 8086/88, 2 = 80286, 3 = 80386
# 4 = 80486, 5 = Pentium(R) Processor, 6 = PentiumPro(R) Processor
# 7 or higher = Processor beyond the PentiumPro6(R) Processor
IX86_TYPE:=5
ifeq ($(DEBUG),1)
export CC=$(REALCC) -mms-bitfields -gstabs
export CXX=$(REALCXX) -gstabs
else
export CC=$(REALCC) -mms-bitfields
export CXX=$(REALCXX) -mms-bitfields
endif
export LD:=$(HOST_TOOL_PREFIX)-ld
export NM:=$(HOST_TOOL_PREFIX)-nm
export AR:=$(HOST_TOOL_PREFIX)-ar
export RANLIB:=$(HOST_TOOL_PREFIX)-ranlib
export DLLTOOL:=$(HOST_TOOL_PREFIX)-dlltool
export DLLWRAP:=$(HOST_TOOL_PREFIX)-dllwrap
export OBJDUMP:=$(HOST_TOOL_PREFIX)-objdump
export RC:=$(HOST_TOOL_PREFIX)-windres
export STRIP:=$(HOST_TOOL_PREFIX)-strip
export AS:=$(HOST_TOOL_PREFIX)-as
export CFLAGS:=-I$(INCLUDEDIR) $(MACH_FLAGS) -DPTRACING
export CXXFLAGS:=-I$(INCLUDEDIR) $(MACH_FLAGS) -DPTRACING
export LDFLAGS:=-L$(LIBDIR) $(MACH_FLAGS)
export PKG_CONFIG_PATH:=$(LIBDIR)/pkgconfig
export PATH:=$(BINDIR):$(PATH)
export LDD:=$(BUILDROOT)/$(HOST_TOOL_PREFIX)-ldd.sh
GIT_EKIGA_REV = reset --hard HEAD
#GIT_EKIGA_REV = checkout -b gnome-2-26 origin/gnome-2-26
EKIGA_URL = git://git.gnome.org/ekiga
EKIGA_ARCHIVE := ekiga
EKIGA_DIR = $(BUILDROOT)/ekiga
EKIGA_PREFIX:= $(TARGETDIR)/Ekiga
EKIGA_WIN32_DIR := $(CURDIR)
EKIGA_WIN32_DIFF_DIR := $(EKIGA_WIN32_DIR)/diff
EKIGA_INSTALLER_DIR := $(BUILDROOT)/nsisinstaller
EKIGA_VER := $(strip $(shell grep AC_INIT $(SRCDIR)/$(EKIGA_ARCHIVE)/configure.ac | awk 'BEGIN { FS = "," } ; { print $$2 }'))
EKIGA_REV := $(strip $(shell (cd $(SRCDIR)/$(EKIGA_ARCHIVE); git describe | awk 'BEGIN { FS = "-" } ; { print $$2 "_" $$3 }' )))
ifneq ($(EKIGA_REV),)
EKIGA_VER := $(EKIGA_VER)-git-$(EKIGA_REV)
endif
EKIGA_INSTALLER := ekiga-setup-$(EKIGA_VER).exe
OPAL_VER:= 3.7.x
OPAL_REV:= HEAD
#OPAL_URL:= https://opalvoip.svn.sourceforge.net/svnroot/opalvoip/opal/tags/v3_6_6
#OPAL_URL:= https://opalvoip.svn.sourceforge.net/svnroot/opalvoip/opal/branches/v3_6
OPAL_URL:= https://opalvoip.svn.sourceforge.net/svnroot/opalvoip/opal/trunk
OPAL_ARCHIVE := opal
OPAL_DIR:= $(BUILDROOT)/opal
ifeq ($(DEBUG),1)
OPAL_LIB := libopal_d_s.a
else
OPAL_LIB := libopal_s.a
endif
PTLIB_VER:= 2.7.1
PTLIB_REV:= HEAD
#PTLIB_URL:= https://opalvoip.svn.sourceforge.net/svnroot/opalvoip/ptlib/tags/v2_6_5
#PTLIB_URL:= https://opalvoip.svn.sourceforge.net/svnroot/opalvoip/ptlib/branches/v2_6
PTLIB_URL:= https://opalvoip.svn.sourceforge.net/svnroot/opalvoip/ptlib/trunk
PTLIB_DIR:= $(BUILDROOT)/ptlib
PTLIB_ARCHIVE := ptlib
ifeq ($(DEBUG),1)
PTLIB_LIB := libpt_d_s.a
else
PTLIB_LIB := libpt_s.a
endif
LOUDMOUTH_VER := 1.4.3
LOUDMOUTH_DIR := $(BUILDROOT)/loudmouth
LOUDMOUTH_ARCHIVE := loudmouth-$(LOUDMOUTH_VER)-win.zip
LOUDMOUTH_URL := http://loudmouth-dev.googlegroups.com/web/
OPENLDAP_VER := 2.4.17
OPENLDAP_DIR := $(BUILDROOT)/openldap-$(OPENLDAP_VER)
OPENLDAP_ARCHIVE := openldap-$(OPENLDAP_VER).tgz
#OPENLDAP_URL := http://www.openldap.org/software/download/OpenLDAP/openldap-release
OPENLDAP_URL := http://mirror.switch.ch/ftp/pool/3/mirror/OpenLDAP/openldap-release/
LIBSASL2_VER := 2.1.22
LIBSASL2_DIR := $(BUILDROOT)/cyrus-sasl-$(LIBSASL2_VER)
LIBSASL2_ARCHIVE := cyrus-sasl-$(LIBSASL2_VER).zip
LIBSASL2_URL := http://developer.pidgin.im/static/win32
OGG_VER := 1.1.4
OGG_DIR := $(BUILDROOT)/libogg-$(OGG_VER)
OGG_ARCHIVE := libogg-$(OGG_VER).tar.gz
OGG_URL := http://downloads.xiph.org/releases/ogg
SPEEX_VER := 1.2rc1
SPEEX_DIR := $(BUILDROOT)/speex-$(SPEEX_VER)
SPEEX_ARCHIVE := speex-$(SPEEX_VER).tar.gz
SPEEX_URL := http://downloads.us.xiph.org/releases/speex
GTK_VER := 2.16.2-1
GTK_URL := http://ftp.gnome.org/pub/gnome/binaries/win32/gtk+/2.16
GTK_ARCHIVE := gtk+-dev_$(GTK_VER)_win32.zip
GTK_BIN_VER := 2.16.2
GTK_INSTALLER_URL := http://downloads.sourceforge.net/gtk-win
GTK_BIN_EXE := gtk2-runtime-2.16.2-2009-06-02-ash.exe
GLIB_VER := 2.20.4-1
GLIB_URL := http://ftp.gnome.org/pub/gnome/binaries/win32/glib/2.20
GLIB_ARCHIVE := glib-dev_$(GLIB_VER)_win32.zip
ATK_VER := 1.26.0-1
ATK_URL := http://ftp.gnome.org/pub/gnome/binaries/win32/atk/1.26
ATK_ARCHIVE := atk-dev_$(ATK_VER)_win32.zip
CAIRO_VER := 1.8.6-1
CAIRO_URL := http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies
CAIRO_ARCHIVE := cairo-dev_$(CAIRO_VER)_win32.zip
PANGO_VER := 1.24.5-2
PANGO_URL := http://ftp.gnome.org/pub/gnome/binaries/win32/pango/1.24
PANGO_ARCHIVE := pango-dev_$(PANGO_VER)_win32.zip
XML2_VER := 2.7.3
XML2_DIR := libxml2-$(XML2_VER)
XML2_URL := ftp://xmlsoft.org/libxml2
XML2_ARCHIVE := libxml2-$(XML2_VER).tar.gz
LIBPNG_VER := 1.2.37
GNUWIN32_URL := http://downloads.sourceforge.net/gnuwin32
EXPAT_VER = 2.0.1
EXPAT_DIR = $(BUILDROOT)/expat-$(EXPAT_VER)
EXPAT_ARCHIVE := expat-$(EXPAT_VER).tar.gz
EXPAT_URL := http://kent.dl.sourceforge.net/sourceforge/expat
LIBINTL_VER := 0.14.4
REGEX_DIR := $(BUILDROOT)/regex
REGEX_ARCHIVE := regex
GIMP_URL := http://www.gimp.org/~tml/gimp/win32
GETTEXT_VER := 0.17-1
GETTEXT_URL :=http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies
GETTEXT_ARCHIVE := gettext-runtime-dev-$(GETTEXT_VER).zip
ICONV_VER := 1.9.1
ICONV_ARCHIVE := libiconv-$(ICONV_VER).bin.woe32.zip
GIT_FFMPEG_REV := reset --hard d962d69f2ef1bcd3b4
GIT_FFMPEG_REV2 := reset --hard 8c5952c02bfad4bfa6
FFMPEG_URL := git://git.ffmpeg.org/ffmpeg/
FFMPEG_URL2 := git://git.ffmpeg.org/libswscale/
FFMPEG_ARCHIVE := ffmpeg
FFMPEG_ARCHIVE2 := ffmpeg/libswscale
FFMPEG_DIR := $(BUILDROOT)/ffmpeg
FFMPEG_DIR2 := $(BUILDROOT)/ffmpeg/libswscale
GIT_X264_REV := reset --hard d2e1e1c35c43ea9c90c9211be
X264_URL := git://git.videolan.org/x264.git
X264_DIR := $(BUILDROOT)/x264
X264_ARCHIVE := x264
GIT_CELT_REV := reset --hard HEAD
CELT_URL := git://git.xiph.org/celt.git
CELT_DIR := $(BUILDROOT)/celt
CELT_ARCHIVE := celt
THEORA_VER := 16013
THEORA_URL := http://svn.xiph.org/trunk/theora
THEORA_DIR := $(BUILDROOT)/theora
THEORA_ARCHIVE := theora
NSIS_VER := 2.45
NSIS_URL := http://downloads.sourceforge.net/nsis
NSISPROCESSES_URL := http://nsis.sourceforge.net/mediawiki/images/f/f3/
NSISSYTEM_DIR := /usr/share/nsis/Contrib/Modern\ UI
NSISPLUGIN_DIR := $(BUILDROOT)/nsisplugins
LN:=ln
RM:=rm
CP:=cp
MV:=mv
SVN:=svn
GIT:=git
ACLOCAL:=aclocal-1.10
DOC_LINGUAS=bg de es fr pt_BR sv uk
ifneq (,$(CONCURRENCY))
MAKEOPTS+=-j$(CONCURRENCY)
endif
confflags:=--prefix=$(BUILDROOT) --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE)
confptlib:=--prefix=$(BUILDROOT) --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) \
--enable-vfw --enable-vidfile --with-directx-includedir=$(EKIGA_DIR)/win32/directx \
--disable-qos --disable-vidfile --disable-alsa --disable-esd --disable-oss --disable-sunaudio \
--disable-v4l --disable-v4l2 --disable-bsdvideo --disable-avc --disable-dc
confopal :=--prefix=$(BUILDROOT) --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) \
--with-ffmpeg-dir=$(FFMPEG_DIR) --disable-ffmpeg-h263
confekiga:= $(confflags) \
--with-directx-dir=$(EKIGA_DIR)/win32/directx --prefix=$(EKIGA_PREFIX) \
--bindir=$(EKIGA_PREFIX) --datadir=$(EKIGA_PREFIX) \
--sysconfdir=$(EKIGA_PREFIX) --libdir=$(EKIGA_PREFIX) --disable-gnome \
--disable-dbus --disable-avahi --disable-xv --with-ldap-dir=$(OPENLDAP_DIR) \
--with-libsasl2-dir=$(LIBSASL2_DIR) --with-boost=$(BUILDROOT) \
CFLAGS="$(CFLAGS) -mwindows" CXXFLAGS="$(CXXFLAGS) -mwindows"
confffmpeg:=--cross-prefix=i586-mingw32msvc- --enable-shared --enable-memalign-hack \
--enable-cross-compile --enable-w32threads --arch=i686 --target-os=mingw32 \
--disable-ffserver --disable-ffmpeg --disable-ffplay \
--disable-parsers --enable-parser=h264 --enable-parser=mpeg4video --enable-parser=h263 \
--disable-decoders --enable-decoder=h264 --enable-decoder=mpeg4 --enable-decoder=h263 \
--disable-muxers --enable-muxer=h264 --enable-muxer=mpeg4 --enable-muxer=h263 \
--disable-encoders --enable-encoder=mpeg4 --enable-encoder=h263 \
--disable-protocols --disable-bsfs --disable-ffplay --prefix=$(BUILDROOT) \
--libdir=$(LIBDIR) --extra-ldflags=-Wl,-static
confx264:= --disable-avis-input --prefix=$(BUILDROOT) --host=$(DEB_HOST_GNU_TYPE)
confcelt:= $(confflags) --disable-oggtest
conftheora:=--host=$(DEB_HOST_GNU_TYPE) --prefix=$(BUILDROOT) --disable-vorbistest --disable-sdltest --disable-examples
all: binaries $(TARGETDIR)/$(EKIGA_INSTALLER)
@echo "Built on $(shell date)"
update-sources::
@echo "Updating on $(shell date)"
update: update-sources
binaries:
echo Checking prerequisites...
hash $(REALCC) $(REALCXX) $(LD) $(NM) $(AR) $(RANLIB) $(DLLTOOL) $(DLLWRAP) $(OBJDUMP) $(RC) $(AS)||(echo You need to install mingw32;exit 1)
hash tar unzip zip wget $(ACLOCAL) autoheader libtoolize automake-1.10 autoconf pkg-config gnome-autogen.sh bison gdk-pixbuf-csource||(echo we need more binaries ;exit 1)
[ -f /usr/share/gnome-doc-utils/gnome-doc-utils.make ]||(echo gnome-doc-tools not installed;exit 1)
[ -f /usr/lib/pkgconfig/gconf-2.0.pc ]||(echo libgconf2-dev not installed;exit 1)
[ -f /usr/lib/pkgconfig/avahi-glib.pc ]||(echo libavahi-glib-dev not installed;exit 1)
[ -f /usr/lib/pkgconfig/avahi-client.pc ]||(echo libavahi-client-dev not installed;exit 1)
hash makensis||(echo nsis not installed;exit1)
hash xmlto||(echo xmlto not installed;exit1)
# [ $(BUILDROOT) = $(CURDIR) ]||(echo You are supposed to run this as Makefile in $(BUILDROOT);exit 1)
mkdir -p $(INCLUDEDIR) $(LIBDIR)/pkgconfig $(SRCDIR) $(BINDIR)
$(RM) -f $(BINDIR)/cygpath
ln -s /bin/true $(BINDIR)/cygpath
touch $@
### REGEX
update-sources::
echo "--- Getting libregex..."
mkdir -p $(SRCDIR)/$(REGEX_ARCHIVE)
cd $(SRCDIR)/$(REGEX_ARCHIVE); \
for i in regex.c regexec.c regex.h regex_internal.c regex_internal.h regcomp.c alloca_.h alloca.c strcase.h localcharset.c localcharset.h;do \
$(WGET) http://cvs.savannah.nongnu.org/viewcvs/*checkout*/gnulib/gnulib/lib/$$i ;\
done
$(REGEX_DIR)/regex.h: $(SRCDIR)/$(REGEX_ARCHIVE)
$(RM) -rf $(REGEX_DIR)
mkdir -p $(REGEX_DIR)
$(CP) $(SRCDIR)/$(REGEX_ARCHIVE)/* $(REGEX_DIR)
$(MV) $(REGEX_DIR)/alloca_.h $(REGEX_DIR)/alloca.h
echo '//' >> $(REGEX_DIR)/config.h
touch $@
$(LIBDIR)/libregex.a: binaries $(REGEX_DIR)/regex.h
cd $(REGEX_DIR) ;\
$(CC) -I$(INCLUDEDIR) -I. -c regex.c ;\
$(CC) -I$(INCLUDEDIR) -I. -c alloca.c ;\
$(CC) -I$(INCLUDEDIR) -I. -DLIBDIR=$(INCLUDEDIR) -c localcharset.c ;\
$(AR) r libregex.a regex.o alloca.o localcharset.o
$(CP) $(REGEX_DIR)/libregex.a $(LIBDIR)
$(CP) $(REGEX_DIR)/regex.h $(INCLUDEDIR)
$(CP) $(REGEX_DIR)/alloca.h $(INCLUDEDIR)
$(CP) $(REGEX_DIR)/localcharset.h $(INCLUDEDIR)
touch $@
### expat
update-sources::
echo --- Getting EXPAT ...
$(WGET) -P src $(EXPAT_URL)/$(EXPAT_ARCHIVE)
$(EXPAT_DIR)/config.status: $(SRCDIR)/$(EXPAT_ARCHIVE)
tar xfz $(SRCDIR)/$(EXPAT_ARCHIVE)
(cd $(EXPAT_DIR); ./configure $(confflags))
touch $@
$(INCLUDEDIR)/expat.h:
install -m 644 $(EXPAT_DIR)/lib/expat.h $(INCLUDEDIR)/
touch $@
$(LIBDIR)/libexpat.a: $(EXPAT_DIR)/config.status $(INCLUDEDIR)/expat.h
$(MAKE) $(MAKEOPTS) -C $(EXPAT_DIR)
$(MAKE) $(MAKEOPTS) -C $(EXPAT_DIR) install
touch $@
### OPENLDAP
update-sources::
echo --- Getting OpenLDAP...
$(WGET) -P $(SRCDIR) $(OPENLDAP_URL)/$(OPENLDAP_ARCHIVE)
$(OPENLDAP_DIR)/configure: $(LIBDIR)/libregex.a $(SRCDIR)/$(OPENLDAP_ARCHIVE)
rm -f $(LIBDIR)/libldap.dll
tar xfz $(SRCDIR)/$(OPENLDAP_ARCHIVE) -C $(BUILDROOT)
sed -i -e 's#windres#$(RC)#g' $(OPENLDAP_DIR)/libraries/liblutil/Makefile.in
touch $@
$(OPENLDAP_DIR)/config.status: binaries $(OPENLDAP_DIR)/configure
#-$(MAKE) -C $(OPENLDAP_DIR) clean
rm -f $(LIBDIR)/libldap.dll
ln -sf $(INCLUDEDIR)/regex.h $(OPENLDAP_DIR)/include/
cd $(OPENLDAP_DIR);./configure --with-cyrus-sasl=no --enable-bdb=no --enable-hdb=no $(confflags)
$(MAKE) $(MAKEOPTS) -C $(OPENLDAP_DIR) depend
touch $@
$(LIBDIR)/libldap.dll: binaries $(OPENLDAP_DIR)/config.status
$(MAKE) $(MAKE_LIB_OPTS) -C $(OPENLDAP_DIR)/libraries/liblutil
$(CP) -f $(OPENLDAP_DIR)/libraries/liblutil/liblutil.a $(LIBDIR)
$(MAKE) $(MAKE_LIB_OPTS) -C $(OPENLDAP_DIR)/libraries/liblber all install
$(MAKE) $(MAKE_LIB_OPTS) -C $(OPENLDAP_DIR)/include install
$(MAKE) $(MAKE_LIB_OPTS) -C $(OPENLDAP_DIR)/libraries/libldap MOD_LIBS="-llutil" all install
touch $@
### libsasl2
update-sources::
echo --- Getting libsasl2 ...
$(WGET) -P $(SRCDIR) $(LIBSASL2_URL)/$(LIBSASL2_ARCHIVE)
$(LIBDIR)/libsasl2.a: $(SRCDIR)/$(LIBSASL2_ARCHIVE)
rm -f $(LIBDIR)/libsasl.a
rm -rf $(LIBSASL2_DIR)
unzip -u $(SRCDIR)/$(LIBSASL2_ARCHIVE) -d $(BUILDROOT)
cp $(LIBSASL2_DIR)/lib/libsasl.lib $(LIBDIR)/libsasl2.a
### PTLib
update-ptlib:
echo --- Getting PTLib $(PTLIB_REV) ...
$(SVN) co $(PTLIB_URL) $(SRCDIR)/$(PTLIB_ARCHIVE) -r $(PTLIB_REV)
$(PTLIB_DIR)/configure: binaries $(LIBDIR)/libldap.dll $(LIBDIR)/libogg.a $(LIBDIR)/libspeex.a $(SRCDIR)/$(PTLIB_ARCHIVE) $(LIBDIR)/libexpat.a
#$(PTLIB_DIR)/configure: binaries $(LIBDIR)/libldap.dll $(LIBDIR)/libogg.a $(LIBDIR)/libspeex.a $(SRCDIR)/$(PTLIB_ARCHIVE) $(LIBDIR)/libexpat.a $(EKIGA_DIR)/win32/directx
rm -rf $(PTLIB_DIR) $(LIBDIR)/$(PTLIB_LIB) $(INCLUDEDIR)/ptclib $(INCLUDEDIR)/ptlib
$(CP) -r $(SRCDIR)/$(PTLIB_ARCHIVE) $(PTLIB_DIR)
(cd $(PTLIB_DIR)/; patch -p1 < $(EKIGA_WIN32_DIFF_DIR)/ptlib_vistastuck.diff )
touch $@
$(PTLIB_DIR)/config.status: binaries $(PTLIB_DIR)/configure
rm -f $(LIBDIR)/$(PTLIB_LIB)
(cd $(PTLIB_DIR)/; ./configure $(confptlib) )
$(LIBDIR)/$(PTLIB_LIB): binaries $(PTLIB_DIR)/config.status
ifeq ($(DEBUG),1)
$(MAKE) $(MAKEOPTS) DEBUG=1 debug -C $(PTLIB_DIR)
$(MAKE) DEBUG=1 -C $(PTLIB_DIR) install
else
$(MAKE) $(MAKEOPTS) -C $(PTLIB_DIR)
$(MAKE) -C $(PTLIB_DIR) install
endif
### libogg
update-sources::
echo --- Getting Ogg ...
$(WGET) -P $(SRCDIR) $(OGG_URL)/$(OGG_ARCHIVE)
$(OGG_DIR)/config.status: binaries $(SRCDIR)/$(OGG_ARCHIVE)
rm -f $(LIBDIR)/libogg.a
tar xfz $(SRCDIR)/$(OGG_ARCHIVE) -C $(BUILDROOT)
(cd $(OGG_DIR)/;./configure $(confflags) \
)
$(LIBDIR)/libogg.a: binaries $(OGG_DIR)/config.status
rm -f $(LIBDIR)/libogg.a
$(MAKE) $(MAKEOPTS) -C $(OGG_DIR)
$(MAKE) -C $(OGG_DIR) install
### libspeex
update-sources::
echo --- Getting Vorbis ...
$(WGET) -P $(SRCDIR) $(SPEEX_URL)/$(SPEEX_ARCHIVE)
$(SPEEX_DIR)/config.status: binaries $(SRCDIR)/$(SPEEX_ARCHIVE)
rm -f $(LIBDIR)/libspeex.a
tar xfz $(SRCDIR)/$(SPEEX_ARCHIVE) -C $(BUILDROOT)
(cd $(SPEEX_DIR)/;LDFLAGS="$$LDFLAGS -no-undefined" ./configure $(confflags) \
)
$(LIBDIR)/libspeex.a: binaries $(SPEEX_DIR)/config.status
rm -f $(LIBDIR)/libspeex.a
$(MAKE) $(MAKE_LIB_OPTS) -C $(SPEEX_DIR)
$(MAKE) -C $(SPEEX_DIR) install
### ffmpeg
ifeq ($(wildcard $(SRCDIR)/$(FFMPEG_ARCHIVE)), )
update-sources::
echo --- Getting $(FFMPEG_ARCHIVE) master...
$(GIT) clone $(FFMPEG_URL) $(SRCDIR)/$(FFMPEG_ARCHIVE)
else
update-sources::
echo --- Updating $(FFMPEG_ARCHIVE) master...
(cd $(SRCDIR)/$(FFMPEG_ARCHIVE); $(GIT) pull )
endif
ifeq ($(wildcard $(SRCDIR)/$(FFMPEG_ARCHIVE2)), )
update-sources::
echo --- Getting $(FFMPEG_ARCHIVE2) master...
(cd $(SRCDIR)/$(FFMPEG_ARCHIVE); $(GIT) clone $(FFMPEG_URL2) )
else
update-sources::
echo --- Updating $(FFMPEG_ARCHIVE2) master...
(cd $(SRCDIR)/$(FFMPEG_ARCHIVE2); $(GIT) pull )
endif
$(FFMPEG_DIR)/config.status: $(SRCDIR)/$(FFMPEG_ARCHIVE)
rm -rf $(FFMPEG_DIR)
$(CP) -r $(SRCDIR)/$(FFMPEG_ARCHIVE) $(FFMPEG_DIR)
(cd $(FFMPEG_DIR)/; git $(GIT_FFMPEG_REV) )
(cd $(FFMPEG_DIR2)/; git $(GIT_FFMPEG_REV2) )
(cd $(FFMPEG_DIR)/; \
./configure $(confffmpeg) \
)
touch $@
$(BINDIR)/avcodec.dll: $(FFMPEG_DIR)/config.status
$(MAKE) $(MAKE_LIB_OPTS) -C $(FFMPEG_DIR)/libavutil
$(MAKE) $(MAKE_LIB_OPTS) -C $(FFMPEG_DIR)/libavcodec
$(MAKE) $(MAKE_LIB_OPTS) -C $(FFMPEG_DIR)/libavformat
$(MAKE) $(MAKE_LIB_OPTS) -C $(FFMPEG_DIR)/libavdevice
$(MAKE) $(MAKE_LIB_OPTS) -C $(FFMPEG_DIR)
$(MAKE) -C $(FFMPEG_DIR) install
touch $@
### x264
ifeq ($(wildcard $(SRCDIR)/$(X264_ARCHIVE)), )
update-sources::
echo --- Getting x264 ---
$(GIT) clone $(X264_URL) $(SRCDIR)/$(X264_ARCHIVE)
touch $(SRCDIR)/$(X264_ARCHIVE)
else
update-sources::
echo --- Updating x264 ---
(cd $(SRCDIR)/$(X264_ARCHIVE); $(GIT) pull )
touch $(SRCDIR)/$(X264_ARCHIVE)
endif
$(X264_DIR)/config.status: $(SRCDIR)/$(X264_ARCHIVE)
rm -rf $(X264_DIR)
$(CP) -r $(SRCDIR)/$(X264_ARCHIVE) $(X264_DIR)
(cd $(X264_DIR)/; git $(GIT_X264_REV) )
(cd $(X264_DIR)/; \
CC=$(REALCC) ./configure $(confx264); \
sed -i -e 's#ranlib#$(RANLIB)#g' $(X264_DIR)/Makefile; \
sed -i -e 's#strip#$(STRIP)#g' $(X264_DIR)/Makefile; \
sed -i -e 's#ar #$(AR) #g' $(X264_DIR)/Makefile )
touch $@
$(LIBDIR)/libx264.a: $(X264_DIR)/config.status
$(MAKE) $(MAKE_LIB_OPTS) -C $(X264_DIR)
$(MAKE) -C $(X264_DIR) install
touch $@
### celt
ifeq ($(wildcard $(SRCDIR)/$(CELT_ARCHIVE)), )
update-sources::
echo --- Getting CELT ---
$(GIT) clone $(CELT_URL) $(SRCDIR)/$(CELT_ARCHIVE)
touch $(SRCDIR)/$(CELT_ARCHIVE)
else
update-sources::
echo --- Updating CELT ---
(cd $(SRCDIR)/$(CELT_ARCHIVE); $(GIT) pull )
touch $(SRCDIR)/$(CELT_ARCHIVE)
endif
$(CELT_DIR)/config.status: $(SRCDIR)/$(CELT_ARCHIVE) $(LIBDIR)/libogg.a
rm -rf $(CELT_DIR) $(INCLUDEDIR)/celt
$(CP) -r $(SRCDIR)/$(CELT_ARCHIVE) $(CELT_DIR)
(cd $(CELT_DIR)/; git $(GIT_CELT_REV) )
(cd $(CELT_DIR)/; ACLOCAL_FLAGS="-I $(BUILDROOT)/share/aclocal"; ./autogen.sh ; \
./configure $(confcelt) )
$(LIBDIR)/libcelt.a: $(CELT_DIR)/config.status
$(MAKE) $(MAKE_LIB_OPTS) -C $(CELT_DIR)
$(MAKE) -C $(CELT_DIR) install
### theora
update-sources::
echo --- Getting theora ---
$(SVN) co $(THEORA_URL) $(SRCDIR)/$(THEORA_ARCHIVE) -r $(THEORA_VER)
$(THEORA_DIR)/config.status: $(SRCDIR)/$(THEORA_ARCHIVE) $(LIBDIR)/libogg.a
rm -rf $(THEORA_DIR)
$(CP) -r $(SRCDIR)/$(THEORA_ARCHIVE) $(THEORA_DIR)
(cd $(THEORA_DIR)/; \
CC=$(REALCC) LD=$(LD) AR=$(AR) RANLIB=$(RANLIB) ./autogen.sh $(conftheora) )
touch $@
$(LIBDIR)/libtheora.a: $(THEORA_DIR)/config.status
$(MAKE) $(MAKE_LIB_OPTS) -C $(THEORA_DIR)
$(MAKE) -C $(THEORA_DIR) install
sed -i -e "s#library_names=''#library_names='libtheora\.a'#g" $(LIBDIR)/libtheora.la
touch $@
### OPAL
update-opal:
echo --- Getting OPAL $(OPAL_REV)...
$(SVN) co $(OPAL_URL) $(SRCDIR)/$(OPAL_ARCHIVE) -r $(OPAL_REV)
$(OPAL_DIR)/configure: binaries $(LIBDIR)/libogg.a $(LIBDIR)/libspeex.a $(LIBDIR)/$(PTLIB_LIB) $(SRCDIR)/$(OPAL_ARCHIVE) $(BINDIR)/avcodec.dll $(LIBDIR)/libx264.a $(LIBDIR)/libtheora.a $(LIBDIR)/libcelt.a
rm -rf $(OPAL_DIR) $(LIBDIR)/$(OPAL_LIB) $(INCLUDEDIR)/opal
$(CP) -r $(SRCDIR)/$(OPAL_ARCHIVE) $(OPAL_DIR)
$(OPAL_DIR)/config.status: binaries $(OPAL_DIR)/configure
rm -f $(LIBDIR)/$(OPAL_LIB)
ifeq ($(DEBUG),1)
(cd $(OPAL_DIR)/; ./configure $(confopal) --enable-debug )
else
(cd $(OPAL_DIR)/; ./configure $(confopal) )
endif
$(LIBDIR)/$(OPAL_LIB): binaries $(OPAL_DIR)/config.status
rm -f $(LIBDIR)/$(OPAL_LIB)
$(MAKE) $(MAKEOPTS) -C $(OPAL_DIR)
$(MAKE) -C $(OPAL_DIR) install
### libgtk
update-sources::
echo --- Getting GTK2+ ...
$(WGET) -P $(SRCDIR) $(GTK_URL)/$(GTK_ARCHIVE)
$(LIBDIR)/pkgconfig/gtk+-2.0.pc: $(SRCDIR)/$(GTK_ARCHIVE)
unzip -u $(SRCDIR)/$(GTK_ARCHIVE) -d $(BUILDROOT)
sed -i -e 's#^prefix=.*$$#prefix=$(BUILDROOT)#g' $(LIBDIR)/pkgconfig/g*.pc
touch $@
### GTK Runtime
update-sources::
echo --- Getting GTK2+ Runtime Library ...
$(WGET) -P $(SRCDIR) $(GTK_INSTALLER_URL)/$(GTK_BIN_EXE)
$(LIBDIR)/gtk+-$(GTK_BIN_VER)-setup.exe: $(SRCDIR)/$(GTK_BIN_EXE)
$(CP) $(SRCDIR)/$(GTK_BIN_EXE) $(LIBDIR)/gtk+-$(GTK_BIN_VER)-setup.exe
touch $@
### libglib
update-sources::
echo --- Getting GLib ...
$(WGET) -P $(SRCDIR) $(GLIB_URL)/$(GLIB_ARCHIVE)
$(LIBDIR)/pkgconfig/glib-2.0.pc: $(SRCDIR)/$(GLIB_ARCHIVE)
unzip -u $(SRCDIR)/$(GLIB_ARCHIVE) -d $(BUILDROOT)
sed -i -e 's#^prefix=.*$$#prefix=$(BUILDROOT)#g' $(LIBDIR)/pkgconfig/g*.pc $(BINDIR)/glib-gettextize
chmod +x $(BINDIR)/glib-gettextize
touch $@
### atk
update-sources::
echo --- Getting ATK ...
$(WGET) -P $(SRCDIR) $(ATK_URL)/$(ATK_ARCHIVE)
$(LIBDIR)/pkgconfig/atk-2.0.pc: $(SRCDIR)/$(ATK_ARCHIVE)
unzip -u $(SRCDIR)/$(ATK_ARCHIVE) -d $(BUILDROOT)
sed -i -e 's#^prefix=.*$$#prefix=$(BUILDROOT)#g' $(LIBDIR)/pkgconfig/atk*.pc
touch $@
### libpng
update-sources::
echo --- Getting PNG ...
$(WGET) -P $(SRCDIR) $(GNUWIN32_URL)/libpng-$(LIBPNG_VER)-bin.zip
$(WGET) -P $(SRCDIR) $(GNUWIN32_URL)/libpng-$(LIBPNG_VER)-dep.zip
$(WGET) -P $(SRCDIR) $(GNUWIN32_URL)/libpng-$(LIBPNG_VER)-lib.zip
$(LIBDIR)/libpng.a: $(SRCDIR)/libpng-$(LIBPNG_VER)-bin.zip $(SRCDIR)/libpng-$(LIBPNG_VER)-dep.zip $(SRCDIR)/libpng-$(LIBPNG_VER)-lib.zip
unzip -u $(SRCDIR)/libpng-$(LIBPNG_VER)-bin.zip -d $(BUILDROOT)
unzip -u $(SRCDIR)/libpng-$(LIBPNG_VER)-dep.zip -d $(BUILDROOT)
unzip -u $(SRCDIR)/libpng-$(LIBPNG_VER)-lib.zip -d $(BUILDROOT)
sed -i -e 's#^prefix=.*$$#prefix=$(BUILDROOT)#g' lib/pkgconfig/libpng*.pc
ln -s -f libpng.pc lib/pkgconfig/libpng12.pc
touch $@
### libintl
update-sources::
echo --- Getting Gettext ...
$(WGET) -P $(SRCDIR) $(GETTEXT_URL)/$(GETTEXT_ARCHIVE)
$(LIBDIR)/libintl.a: $(SRCDIR)/$(GETTEXT_ARCHIVE)
unzip -u $(SRCDIR)/$(GETTEXT_ARCHIVE) -d $(BUILDROOT)
touch $@
### libiconv
update-sources::
echo --- Getting Iconv ...
$(WGET) -P $(SRCDIR) $(GIMP_URL)/$(ICONV_ARCHIVE)
$(LIBDIR)/libiconv.a: $(SRCDIR)/$(ICONV_ARCHIVE)
unzip -u $(SRCDIR)/$(ICONV_ARCHIVE) -d $(BUILDROOT)
$(RM) -f README.libiconv
touch $@
### pango
update-sources::
echo --- Getting Pango ...
$(WGET) -P $(SRCDIR) $(PANGO_URL)/$(PANGO_ARCHIVE)
$(LIBDIR)/pkgconfig/pango32.pc: $(SRCDIR)/$(PANGO_ARCHIVE)
unzip -u $(SRCDIR)/$(PANGO_ARCHIVE) -d $(BUILDROOT)
sed -i -e 's#^prefix=.*$$#prefix=$(BUILDROOT)#g' $(LIBDIR)/pkgconfig/pango*.pc
touch $@
### cairo
update-sources::
echo --- Getting Cairo ...
$(WGET) -P $(SRCDIR) $(CAIRO_URL)/$(CAIRO_ARCHIVE)
$(LIBDIR)/pkgconfig/cairo.pc: $(SRCDIR)/$(CAIRO_ARCHIVE)
unzip -u $(SRCDIR)/$(CAIRO_ARCHIVE) -d $(BUILDROOT)
sed -i -e 's#^prefix=.*$$#prefix=$(BUILDROOT)#g' $(LIBDIR)/pkgconfig/cairo*.pc
touch $@
### libxml2
update-sources::
echo --- Getting libXML2 ...
$(WGET) -P $(SRCDIR) $(XML2_URL)/$(XML2_ARCHIVE)
$(XML2_DIR)/config.status: binaries $(SRCDIR)/$(XML2_ARCHIVE)
rm -f $(LIBDIR)/libxml2.a
tar xfz $(SRCDIR)/$(XML2_ARCHIVE) -C $(BUILDROOT)
(cd $(XML2_DIR)/;./configure $(confflags) --without-python \
)
$(LIBDIR)/libxml2.a: binaries $(XML2_DIR)/config.status
rm -f $(LIBDIR)/libxml2.a
$(MAKE) $(MAKEOPTS) -C $(XML2_DIR)
$(MAKE) $(MAKEOPTS) -C $(XML2_DIR) install
### Loudmouth
update-sources::
echo --- Getting Loudmouth...
$(WGET) -P $(SRCDIR) $(LOUDMOUTH_URL)/$(LOUDMOUTH_ARCHIVE)?gda=yx00PEkAAAAK7-b-onAaoEb5hV0E3nJV_bsiDriJQctkEYNMmHSa0Ag_T2Kkurcc1X3I3CbY38EmSx9tkRQjzhN2K5vIABaYhAioEG5q2hncZWbpWmJ7IQ
mv $(SRCDIR)/$(LOUDMOUTH_ARCHIVE)?gda=yx00PEkAAAAK7-b-onAaoEb5hV0E3nJV_bsiDriJQctkEYNMmHSa0Ag_T2Kkurcc1X3I3CbY38EmSx9tkRQjzhN2K5vIABaYhAioEG5q2hncZWbpWmJ7IQ $(SRCDIR)/$(LOUDMOUTH_ARCHIVE)
$(LIBDIR)/libloudmouth.a: binaries $(SRCDIR)/$(LOUDMOUTH_ARCHIVE)
rm -rf LOUDMOUTH_DIR $(LIBDIR)/libloudmouth.a $(INCLUDEDIR)/loudmouth*
unzip -u $(SRCDIR)/$(LOUDMOUTH_ARCHIVE) -d $(BUILDROOT)
cp -r $(LOUDMOUTH_DIR)/include/loudmouth* $(INCLUDEDIR)
cp $(LOUDMOUTH_DIR)/lib/loudmouth.lib $(LIBDIR)/libloudmouth.a
### GnomeMeeting / Ekiga
ifeq ($(wildcard $(SRCDIR)/$(EKIGA_ARCHIVE)), )
update-ekiga:
echo --- Getting Ekiga master...
$(GIT) clone $(EKIGA_URL) $(SRCDIR)/$(EKIGA_ARCHIVE)
else
update-ekiga:
echo --- Updating Ekiga master...
(cd $(SRCDIR)/$(EKIGA_ARCHIVE); $(GIT) pull )
endif
$(EKIGA_DIR)/autogen.sh $(EKIGA_DIR)/win32/directx: binaries $(SRCDIR)/$(EKIGA_ARCHIVE)
rm -rf $(EKIGA_DIR)
$(CP) -r $(SRCDIR)/$(EKIGA_ARCHIVE) $(EKIGA_DIR)
(cd $(EKIGA_DIR)/; git $(GIT_EKIGA_REV) )
(cd $(EKIGA_DIR)/; patch -p1 < $(EKIGA_WIN32_DIFF_DIR)/ekiga_exceptions.diff )
touch $@
$(EKIGA_DIR)/config.status: binaries $(EKIGA_DIR)/autogen.sh $(LIBDIR)/$(PTLIB_LIB) $(LIBDIR)/$(OPAL_LIB) \
$(LIBDIR)/pkgconfig/gtk+-2.0.pc $(LIBDIR)/pkgconfig/atk-2.0.pc $(LIBDIR)/pkgconfig/glib-2.0.pc \
$(LIBDIR)/libpng.a $(LIBDIR)/pkgconfig/pango32.pc $(LIBDIR)/pkgconfig/cairo.pc $(LIBDIR)/libxml2.a \
$(LIBDIR)/libintl.a $(LIBDIR)/libiconv.a $(LIBDIR)/libsasl2.a $(LIBDIR)/libloudmouth.a
rm -f $(EKIGA_DIR)/src/ekiga.exe
ifeq ($(DEBUG),1)
(cd $(EKIGA_DIR)/; ACLOCAL_FLAGS="-I $(BUILDROOT)/share/aclocal"; ./autogen.sh $(confekiga) --enable-opal-debug )
else
(cd $(EKIGA_DIR)/; ACLOCAL_FLAGS="-I $(BUILDROOT)/share/aclocal"; ./autogen.sh $(confekiga) )
endif
$(EKIGA_DIR)/src/ekiga.exe: binaries $(EKIGA_DIR)/config.status
$(MAKE) $(MAKEOPTS) -C $(EKIGA_DIR) 2>&1 | tee make.log
$(MAKE) $(MAKEOPTS) -C $(EKIGA_DIR)/help
$(TARGETDIR)/zips: binaries $(EKIGA_DIR)/src/ekiga.exe
-$(RM) -rf $(TARGETDIR)
mkdir $(TARGETDIR)
make -C ekiga install
mkdir -p $(EKIGA_PREFIX)/plugins
for plugin in $(LIBDIR)/opal*/codecs/audio/*; do \
install -m 755 $$plugin $(EKIGA_PREFIX)/plugins ;\
done
for plugin in $(LIBDIR)/opal*/codecs/video/*; do \
install -m 755 $$plugin $(EKIGA_PREFIX)/plugins ;\
done
for lib in libexpat-1.dll liblber.dll libldap.dll libxml2-2.dll libspeex-1.dll libspeexdsp-1.dll \
libtheora-0.dll avcodec-52.dll avutil-50.dll libogg-0.dll libboost_signals.lib ; do \
install -m 755 $(BINDIR)/$$lib $(EKIGA_PREFIX) ;\
done
ifeq ($(DEBUG),0)
$(STRIP) $(EKIGA_PREFIX)/*.dll
$(STRIP) $(EKIGA_PREFIX)/*.exe;
endif
# We can not strip MS compiled dlls
install -m 755 $(LIBSASL2_DIR)/bin/libsasl.dll $(EKIGA_PREFIX)
install -m 755 $(LOUDMOUTH_DIR)/bin/loudmouth.dll $(EKIGA_PREFIX)
for lc in C $(DOC_LINGUAS); do \
mkdir -p $(EKIGA_PREFIX)/help/$$lc; \
if test -f $(EKIGA_DIR)/help/$$lc/ekiga.xml; then \
xmlto -o $(EKIGA_PREFIX)/help/$$lc/ --skip-validation html $(EKIGA_DIR)/help/$$lc/ekiga.xml; \
fi ;\
install -m 644 $(EKIGA_DIR)/help/$$lc/ekiga.xml $(EKIGA_PREFIX)/help/$$lc/;\
if test -d $(EKIGA_DIR)/help/$$lc/figures; then \
mkdir -p $(EKIGA_PREFIX)/help/$$lc/figures; \
install -m 644 $(EKIGA_DIR)/help/$$lc/figures/*.png $(EKIGA_PREFIX)/help/$$lc/figures; \
fi \
done
(cd $(TARGETDIR)/;zip -9r ekiga-$(EKIGA_VER).zip Ekiga )
zip -9r $(TARGETDIR)/ekiga_build-$(EKIGA_VER).zip Makefile $(EKIGA_WIN32_DIFF_DIR)/* ico/*
tar cfvz $(TARGETDIR)/ekiga_build-$(EKIGA_VER).tgz Makefile $(EKIGA_WIN32_DIFF_DIR)/* ico/*
touch $@
update-sources:: update-ekiga update-opal update-ptlib
#### README about NSIS installer ####
#
# NSIS package shipped with linux distributions does not includes some of the plugins needed.
# - System.dll : You need to get it from the windows zip archive (http://sourceforge.net/projects/nsis) and extract
# /Plugins/System.dll TO /usr/share/nsis/Plugins/
# /Contrib/Modern UI/System.nsh TO /usr/share/nsis/Contrib/System/
# - Process.dll : Is a plugin that can be found here http://nsis.sourceforge.net/Processes_plug-in
# extract /bin/Processes.dll TO /usr/share/nsis/Plugins/
#
###########################
update-sources::
echo --- Getting NSIS Installer ...
$(WGET) -P $(SRCDIR) $(NSIS_URL)/nsis-$(NSIS_VER).zip
$(NSISPLUGIN_DIR)/SystemLocal.dll: $(SRCDIR)/nsis-$(NSIS_VER).zip
mkdir -p $(NSISPLUGIN_DIR)
unzip -u -j $(SRCDIR)/nsis-$(NSIS_VER).zip nsis-$(NSIS_VER)/Plugins/System.dll -d $(NSISPLUGIN_DIR)
$(MV) $(NSISPLUGIN_DIR)/System.dll $(NSISPLUGIN_DIR)/SystemLocal.dll
touch $@
update-sources::
echo --- Getting NSIS Processes Plugin ...
$(WGET) -P $(SRCDIR) $(NSISPROCESSES_URL)/Processes.zip
$(NSISPLUGIN_DIR)/Processes.dll: $(SRCDIR)/Processes.zip
mkdir -p $(NSISPLUGIN_DIR)
unzip -u -j $(SRCDIR)/Processes.zip setup-processes/bin/Processes.dll -d $(NSISPLUGIN_DIR)
touch $@
$(TARGETDIR)/$(EKIGA_INSTALLER): $(TARGETDIR)/zips $(LIBDIR)/gtk+-$(GTK_BIN_VER)-setup.exe $(NSISPLUGIN_DIR)/SystemLocal.dll $(NSISPLUGIN_DIR)/Processes.dll
(makensis -DEKIGA_VERSION=$(EKIGA_VER) -DEKIGA_DIR=$(EKIGA_DIR) -DBUILDROOT=$(BUILDROOT) \
-DINSTALLER_DIR=$(EKIGA_INSTALLER_DIR) -DLIB_DIR=$(LIBDIR) -DTARGET_DIR=$(TARGETDIR) \
-DCROSS_COMPILING=true -DWITH_GTK=true -DGTK_VERSION=$(GTK_BIN_VER) \
-DNSISSYSTEMDIR=$(NSISSYTEM_DIR) -DNSISPLUGINDIR=$(NSISPLUGIN_DIR) \
$(EKIGA_INSTALLER_DIR)/ekiga.nsi )
touch $@
clean:
-$(RM) -rf $(TARGETDIR)
distclean:
-$(RM) -rf $(OPENLDAP_DIR)
-$(RM) -rf $(LIBSASL2_DIR)
-$(RM) -rf $(BUILDROOT)/share/
-$(RM) -rf $(BINDIR)
-$(RM) -rf $(BUILDROOT)/contrib
-$(RM) -rf $(BUILDROOT)/etc
-$(RM) -rf $(INCLUDEDIR)
-$(RM) -rf $(LIBDIR)
-$(RM) -rf $(OGG_DIR)
-$(RM) -rf $(XML2_DIR)
-$(RM) -rf $(BUILDROOT)/man
-$(RM) -rf $(BUILDROOT)/manifest
-$(RM) -rf $(OPAL_DIR)
-$(RM) -rf $(EKIGA_DIR)
-$(RM) -rf $(PTLIB_DIR)
-$(RM) -rf $(REGEX_DIR)
-$(RM) -rf $(SPEEX_DIR)
-$(RM) -rf $(EXPAT_DIR)
-$(RM) -rf $(FFMPEG_DIR)
-$(RM) -rf $(X264_DIR)
-$(RM) -rf $(THEORA_DIR)
-$(RM) -rf make
-$(RM) -f binaries
# -$(RM) -rf $(SRCDIR)/*
.PHONY: clean distclean update update-sources update-ekiga update-opal update-ptlib
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]