Initial load master
authorMaksym Veremeyenko <verem@m1stereo.tv>
Thu, 6 Oct 2011 09:21:33 +0000 (12:21 +0300)
committerMaksym Veremeyenko <verem@m1stereo.tv>
Thu, 6 Oct 2011 09:21:33 +0000 (12:21 +0300)
Makefile.am [new file with mode: 0644]
README [new file with mode: 0644]
autogen.sh [new file with mode: 0755]
configure.in [new file with mode: 0644]
po/ChangeLog [new file with mode: 0644]
po/POTFILES.in [new file with mode: 0644]
src/Makefile.am [new file with mode: 0644]

diff --git a/Makefile.am b/Makefile.am
new file mode 100644 (file)
index 0000000..56b66d8
--- /dev/null
@@ -0,0 +1,29 @@
+## Process this file with automake to produce Makefile.in
+
+SUBDIRS = src
+
+EXTRA_DIST = \
+       autogen.sh \
+       gdv1394d.glade \
+       gdv1394d.gladep
+
+install-data-local:
+       @$(NORMAL_INSTALL)
+       if test -d $(srcdir)/pixmaps; then \
+         $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/pixmaps; \
+         for pixmap in $(srcdir)/pixmaps/*; do \
+           if test -f $$pixmap; then \
+             $(INSTALL_DATA) $$pixmap $(DESTDIR)$(pkgdatadir)/pixmaps; \
+           fi \
+         done \
+       fi
+
+dist-hook:
+       if test -d pixmaps; then \
+         mkdir $(distdir)/pixmaps; \
+         for pixmap in pixmaps/*; do \
+           if test -f $$pixmap; then \
+             cp -p $$pixmap $(distdir)/pixmaps; \
+           fi \
+         done \
+       fi
diff --git a/README b/README
new file mode 100644 (file)
index 0000000..c0edbc7
--- /dev/null
+++ b/README
@@ -0,0 +1,35 @@
+1. xmlrpc preparation for mingw:
+
+    # checkout latest trunk
+    svn co http://xmlrpc-c.svn.sourceforge.net/svnroot/xmlrpc-c/trunk xmlrpc-c
+
+    # apply patch
+    [verem@dev-1 xmlrpc-c.r2210]$ patch -p0 < ../xmlrpc-c-mingw32.v1.patch
+    patching file lib/abyss/src/conf.c
+    patching file lib/curl_transport/xmlrpc_curl_transport.c
+    patching file lib/libutil/time.c
+    patching file include/xmlrpc-c/select_int.h
+    patching file include/Makefile
+
+    # configure
+    ./configure --host=i686-pc-mingw32 --prefix=/home/verem/devel/xmlrpc-c.win32 --disable-libwww-client
+
+    # build
+    make
+
+    # after error happens on nametab generation:
+    #
+    # [...]
+    #../gennmtab/gennmtab >nametab.h
+    #/bin/sh: ../gennmtab/gennmtab: cannot execute binary file
+    # [...]
+    #
+    # re-run binary generation for platform
+    gcc -I. lib/expat/gennmtab/gennmtab.c -o lib/expat/gennmtab/gennmtab
+
+    # and continie build
+    make
+
+    # install it
+    make install
+
diff --git a/autogen.sh b/autogen.sh
new file mode 100755 (executable)
index 0000000..45c00c4
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/sh
+autoreconf --force --install
+intltoolize --force --copy --automake
+#./configure $@
diff --git a/configure.in b/configure.in
new file mode 100644 (file)
index 0000000..335daad
--- /dev/null
@@ -0,0 +1,64 @@
+dnl Process this file with autoconf to produce a configure script.
+
+AC_INIT(configure.in)
+AM_INIT_AUTOMAKE(omnplay, 0.1)
+AM_CONFIG_HEADER(config.h)
+AM_MAINTAINER_MODE
+
+AC_ISC_POSIX
+AC_PROG_CC
+AM_PROG_CC_STDC
+AM_PROG_CC_C_O
+AC_HEADER_STDC
+AC_PROG_CXX
+
+PKG_CHECK_MODULES(GTK, [gtk+-2.0 >= 1.3.13])
+AC_SUBST(GTK_CFLAGS)
+AC_SUBST(GTK_LIBS)
+
+PKG_CHECK_MODULES(GTHREAD, [gthread-2.0 >= 2.26.0])
+AC_SUBST(GTHREAD_CFLAGS)
+AC_SUBST(GTHREAD_LIBS)
+
+PKG_CHECK_MODULES(CURL, [libcurl])
+AC_SUBST(CURL_CFLAGS)
+AC_SUBST(CURL_LIBS)
+
+AC_ARG_WITH([ommedia],
+        [AS_HELP_STRING([--with-ommedia=path], [path to ommedia /Media API/])],
+        [OMMEDIA_PATH=$withval],
+        [OMMEDIA_PATH=/usr/local/omneon/ommedia])
+
+AC_ARG_WITH([omplrlib],
+        [AS_HELP_STRING([--with-omplrlib=path], [path to omplrlib /Player API/])],
+        [OMPLRLIB_PATH=$withval],
+        [OMPLRLIB_PATH=/usr/local/omneon/omplrlib])
+
+OM_CFLAGS="-I$OMPLRLIB_PATH/include -I$OMMEDIA_PATH/include"
+AC_SUBST(OM_CFLAGS)
+
+OM_LIBS="-L$OMPLRLIB_PATH/lib -L$OMMEDIA_PATH/lib -lomplrlib -lommedia"
+AC_SUBST(OM_LIBS)
+
+dnl #GETTEXT_PACKAGE=omnplay
+dnl #AC_SUBST(GETTEXT_PACKAGE)
+dnl #AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE","")
+
+dnl Add the languages which your application supports here.
+dnl #ALL_LINGUAS=""
+dnl #AM_GLIB_GNU_GETTEXT
+
+dnl Use -Wall if we have gcc.
+changequote(,)dnl
+if test "x$GCC" = "xyes"; then
+  case " $CFLAGS " in
+  *[\ \        ]-Wall[\ \      ]*) ;;
+  *) CFLAGS="$CFLAGS -Wall" ;;
+  esac
+fi
+changequote([,])dnl
+
+AC_OUTPUT([
+Makefile
+src/Makefile
+])
diff --git a/po/ChangeLog b/po/ChangeLog
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/po/POTFILES.in b/po/POTFILES.in
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/src/Makefile.am b/src/Makefile.am
new file mode 100644 (file)
index 0000000..9f3edd4
--- /dev/null
@@ -0,0 +1,22 @@
+## Process this file with automake to produce Makefile.in
+
+INCLUDES = \
+       -DPACKAGE_DATA_DIR=\""$(datadir)"\" \
+       -DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
+       @GTHREAD_CFLAGS@ @GTK_CFLAGS@ @OM_CFLAGS@ @CURL_CFLAGS@
+
+bin_PROGRAMS = omnplay
+
+omnplay_SOURCES = \
+       main.c \
+       support.c support.h \
+       ui.c ui.h ui_utils.h \
+       ui_buttons.c ui_buttons.h \
+       opts.c opts.h \
+       playlist.c \
+       library.c \
+       whois.c \
+       timecode.c timecode.h \
+       omnplay.cpp omnplay.h
+
+omnplay_LDADD = @GTHREAD_LIBS@ @GTK_LIBS@ @OM_LIBS@ @CURL_LIBS@ -lpthread