summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-09-08 05:03:33 +0200
committerSlávek Banko <slavek.banko@axis.cz>2020-09-08 05:03:48 +0200
commite4f129f5ba17abe6626e3e51c6bbadb9b16bdfe8 (patch)
tree7f5877690fe184d87111813e9b3a608a171a2d1b
parenteac5fc5d72141c739d52106ce7681ebb907ce8f7 (diff)
downloadktorrent-e4f129f5ba17abe6626e3e51c6bbadb9b16bdfe8.tar.gz
ktorrent-e4f129f5ba17abe6626e3e51c6bbadb9b16bdfe8.zip
Fix FTBFS due to automake stuff.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit fce75237d50257fcf791e0b496d917abf819d330)
-rw-r--r--plugins/infowidget/Makefile.am19
1 files changed, 13 insertions, 6 deletions
diff --git a/plugins/infowidget/Makefile.am b/plugins/infowidget/Makefile.am
index 1937ee5..023227d 100644
--- a/plugins/infowidget/Makefile.am
+++ b/plugins/infowidget/Makefile.am
@@ -1,5 +1,14 @@
INCLUDES = -I$(srcdir)/../../libktorrent $(all_includes)
METASOURCES = AUTO
+
+if USE_SYSTEM_GEOIP
+libgeoip_system = -lGeoIP
+else
+libgeoip_builtin = libgeoip_builtin.la
+endif
+
+noinst_LTLIBRARIES = $(libgeoip_builtin)
+
kde_module_LTLIBRARIES = ktinfowidgetplugin.la
noinst_HEADERS = infowidgetplugin.h infowidgetprefpage.h trackerview.h GeoIP.h \
statustab.h fileview.h
@@ -9,21 +18,19 @@ ktinfowidgetplugin_la_SOURCES = infowidgetplugin.cpp availabilitychunkbar.cpp \
infowidgetpluginsettings.kcfgc iwpref.ui trackerviewbase.ui trackerview.cpp floatspinbox.cpp \
localefloatvalidator.cpp chunkdownloadviewbase.ui statustabbase.ui statustab.cpp fileview.cpp
+libgeoip_builtin_la_SOURCES = GeoIP.c
+
# Libs needed by the plugin
ktinfowidgetplugin_la_LIBADD = ../../libktorrent/libktorrent.la \
$(LIB_TDEHTML) $(LIB_TDEPARTS) $(LIB_QT) \
$(LIB_TDECORE) $(LIB_TDEUI) $(LIB_TDEFILE)
+ $(libgeoip_builtin)
# LD flags for the plugin
# -module says: this is a module, i.e. something you're going to dlopen
# so e.g. it has no version number like a normal shared lib would have.
-ktinfowidgetplugin_la_LDFLAGS = -module $(KDE_PLUGIN) $(all_libraries)
-if USE_SYSTEM_GEOIP
-ktinfowidgetplugin_la_LDFLAGS += -lGeoIP
-else
-ktinfowidgetplugin_la_SOURCES += GeoIP.c
-endif
+ktinfowidgetplugin_la_LDFLAGS = -module $(KDE_PLUGIN) $(all_libraries) $(libgeoip_system)
# rc file containing the GUI for the plugin
# pluginsdir = $(kde_datadir)/ktsearchplugin