summaryrefslogtreecommitdiffstats
path: root/bindings/python/Makefile.am
diff options
context:
space:
mode:
authorJorg Schuler <jcsjcs@users.sourceforge.net>2006-04-05 14:10:38 +0000
committerJorg Schuler <jcsjcs@users.sourceforge.net>2006-04-05 14:10:38 +0000
commit5605e446abae537bac1d5f8f90056cebbdb1c26f (patch)
tree10b41469d88eb359c88c26d348699cbbea803c30 /bindings/python/Makefile.am
parent7b3e3b26fb63b542bc6225807009ec88e4b6233b (diff)
downloadlibgpod-5605e446abae537bac1d5f8f90056cebbdb1c26f.tar.gz
libgpod-5605e446abae537bac1d5f8f90056cebbdb1c26f.tar.xz
libgpod-5605e446abae537bac1d5f8f90056cebbdb1c26f.zip
2006-04-03 Jorg Schuler <jcsjcs at users.sourceforge.net>
* itdb.h: flag1 -> has_artwork * itdb_track.c: (itdb_track_set_thumbnails, itdb_remove_thumbnails) set has_artwork flag correctly. 2006-04-01 Jorg Schuler <jcsjcs at users.sourceforge.net> * itdb.h: unk178 -> mark_unplayed * itdb_itunesdb.c: reset the mark_unplayed flag when playcount is detected. 2006-03-31 Jorg Schuler <jcsjcs at users.sourceforge.net> * po/es.po: replaced with version from Alejandro Lamas who maintains the gtkpod translation as well. 2006-03-29 Jorg Schuler <jcsjcs at users.sourceforge.net> * itunesdb.c: set filetype identifier when transfering track to the iPod. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1227 f01d2545-417e-4e96-918e-98f8d0dbbcb6
Diffstat (limited to 'bindings/python/Makefile.am')
-rw-r--r--bindings/python/Makefile.am40
1 files changed, 40 insertions, 0 deletions
diff --git a/bindings/python/Makefile.am b/bindings/python/Makefile.am
new file mode 100644
index 0000000..059836a
--- /dev/null
+++ b/bindings/python/Makefile.am
@@ -0,0 +1,40 @@
+EXTRA_DIST = \
+ gpod.i \
+ examples/coverart_fetch.py \
+ examples/play.py \
+ examples/tag-genre-from-audioscrobber.py
+
+CLEANFILES = \
+ *.py* \
+ _gpod.so \
+ gpod.py \
+ gpod_wrap.c \
+ gpod_wrap.o
+
+if HAVE_PYTHON
+MODULE_CFLAGS = `$(PKG_CONFIG) --cflags $(top_srcdir)/libgpod-1.0.pc` $(PYTHON_INCLUDES)
+MODULE_LIBS = `$(PKG_CONFIG) --libs $(top_srcdir)/libgpod-1.0.pc` -L$(top_srcdir)/src/.libs
+python_DATA = gpod.py _gpod.so
+
+gpod_wrap.c: gpod.i
+ $(SWIG) -python gpod.i
+
+gpod.py: gpod.i
+ $(SWIG) -python gpod.i
+
+gpod_wrap.o: gpod_wrap.c
+ $(CC) $(MODULE_CFLAGS) -c -fpic gpod_wrap.c
+
+_gpod.so: gpod_wrap.o
+ $(CC) $(MODULE_LIBS) @PYTHON_LDFLAGS@ gpod_wrap.o -o $@
+
+install-pythonDATA: $(python_DATA)
+ $(mkinstalldirs) $(DESTDIR)$(pythondir)
+ $(INSTALL_PROGRAM) _gpod.so $(DESTDIR)$(pythondir)/_gpod.so
+ $(INSTALL_DATA) gpod.py $(DESTDIR)$(pythondir)/gpod.py
+ $(PYTHON) -c 'from py_compile import compile; compile("$(DESTDIR)$(pythondir)/gpod.py")'
+ $(PYTHON) -O -c 'from py_compile import compile; compile("$(DESTDIR)$(pythondir)/gpod.py")'
+
+uninstall-pythonDATA: $(python_DATA)
+ rm -f $(DESTDIR)$(pythondir)/_gpod.so $(DESTDIR)$(pythondir)/gpod.py
+endif