summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libsputext/Makefile.am10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/libsputext/Makefile.am b/src/libsputext/Makefile.am
index 528645b46..763684cc4 100644
--- a/src/libsputext/Makefile.am
+++ b/src/libsputext/Makefile.am
@@ -2,10 +2,16 @@ LIBTOOL = $(SHELL) $(top_builddir)/libtool-nofpic
libdir = $(XINE_PLUGINDIR)
-lib_LTLIBRARIES = xineplug_decode_sputext.la
+if HAVE_GICONV
+sputext_decoder = xineplug_decode_sputext.la
+endif
-xineplug_decode_sputext_la_SOURCES = xine_decoder.c
+lib_LTLIBRARIES = $(sputext_decoder)
+
+xineplug_decode_sputext_la_SOURCES = xine_decoder.c
xineplug_decode_sputext_la_LDFLAGS = -avoid-version -module
+## libgiconv is only needed with FreeBSD
+xineplug_decode_sputext_la_LIBADD = $(GICONV_BSD_LIBS)
##
## Install header files (default=$includedir/xine)