forked from osmocom/wireshark
Don't do the desktop integration stuff if we're not building Wireshark.
Wireshark is the desktop app; if we're not building it (i.e., we're only building the command-line TShark), we don't need any desktop files. Change-Id: Id8244b417fd53c9d55b4d77fe3ad748c98868ad7 Reviewed-on: https://code.wireshark.org/review/5615 Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
parent
c02417f851
commit
b8a23643b3
16
Makefile.am
16
Makefile.am
|
@ -1423,9 +1423,11 @@ patch-bzip2: distdir
|
|||
# FreeBSD install command has a -T flag that takes an argument and
|
||||
# that has completely different semantics.
|
||||
#
|
||||
# We neither need nor want any of this on OS X.
|
||||
# We neither need nor want any of this on OS X, nor do we want it if
|
||||
# we're not building Wireshark (that being the only desktop app).
|
||||
#
|
||||
install-data-local:
|
||||
if BUILDING_WIRESHARK
|
||||
if NOT_OS_X
|
||||
mkdir -p $(DESTDIR)$(datadir)/mime/packages
|
||||
install -m 644 $(srcdir)/wireshark-mime-package.xml $(DESTDIR)$(datadir)/mime/packages/wireshark.xml
|
||||
|
@ -1445,8 +1447,10 @@ if NOT_OS_X
|
|||
mkdir -p $(DESTDIR)$(datadir)/icons/hicolor/scalable/apps
|
||||
install -m 644 $(srcdir)/image/wsicon.svg $(DESTDIR)$(datadir)/icons/hicolor/scalable/apps/wireshark.svg
|
||||
endif
|
||||
endif
|
||||
|
||||
uninstall-local:
|
||||
if BUILDING_WIRESHARK
|
||||
if NOT_OS_X
|
||||
rm -f $(DESTDIR)$(datadir)/mime/packages/wireshark.xml
|
||||
rm -f $(DESTDIR)$(datadir)/applications/wireshark.desktop
|
||||
|
@ -1457,6 +1461,7 @@ if NOT_OS_X
|
|||
done
|
||||
rm -f $(DESTDIR)$(datadir)/icons/hicolor/scalable/apps/wireshark.svg
|
||||
endif
|
||||
endif
|
||||
|
||||
install-data-hook: update-databases-and-caches-install
|
||||
uninstall-hook: update-databases-and-caches-uninstall
|
||||
|
@ -1487,25 +1492,32 @@ uninstall-hook: update-databases-and-caches-uninstall
|
|||
#
|
||||
# The update-alternatives suggestions need work.
|
||||
#
|
||||
# We neither need nor want any of this on OS X.
|
||||
# We neither need nor want any of this on OS X, nor do we want it if
|
||||
# we're not building Wireshark (that being the only desktop app).
|
||||
#
|
||||
update-databases-and-caches-common:
|
||||
if BUILDING_WIRESHARK
|
||||
if NOT_OS_X
|
||||
@echo "You may need to run \"ldconfig\" as root"
|
||||
@echo "You may need to run \"update-desktop-database $(datadir)/applications\""
|
||||
@echo "You may need to run \"update-mime-database $(datadir)/mime\""
|
||||
@echo "You may need to run \"gtk-update-icon-cache -f -t $(datadir)/icons/hicolor\""
|
||||
endif
|
||||
endif
|
||||
|
||||
update-databases-and-caches-install: update-databases-and-caches-common
|
||||
if BUILDING_WIRESHARK
|
||||
if NOT_OS_X
|
||||
@echo "You may need to run \"update-alternatives --install $(bindir)/wireshark wireshark $(bindir)/wireshark-qt 50\""
|
||||
endif
|
||||
endif
|
||||
|
||||
update-databases-and-caches-uninstall: update-databases-and-caches-common
|
||||
if BUILDING_WIRESHARK
|
||||
if NOT_OS_X
|
||||
@echo "You may need to run \"update-alternatives --remove wireshark $(bindir)/wireshark-qt\""
|
||||
endif
|
||||
endif
|
||||
|
||||
# Used by svr4-package and osx-package
|
||||
# We load top_stagedir with an absolute path so that libtool doesn't freak.
|
||||
|
|
|
@ -1381,6 +1381,7 @@ AC_ARG_ENABLE(wireshark,
|
|||
AC_HELP_STRING( [--enable-wireshark],
|
||||
[build the Wireshark GUI (with Gtk+, Qt, or both) @<:@default=yes@:>@]),
|
||||
enable_wireshark=$enableval,enable_wireshark=yes)
|
||||
AM_CONDITIONAL(BUILDING_WIRESHARK, test x$enable_wireshark = xyes)
|
||||
|
||||
AC_ARG_ENABLE(packet-editor,
|
||||
AC_HELP_STRING( [--enable-packet-editor],
|
||||
|
|
Loading…
Reference in New Issue