Destroy autotools with fire
This commit is contained in:
parent
0a144e3fde
commit
72f3b5b8f9
25
Makefile.am
25
Makefile.am
|
@ -1,25 +0,0 @@
|
|||
ACLOCAL_AMFLAGS = -I build/m4/sparkleshare -I build/m4/shamrock -I build/m4/shave
|
||||
|
||||
basedirs = build Sparkles Sparkles/Git
|
||||
|
||||
SUBDIRS = $(basedirs) $(GUISUBDIRS)
|
||||
DIST_SUBDIRS = $(basedirs) SparkleShare
|
||||
|
||||
EXTRA_DIST = \
|
||||
News.txt \
|
||||
README.md \
|
||||
legal/License_for_SparkleShare.txt \
|
||||
legal/License_for_Sparkles.txt \
|
||||
legal/Authors.txt \
|
||||
SparkleShare/Linux/README.md \
|
||||
SparkleShare/Linux/org.sparkleshare.SparkleShare.appdata.xml
|
||||
|
||||
DISTCLEANFILES = \
|
||||
intltool-extract \
|
||||
intltool-merge \
|
||||
intltool-update \
|
||||
gnome-doc-utils.make
|
||||
|
||||
clean-local:
|
||||
rm -rf $(top_builddir)/bin
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
dist_html_DATA = \
|
||||
day-entry.html \
|
||||
event-entry.html \
|
||||
event-log.html \
|
||||
jquery.js
|
||||
|
||||
htmldir = $(pkgdatadir)/html/
|
||||
|
||||
MAINTAINERCLEANFILES = \
|
||||
Makefile.in
|
|
@ -1,12 +0,0 @@
|
|||
dist_pixmaps_DATA = \
|
||||
side-splash.png \
|
||||
user-icon-default.png \
|
||||
text-balloon.png \
|
||||
tutorial-slide-1.png\
|
||||
tutorial-slide-2.png \
|
||||
about.png
|
||||
|
||||
pixmapsdir = $(pkgdatadir)/pixmaps/
|
||||
|
||||
MAINTAINERCLEANFILES = \
|
||||
Makefile.in
|
|
@ -1,3 +0,0 @@
|
|||
SUBDIRS = HTML \
|
||||
Presets \
|
||||
Images
|
|
@ -1,17 +0,0 @@
|
|||
dist_presets_DATA = \
|
||||
bitbucket.xml \
|
||||
github.xml \
|
||||
gitlab.xml \
|
||||
own-server.xml \
|
||||
planio.xml \
|
||||
github.png \
|
||||
gitlab.png \
|
||||
bitbucket.png \
|
||||
planio.png \
|
||||
own-server.png
|
||||
|
||||
presetsdir = $(pkgdatadir)/presets/
|
||||
|
||||
MAINTAINERCLEANFILES = \
|
||||
Makefile.in
|
||||
|
|
@ -1,222 +0,0 @@
|
|||
# Makefile for program source directory in GNU NLS utilities package.
|
||||
# Copyright (C) 1995, 1996, 1997 by Ulrich Drepper <drepper@gnu.ai.mit.edu>
|
||||
# Copyright (C) 2004-2008 Rodney Dawes <dobey.pwns@gmail.com>
|
||||
#
|
||||
# This file may be copied and used freely without restrictions. It may
|
||||
# be used in projects which are not available under a GNU Public License,
|
||||
# but which still want to provide support for the GNU gettext functionality.
|
||||
#
|
||||
# - Modified by Owen Taylor <otaylor@redhat.com> to use GETTEXT_PACKAGE
|
||||
# instead of PACKAGE and to look for po2tbl in ./ not in intl/
|
||||
#
|
||||
# - Modified by jacob berkman <jacob@ximian.com> to install
|
||||
# Makefile.in.in and po2tbl.sed.in for use with glib-gettextize
|
||||
#
|
||||
# - Modified by Rodney Dawes <dobey.pwns@gmail.com> for use with intltool
|
||||
#
|
||||
# We have the following line for use by intltoolize:
|
||||
# INTLTOOL_MAKEFILE
|
||||
|
||||
GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
|
||||
PACKAGE = @PACKAGE@
|
||||
VERSION = @VERSION@
|
||||
|
||||
SHELL = @SHELL@
|
||||
|
||||
srcdir = @srcdir@
|
||||
top_srcdir = @top_srcdir@
|
||||
top_builddir = @top_builddir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
prefix = @prefix@
|
||||
exec_prefix = @exec_prefix@
|
||||
datadir = @datadir@
|
||||
datarootdir = @datarootdir@
|
||||
libdir = @libdir@
|
||||
DATADIRNAME = @DATADIRNAME@
|
||||
itlocaledir = $(prefix)/$(DATADIRNAME)/locale
|
||||
subdir = po
|
||||
install_sh = @install_sh@
|
||||
# Automake >= 1.8 provides @mkdir_p@.
|
||||
# Until it can be supposed, use the safe fallback:
|
||||
mkdir_p = $(install_sh) -d
|
||||
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
|
||||
GMSGFMT = @GMSGFMT@
|
||||
MSGFMT = @MSGFMT@
|
||||
XGETTEXT = @XGETTEXT@
|
||||
INTLTOOL_UPDATE = @INTLTOOL_UPDATE@
|
||||
INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@
|
||||
MSGMERGE = INTLTOOL_EXTRACT="$(INTLTOOL_EXTRACT)" XGETTEXT="$(XGETTEXT)" srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --dist
|
||||
GENPOT = INTLTOOL_EXTRACT="$(INTLTOOL_EXTRACT)" XGETTEXT="$(XGETTEXT)" srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --pot
|
||||
|
||||
ALL_LINGUAS = @ALL_LINGUAS@
|
||||
|
||||
PO_LINGUAS=$(shell if test -r $(srcdir)/LINGUAS; then grep -v "^\#" $(srcdir)/LINGUAS; else echo "$(ALL_LINGUAS)"; fi)
|
||||
|
||||
USER_LINGUAS=$(shell if test -n "$(LINGUAS)"; then LLINGUAS="$(LINGUAS)"; ALINGUAS="$(ALL_LINGUAS)"; for lang in $$LLINGUAS; do if test -n "`grep \^$$lang$$ $(srcdir)/LINGUAS 2>/dev/null`" -o -n "`echo $$ALINGUAS|tr ' ' '\n'|grep \^$$lang$$`"; then printf "$$lang "; fi; done; fi)
|
||||
|
||||
USE_LINGUAS=$(shell if test -n "$(USER_LINGUAS)" -o -n "$(LINGUAS)"; then LLINGUAS="$(USER_LINGUAS)"; else if test -n "$(PO_LINGUAS)"; then LLINGUAS="$(PO_LINGUAS)"; else LLINGUAS="$(ALL_LINGUAS)"; fi; fi; for lang in $$LLINGUAS; do printf "$$lang "; done)
|
||||
|
||||
POFILES=$(shell LINGUAS="$(PO_LINGUAS)"; for lang in $$LINGUAS; do printf "$$lang.po "; done)
|
||||
|
||||
DISTFILES = Makefile.in.in POTFILES.in $(POFILES)
|
||||
EXTRA_DISTFILES = ChangeLog POTFILES.skip Makevars LINGUAS
|
||||
|
||||
POTFILES = \
|
||||
# This comment gets stripped out
|
||||
|
||||
CATALOGS=$(shell LINGUAS="$(USE_LINGUAS)"; for lang in $$LINGUAS; do printf "$$lang.gmo "; done)
|
||||
|
||||
.SUFFIXES:
|
||||
.SUFFIXES: .po .pox .gmo .mo .msg .cat
|
||||
|
||||
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
||||
INTLTOOL_V_MSGFMT = $(INTLTOOL__v_MSGFMT_$(V))
|
||||
INTLTOOL__v_MSGFMT_= $(INTLTOOL__v_MSGFMT_$(AM_DEFAULT_VERBOSITY))
|
||||
INTLTOOL__v_MSGFMT_0 = @echo " MSGFMT" $@;
|
||||
|
||||
.po.pox:
|
||||
$(MAKE) $(GETTEXT_PACKAGE).pot
|
||||
$(MSGMERGE) $< $(GETTEXT_PACKAGE).pot -o $*.pox
|
||||
|
||||
.po.mo:
|
||||
$(INTLTOOL_V_MSGFMT)$(MSGFMT) -o $@ $<
|
||||
|
||||
.po.gmo:
|
||||
$(INTLTOOL_V_MSGFMT)file=`echo $* | sed 's,.*/,,'`.gmo \
|
||||
&& rm -f $$file && $(GMSGFMT) -o $$file $<
|
||||
|
||||
.po.cat:
|
||||
sed -f ../intl/po2msg.sed < $< > $*.msg \
|
||||
&& rm -f $@ && gencat $@ $*.msg
|
||||
|
||||
|
||||
all: all-@USE_NLS@
|
||||
|
||||
all-yes: $(CATALOGS)
|
||||
all-no:
|
||||
|
||||
$(GETTEXT_PACKAGE).pot: $(POTFILES)
|
||||
$(GENPOT)
|
||||
|
||||
install: install-data
|
||||
install-data: install-data-@USE_NLS@
|
||||
install-data-no: all
|
||||
install-data-yes: all
|
||||
linguas="$(USE_LINGUAS)"; \
|
||||
for lang in $$linguas; do \
|
||||
dir=$(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES; \
|
||||
$(mkdir_p) $$dir; \
|
||||
if test -r $$lang.gmo; then \
|
||||
$(INSTALL_DATA) $$lang.gmo $$dir/$(GETTEXT_PACKAGE).mo; \
|
||||
echo "installing $$lang.gmo as $$dir/$(GETTEXT_PACKAGE).mo"; \
|
||||
else \
|
||||
$(INSTALL_DATA) $(srcdir)/$$lang.gmo $$dir/$(GETTEXT_PACKAGE).mo; \
|
||||
echo "installing $(srcdir)/$$lang.gmo as" \
|
||||
"$$dir/$(GETTEXT_PACKAGE).mo"; \
|
||||
fi; \
|
||||
if test -r $$lang.gmo.m; then \
|
||||
$(INSTALL_DATA) $$lang.gmo.m $$dir/$(GETTEXT_PACKAGE).mo.m; \
|
||||
echo "installing $$lang.gmo.m as $$dir/$(GETTEXT_PACKAGE).mo.m"; \
|
||||
else \
|
||||
if test -r $(srcdir)/$$lang.gmo.m ; then \
|
||||
$(INSTALL_DATA) $(srcdir)/$$lang.gmo.m \
|
||||
$$dir/$(GETTEXT_PACKAGE).mo.m; \
|
||||
echo "installing $(srcdir)/$$lang.gmo.m as" \
|
||||
"$$dir/$(GETTEXT_PACKAGE).mo.m"; \
|
||||
else \
|
||||
true; \
|
||||
fi; \
|
||||
fi; \
|
||||
done
|
||||
|
||||
# Empty stubs to satisfy archaic automake needs
|
||||
dvi info ctags tags CTAGS TAGS ID:
|
||||
|
||||
# Define this as empty until I found a useful application.
|
||||
install-exec installcheck:
|
||||
|
||||
uninstall:
|
||||
linguas="$(USE_LINGUAS)"; \
|
||||
for lang in $$linguas; do \
|
||||
rm -f $(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo; \
|
||||
rm -f $(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo.m; \
|
||||
done
|
||||
|
||||
check: all $(GETTEXT_PACKAGE).pot
|
||||
rm -f missing notexist
|
||||
srcdir=$(srcdir) $(INTLTOOL_UPDATE) -m
|
||||
if [ -r missing -o -r notexist ]; then \
|
||||
exit 1; \
|
||||
fi
|
||||
|
||||
mostlyclean:
|
||||
rm -f *.pox $(GETTEXT_PACKAGE).pot *.old.po cat-id-tbl.tmp
|
||||
rm -f .intltool-merge-cache
|
||||
|
||||
clean: mostlyclean
|
||||
|
||||
distclean: clean
|
||||
rm -f Makefile Makefile.in POTFILES stamp-it
|
||||
rm -f *.mo *.msg *.cat *.cat.m *.gmo
|
||||
|
||||
maintainer-clean: distclean
|
||||
@echo "This command is intended for maintainers to use;"
|
||||
@echo "it deletes files that may require special tools to rebuild."
|
||||
rm -f Makefile.in.in
|
||||
|
||||
distdir = ../$(PACKAGE)-$(VERSION)/$(subdir)
|
||||
dist distdir: $(DISTFILES)
|
||||
dists="$(DISTFILES)"; \
|
||||
extra_dists="$(EXTRA_DISTFILES)"; \
|
||||
for file in $$extra_dists; do \
|
||||
test -f $(srcdir)/$$file && dists="$$dists $(srcdir)/$$file"; \
|
||||
done; \
|
||||
for file in $$dists; do \
|
||||
test -f $$file || file="$(srcdir)/$$file"; \
|
||||
ln $$file $(distdir) 2> /dev/null \
|
||||
|| cp -p $$file $(distdir); \
|
||||
done
|
||||
|
||||
update-po: Makefile
|
||||
$(MAKE) $(GETTEXT_PACKAGE).pot
|
||||
tmpdir=`pwd`; \
|
||||
linguas="$(USE_LINGUAS)"; \
|
||||
for lang in $$linguas; do \
|
||||
echo "$$lang:"; \
|
||||
result="`$(MSGMERGE) -o $$tmpdir/$$lang.new.po $$lang`"; \
|
||||
if $$result; then \
|
||||
if cmp $(srcdir)/$$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \
|
||||
rm -f $$tmpdir/$$lang.new.po; \
|
||||
else \
|
||||
if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \
|
||||
:; \
|
||||
else \
|
||||
echo "msgmerge for $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \
|
||||
rm -f $$tmpdir/$$lang.new.po; \
|
||||
exit 1; \
|
||||
fi; \
|
||||
fi; \
|
||||
else \
|
||||
echo "msgmerge for $$lang.gmo failed!"; \
|
||||
rm -f $$tmpdir/$$lang.new.po; \
|
||||
fi; \
|
||||
done
|
||||
|
||||
Makefile POTFILES: stamp-it
|
||||
@if test ! -f $@; then \
|
||||
rm -f stamp-it; \
|
||||
$(MAKE) stamp-it; \
|
||||
fi
|
||||
|
||||
stamp-it: Makefile.in.in $(top_builddir)/config.status POTFILES.in
|
||||
cd $(top_builddir) \
|
||||
&& CONFIG_FILES=$(subdir)/Makefile.in CONFIG_HEADERS= CONFIG_LINKS= \
|
||||
$(SHELL) ./config.status
|
||||
|
||||
# Tell versions [3.59,3.63) of GNU make not to export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
|
@ -1,10 +0,0 @@
|
|||
SUBDIRS = icons
|
||||
|
||||
dist_pixmaps_DATA = \
|
||||
tutorial-slide-3.png
|
||||
|
||||
pixmapsdir = $(pkgdatadir)/pixmaps/
|
||||
|
||||
MAINTAINERCLEANFILES = \
|
||||
Makefile.in
|
||||
|
|
@ -1,47 +0,0 @@
|
|||
theme = hicolor
|
||||
app_themedir = $(pkgdatadir)/icons/$(theme)
|
||||
system_themedir = $(datadir)/icons/$(theme)
|
||||
|
||||
system_theme_icons = \
|
||||
apps,org.sparkleshare.SparkleShare-16.png \
|
||||
apps,org.sparkleshare.SparkleShare-symbolic.svg \
|
||||
apps,org.sparkleshare.SparkleShare-22.png \
|
||||
apps,org.sparkleshare.SparkleShare-24.png \
|
||||
apps,org.sparkleshare.SparkleShare-32.png \
|
||||
apps,org.sparkleshare.SparkleShare-48.png \
|
||||
apps,org.sparkleshare.SparkleShare-256.png \
|
||||
apps,org.sparkleshare.SparkleShare-512.png
|
||||
|
||||
app_theme_icons = \
|
||||
status,document-added-12.png \
|
||||
status,document-edited-12.png \
|
||||
status,document-deleted-12.png \
|
||||
status,document-moved-12.png \
|
||||
status,list-point-16.png \
|
||||
status,process-syncing-up-24.png \
|
||||
status,process-syncing-down-24.png \
|
||||
status,process-syncing-24.png \
|
||||
status,process-syncing-error-24.png \
|
||||
status,process-syncing-up-48.png \
|
||||
status,process-syncing-down-48.png \
|
||||
status,process-syncing-48.png \
|
||||
status,process-syncing-error-48.png
|
||||
|
||||
install_icon_exec = $(top_srcdir)/build/icon-theme-installer \
|
||||
-t "$(theme)" \
|
||||
-s "$(srcdir)" \
|
||||
-d "x$(DESTDIR)" \
|
||||
-m "$(mkinstalldirs)" \
|
||||
-x "$(INSTALL_DATA)"
|
||||
|
||||
install-data-local:
|
||||
@-$(install_icon_exec) -i -b "$(system_themedir)" $(system_theme_icons)
|
||||
@-$(install_icon_exec) -i -b "$(app_themedir)" $(app_theme_icons)
|
||||
|
||||
uninstall-hook:
|
||||
@-$(install_icon_exec) -u -b "$(system_themedir)" $(system_theme_icons)
|
||||
@-$(install_icon_exec) -u -b "$(app_themedir)" $(app_theme_icons)
|
||||
|
||||
MAINTAINERCLEANFILES = Makefile.in
|
||||
EXTRA_DIST = $(wildcard *.png *.svg)
|
||||
|
|
@ -1,26 +0,0 @@
|
|||
dark_theme = ubuntu-mono-dark
|
||||
dark_themedir = /usr/share/icons/$(dark_theme)
|
||||
|
||||
dark_theme_icons = \
|
||||
status,process-syncing-idle-24.png \
|
||||
status,process-syncing-up-24.png \
|
||||
status,process-syncing-down-24.png \
|
||||
status,process-syncing-24.png \
|
||||
status,process-syncing-error-24.png
|
||||
|
||||
install_icon_exec = $(top_srcdir)/build/icon-theme-installer \
|
||||
-t "$(dark_theme)" \
|
||||
-s "$(srcdir)" \
|
||||
-d "x$(DESTDIR)" \
|
||||
-m "$(mkinstalldirs)" \
|
||||
-x "$(INSTALL_DATA)"
|
||||
|
||||
install-data-local:
|
||||
@-$(install_icon_exec) -i -b "$(dark_themedir)" $(dark_theme_icons)
|
||||
|
||||
uninstall-hook:
|
||||
@-$(install_icon_exec) -u -b "$(dark_themedir)" $(dark_theme_icons)
|
||||
|
||||
MAINTAINERCLEANFILES = Makefile.in
|
||||
EXTRA_DIST = $(wildcard *.png *.svg)
|
||||
|
|
@ -1,25 +0,0 @@
|
|||
light_theme = ubuntu-mono-light
|
||||
light_themedir = /usr/share/icons/$(light_theme)
|
||||
|
||||
light_theme_icons = \
|
||||
status,process-syncing-idle-24.png \
|
||||
status,process-syncing-up-24.png \
|
||||
status,process-syncing-down-24.png \
|
||||
status,process-syncing-24.png \
|
||||
status,process-syncing-error-24.png
|
||||
|
||||
install_icon_exec = $(top_srcdir)/build/icon-theme-installer \
|
||||
-t "$(light_theme)" \
|
||||
-s "$(srcdir)" \
|
||||
-d "x$(DESTDIR)" \
|
||||
-m "$(mkinstalldirs)" \
|
||||
-x "$(INSTALL_DATA)"
|
||||
|
||||
install-data-local:
|
||||
@-$(install_icon_exec) -i -b "$(light_themedir)" $(light_theme_icons)
|
||||
|
||||
uninstall-hook:
|
||||
@-$(install_icon_exec) -u -b "$(light_themedir)" $(light_theme_icons)
|
||||
|
||||
MAINTAINERCLEANFILES = Makefile.in
|
||||
EXTRA_DIST = $(wildcard *.png *.svg)
|
|
@ -1,46 +0,0 @@
|
|||
SUBDIRS = Images
|
||||
|
||||
ASSEMBLY = SparkleShare
|
||||
TARGET = exe
|
||||
|
||||
LINK = $(REF_SPARKLESHARE) $(NOTIFY_SHARP_LIBS) $(WEBKITGTK_SHARP_LIBS)
|
||||
|
||||
if HAVE_APP_INDICATOR
|
||||
BUILD_DEFINES = "-define:HAVE_APP_INDICATOR"
|
||||
endif
|
||||
|
||||
SOURCES = \
|
||||
../Common/SparkleShare.cs \
|
||||
../Common/AboutController.cs \
|
||||
../Common/Avatars.cs \
|
||||
../Common/BubblesController.cs \
|
||||
../Common/BaseController.cs \
|
||||
../Common/EventLogController.cs \
|
||||
../Common/NoteController.cs \
|
||||
../Common/SetupController.cs \
|
||||
../Common/StatusIconController.cs \
|
||||
About.cs \
|
||||
Bubbles.cs \
|
||||
EventLog.cs \
|
||||
Note.cs \
|
||||
Setup.cs \
|
||||
SetupWindow.cs \
|
||||
StatusIcon.cs \
|
||||
UserInterface.cs \
|
||||
UserInterfaceHelpers.cs \
|
||||
Controller.cs
|
||||
|
||||
include $(top_srcdir)/build/build.mk
|
||||
|
||||
bin_SCRIPTS = sparkleshare
|
||||
|
||||
Applicationsdir = $(datadir)/applications
|
||||
dist_Applications_DATA = \
|
||||
org.sparkleshare.SparkleShare.desktop \
|
||||
org.sparkleshare.SparkleShare.Invites.desktop \
|
||||
SparkleShare.Autostart.desktop
|
||||
|
||||
install-data-hook:
|
||||
test -f $(datadir)/applications/defaults.list && \
|
||||
test -z $(DESTDIR) && update-desktop-database $(datadir)/applications || :
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
SUBDIRS = Linux \
|
||||
Common
|
|
@ -1,22 +0,0 @@
|
|||
ASSEMBLY = Sparkles.Git
|
||||
TARGET = library
|
||||
|
||||
LINK = -r:$(DIR_BIN)/Sparkles.dll
|
||||
|
||||
SOURCES = \
|
||||
GitCommand.cs \
|
||||
GitFetcher.cs \
|
||||
GitRepository.cs
|
||||
|
||||
install-data-hook:
|
||||
for ASM in $(EXTRA_BUNDLE); do \
|
||||
$(INSTALL) -m 0755 $$ASM $(DESTDIR)$(moduledir); \
|
||||
done;
|
||||
|
||||
uninstall-hook:
|
||||
for ASM in $(EXTRA_BUNDLE); do \
|
||||
rm -f $(DESTDIR)$(moduledir)/`basename $$ASM`; \
|
||||
done;
|
||||
|
||||
include $(top_srcdir)/build/build.mk
|
||||
|
|
@ -1,38 +0,0 @@
|
|||
ASSEMBLY = Sparkles
|
||||
TARGET = library
|
||||
|
||||
ASSEMBLY_INFO_SOURCE = InstallationInfo.Directory.cs
|
||||
|
||||
SOURCES = \
|
||||
AuthenticationInfo.cs \
|
||||
InstallationInfo.cs \
|
||||
BaseFetcher.cs \
|
||||
BaseListener.cs \
|
||||
BaseRepository.cs \
|
||||
ChangeSet.cs \
|
||||
Command.cs \
|
||||
Configuration.cs \
|
||||
Extensions.cs \
|
||||
Invite.cs \
|
||||
ListenerFactory.cs \
|
||||
Logger.cs \
|
||||
Preset.cs \
|
||||
SSHAuthenticationInfo.cs \
|
||||
SSHCommand.cs \
|
||||
SSHFetcher.cs \
|
||||
TcpListener.cs \
|
||||
User.cs \
|
||||
Watcher.cs
|
||||
|
||||
install-data-hook:
|
||||
for ASM in $(EXTRA_BUNDLE); do \
|
||||
$(INSTALL) -m 0755 $$ASM $(DESTDIR)$(moduledir); \
|
||||
done;
|
||||
|
||||
uninstall-hook:
|
||||
for ASM in $(EXTRA_BUNDLE); do \
|
||||
rm -f $(DESTDIR)$(moduledir)/`basename $$ASM`; \
|
||||
done;
|
||||
|
||||
include $(top_srcdir)/build/build.mk
|
||||
|
85
autogen.sh
85
autogen.sh
|
@ -1,85 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
PROJECT=sparkleshare
|
||||
|
||||
function error () {
|
||||
echo "Error: $1" 1>&2
|
||||
exit 1
|
||||
}
|
||||
|
||||
function check_autotool_version () {
|
||||
which $1 &>/dev/null || {
|
||||
error "$1 is not installed, and is required to configure $PACKAGE"
|
||||
}
|
||||
|
||||
version=$($1 --version | head -n 1 | cut -f4 -d' ')
|
||||
major=$(echo $version | cut -f1 -d.)
|
||||
minor=$(echo $version | cut -f2 -d.)
|
||||
rev=$(echo $version | cut -f3 -d. | sed 's/[^0-9].*$//')
|
||||
major_check=$(echo $2 | cut -f1 -d.)
|
||||
minor_check=$(echo $2 | cut -f2 -d.)
|
||||
rev_check=$(echo $2 | cut -f3 -d.)
|
||||
|
||||
if [ $major -lt $major_check ]; then
|
||||
do_bail=yes
|
||||
elif [[ $minor -lt $minor_check && $major = $major_check ]]; then
|
||||
do_bail=yes
|
||||
elif [[ $rev -lt $rev_check && $minor = $minor_check && $major = $major_check ]]; then
|
||||
do_bail=yes
|
||||
fi
|
||||
|
||||
if [ x"$do_bail" = x"yes" ]; then
|
||||
error "$1 version $2 or better is required to configure $PROJECT"
|
||||
fi
|
||||
}
|
||||
|
||||
function run () {
|
||||
echo "Running $@ ..."
|
||||
$@ 2>.autogen.log || {
|
||||
cat .autogen.log 1>&2
|
||||
rm .autogen.log
|
||||
error "Could not run $1, which is required to configure $PROJECT"
|
||||
}
|
||||
rm .autogen.log
|
||||
}
|
||||
|
||||
srcdir=$(dirname $0)
|
||||
test -z "$srcdir" && srcdir=.
|
||||
|
||||
(test -f $srcdir/configure.ac) || {
|
||||
error "Directory \"$srcdir\" does not look like the top-level $PROJECT directory"
|
||||
}
|
||||
|
||||
# MacPorts on OS X only seems to have glibtoolize
|
||||
WHICHLIBTOOLIZE=$(which libtoolize || which glibtoolize)
|
||||
if [ x"$WHICHLIBTOOLIZE" == x"" ]; then
|
||||
error "libtool is required to configure $PROJECT"
|
||||
fi
|
||||
LIBTOOLIZE=$(basename $WHICHLIBTOOLIZE)
|
||||
|
||||
check_autotool_version aclocal 1.9
|
||||
check_autotool_version automake 1.9
|
||||
check_autotool_version autoconf 2.53
|
||||
check_autotool_version $LIBTOOLIZE 1.4.3
|
||||
#check_autotool_version intltoolize 0.35.0
|
||||
check_autotool_version pkg-config 0.14.0
|
||||
|
||||
#run intltoolize --force --copy
|
||||
run $LIBTOOLIZE --force --copy --automake
|
||||
run aclocal -I build/m4/sparkleshare -I build/m4/shamrock -I build/m4/shave $ACLOCAL_FLAGS
|
||||
run autoconf
|
||||
|
||||
run automake --gnu --add-missing --force --copy \
|
||||
-Wno-portability -Wno-portability
|
||||
|
||||
if [ ! -z "$NOCONFIGURE" ]; then
|
||||
echo "Done. ./configure skipped."
|
||||
exit $?
|
||||
fi
|
||||
|
||||
if [ $# = 0 ]; then
|
||||
echo "WARNING: I am going to run configure without any arguments."
|
||||
fi
|
||||
|
||||
run ./configure --enable-maintainer-mode $@
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
SUBDIRS = m4
|
||||
|
||||
EXTRA_DIST = \
|
||||
icon-theme-installer
|
||||
|
||||
MAINTAINERCLEANFILES = Makefile.in
|
||||
|
|
@ -1,30 +0,0 @@
|
|||
# Initializers
|
||||
MONO_BASE_PATH =
|
||||
|
||||
# Install paths
|
||||
DEFAULT_INSTALL_DIR = $(pkglibdir)
|
||||
DIR_BIN = $(top_builddir)/bin
|
||||
|
||||
# External libraries to link against, generated from configure
|
||||
LINK_SYSTEM = -r:System
|
||||
LINK_MONO_REFS = -r:Mono.Posix -r:System.Xml.Linq
|
||||
|
||||
LINK_GLIB = $(GLIB_SHARP_LIBS)
|
||||
LINK_GTK = $(GTK_SHARP_LIBS)
|
||||
LINK_WEBKIT = $(WEBKIT2_SHARP_LIBS)
|
||||
LINK_APP_INDICATOR = $(APP_INDICATOR_LIBS)
|
||||
|
||||
REF_SPARKLES = $(LINK_SYSTEM) $(LINK_MONO_REFS)
|
||||
LINK_SPARKLES = -r:$(DIR_BIN)/Sparkles.dll -r:$(DIR_BIN)/Sparkles.Git.dll
|
||||
LINK_SPARKLES_DEPS = $(REF_SPARKLES) $(LINK_SPARKLES)
|
||||
|
||||
REF_SPARKLESHARE = $(LINK_TESTS) $(LINK_GTK) $(LINK_SPARKLES_DEPS) $(LINK_APP_INDICATOR) $(LINK_WEBKIT)
|
||||
|
||||
# Cute hack to replace a space with something
|
||||
colon:= :
|
||||
empty:=
|
||||
space:= $(empty) $(empty)
|
||||
|
||||
# Build path to allow running uninstalled
|
||||
RUN_PATH = $(subst $(space),$(colon), $(MONO_BASE_PATH))
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
include $(top_srcdir)/build/build.environment.mk
|
||||
include $(top_srcdir)/build/build.rules.mk
|
|
@ -1,77 +0,0 @@
|
|||
UNIQUE_FILTER_PIPE = tr [:space:] \\n | sort | uniq
|
||||
BUILD_DATA_DIR = $(top_builddir)/bin/share/$(PACKAGE)
|
||||
|
||||
# Since all other attempts failed, we currently go this way:
|
||||
# This code adds the file specified in ASSEMBLY_INFO_SOURCE to SOURCES_BUILD.
|
||||
ASSEMBLY_INFO_SOURCE_REAL = \
|
||||
$(addprefix $(srcdir)/, $(ASSEMBLY_INFO_SOURCE))
|
||||
|
||||
SOURCES_BUILD = $(addprefix $(srcdir)/, $(SOURCES))
|
||||
SOURCES_BUILD += $(ASSEMBLY_INFO_SOURCE_REAL)
|
||||
|
||||
RESOURCES_EXPANDED = $(addprefix $(srcdir)/, $(RESOURCES))
|
||||
RESOURCES_BUILD = $(foreach resource, $(RESOURCES_EXPANDED), \
|
||||
-resource:$(resource),$(notdir $(resource)))
|
||||
|
||||
ASSEMBLY_EXTENSION = $(strip $(patsubst library, dll, $(TARGET)))
|
||||
ASSEMBLY_FILE = $(top_builddir)/bin/$(ASSEMBLY).$(ASSEMBLY_EXTENSION)
|
||||
|
||||
INSTALL_DIR_RESOLVED = $(firstword $(subst , $(DEFAULT_INSTALL_DIR), $(INSTALL_DIR)))
|
||||
|
||||
if ENABLE_TESTS
|
||||
LINK_TESTS = "$(NUNIT_LIBS)"
|
||||
ENABLE_TESTS_FLAG = "-define:ENABLE_TESTS"
|
||||
endif
|
||||
|
||||
FILTERED_LINK = $(shell echo "$(LINK)" | $(UNIQUE_FILTER_PIPE))
|
||||
DEP_LINK = $(shell echo "$(LINK)" | $(UNIQUE_FILTER_PIPE) | sed s,-r:,,g | grep '$(top_builddir)/bin/')
|
||||
|
||||
OUTPUT_FILES = \
|
||||
$(ASSEMBLY_FILE) \
|
||||
$(ASSEMBLY_FILE).mdb
|
||||
|
||||
moduledir = $(INSTALL_DIR_RESOLVED)
|
||||
module_SCRIPTS = $(OUTPUT_FILES)
|
||||
|
||||
all: $(ASSEMBLY_FILE)
|
||||
|
||||
run:
|
||||
@pushd $(top_builddir); \
|
||||
make run; \
|
||||
popd;
|
||||
|
||||
# uncommented for now.
|
||||
# tests are currently excuted from Makefile in $(top_builddir)
|
||||
#test:
|
||||
# @pushd $(top_builddir)/tests; \
|
||||
# make $(ASSEMBLY); \
|
||||
# popd;
|
||||
|
||||
build-debug:
|
||||
@echo $(DEP_LINK)
|
||||
|
||||
$(ASSEMBLY_FILE).mdb: $(ASSEMBLY_FILE)
|
||||
|
||||
$(ASSEMBLY_FILE): $(SOURCES_BUILD) $(RESOURCES_EXPANDED) $(DEP_LINK)
|
||||
@mkdir -p $(top_builddir)/bin
|
||||
$(MCS) \
|
||||
$(GMCS_FLAGS) \
|
||||
$(ASSEMBLY_BUILD_FLAGS) \
|
||||
-codepage:utf8 \
|
||||
-nowarn:0278 -nowarn:0078 $$warn \
|
||||
-define:HAVE_GTK_2_10 -define:NET_2_0 \
|
||||
-debug -target:$(TARGET) -out:$@ \
|
||||
$(BUILD_DEFINES) $(ENABLE_TESTS_FLAG) $(ENABLE_ATK_FLAG) \
|
||||
$(FILTERED_LINK) $(RESOURCES_BUILD) $(SOURCES_BUILD)
|
||||
@if [ -e $(srcdir)/$(notdir $@.config) ]; then \
|
||||
cp $(srcdir)/$(notdir $@.config) $(top_builddir)/bin; \
|
||||
fi;
|
||||
@if [ ! -z "$(EXTRA_BUNDLE)" ]; then \
|
||||
cp $(EXTRA_BUNDLE) $(top_builddir)/bin; \
|
||||
fi;
|
||||
|
||||
EXTRA_DIST = $(SOURCES_BUILD) $(RESOURCES_EXPANDED)
|
||||
|
||||
CLEANFILES = $(OUTPUT_FILES) $(ASSEMBLY_FILE).config
|
||||
DISTCLEANFILES = *.pidb
|
||||
MAINTAINERCLEANFILES = Makefile.in
|
|
@ -5,12 +5,10 @@ if [ "$1" = "" ]; then
|
|||
else
|
||||
sed -i.bak "s/ Version='[^']*'/ Version='$1'/" ../SparkleShare/Windows/SparkleShare.wxs
|
||||
sed -i.bak "s/assembly:AssemblyVersion *(\"[^\"]*\")/assembly:AssemblyVersion (\"$1\")/" ../Sparkles/InstallationInfo.Directory.cs
|
||||
sed -i.bak "s/m4_define(.sparkleshare_version[^)]*)/m4_define([sparkleshare_version], [$1])/" ../configure.ac
|
||||
cat ../SparkleShare/Mac/Info.plist | eval "sed -e '/<key>CFBundleShortVersionString<\/key>/{N;s#<string>.*<\/string>#<string>$1<\/string>#;}'" > ../SparkleShare/Mac/Info.plist.tmp
|
||||
cat ../SparkleShare/Mac/Info.plist.tmp | eval "sed -e '/<key>CFBundleVersion<\/key>/{N;s#<string>.*<\/string>#<string>$1<\/string>#;}'" > ../SparkleShare/Mac/Info.plist
|
||||
rm ../SparkleShare/Mac/Info.plist.tmp
|
||||
rm ../SparkleShare/Windows/SparkleShare.wxs.bak
|
||||
rm ../Sparkles/InstallationInfo.Directory.cs.bak
|
||||
rm ../configure.ac.bak
|
||||
fi
|
||||
|
||||
|
|
|
@ -1,187 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# icon-theme-installer
|
||||
# Copyright (C) 2006 Novell, Inc.
|
||||
# Written by Aaron Bockover <abock@gnome.org>
|
||||
# Licensed under the MIT/X11 license
|
||||
#
|
||||
# This script is meant to be invoked from within a Makefile/Makefile.am
|
||||
# in the install-data-local and uninstall-data sections. It handles the
|
||||
# task of properly installing icons into the icon theme. It requires a
|
||||
# few arguments to set up its environment, and a list of files to be
|
||||
# installed. The format of the file list is critical:
|
||||
#
|
||||
# <category>,<local-src-file-name>
|
||||
#
|
||||
# apps,music-player-banshee.svg
|
||||
# apps,music-player-banshee-16.png
|
||||
# apps,music-player-banshee-22.png
|
||||
#
|
||||
# <category> is the icon theme category, for instance, apps, devices,
|
||||
# actions, emblems...
|
||||
#
|
||||
# <local-src-file-name> must have a basename in the form of:
|
||||
#
|
||||
# proper-theme-name[-<SIZE>].<EXTENSION>
|
||||
#
|
||||
# Where <SIZE> should be either nothing, which will default to scalable
|
||||
# or \-[0-9]{2}, which will expand to <SIZE>x<SIZE>. For example:
|
||||
#
|
||||
# music-player-banshee-16.png
|
||||
#
|
||||
# The <SIZE> here is -16 and will expand to 16x16 per the icon theme spec
|
||||
#
|
||||
# What follows is an example Makefile.am for icon theme installation:
|
||||
#
|
||||
# ---------------
|
||||
# theme=hicolor
|
||||
# themedir=$(datadir)/icons/$(theme)
|
||||
# theme_icons = \
|
||||
# apps,music-player-banshee.svg \
|
||||
# apps,music-player-banshee-16.png \
|
||||
# apps,music-player-banshee-22.png \
|
||||
# apps,music-player-banshee-24.png \
|
||||
# apps,music-player-banshee-32.png
|
||||
#
|
||||
# install_icon_exec = $(top_srcdir)/build/icon-theme-installer -t $(theme) -s $(srcdir) -d "x$(DESTDIR)" -b $(themedir) -m "$(mkinstalldirs)" -x "$(INSTALL_DATA)"
|
||||
# install-data-local:
|
||||
# $(install_icon_exec) -i $(theme_icons)
|
||||
#
|
||||
# uninstall-hook:
|
||||
# $(install_icon_exec) -u $(theme_icons)
|
||||
#
|
||||
# MAINTAINERCLEANFILES = Makefile.in
|
||||
# EXTRA_DIST = $(wildcard *.svg *.png)
|
||||
# ---------------
|
||||
#
|
||||
# Arguments to this program:
|
||||
#
|
||||
# -i : Install
|
||||
# -u : Uninstall
|
||||
# -t <theme> : Theme name (hicolor)
|
||||
# -d <dir> : Theme installation dest directory [x$(DESTDIR)] - Always prefix
|
||||
# this argument with x; it will be stripped but will act as a
|
||||
# placeholder for zero $DESTDIRs (only set by packagers)
|
||||
# -b <dir> : Theme installation directory [$(hicolordir)]
|
||||
# -s <dir> : Source directory [$(srcdir)]
|
||||
# -m <exec> : Command to exec for directory creation [$(mkinstalldirs)]
|
||||
# -x <exec> : Command to exec for single file installation [$(INSTALL_DATA)]
|
||||
# <remainging> : All remainging should be category,filename pairs
|
||||
|
||||
while getopts "iut:b:d:s:m:x:" flag; do
|
||||
case "$flag" in
|
||||
i) INSTALL=yes ;;
|
||||
u) UNINSTALL=yes ;;
|
||||
t) THEME_NAME=$OPTARG ;;
|
||||
d) INSTALL_DEST_DIR=${OPTARG##x} ;;
|
||||
b) INSTALL_BASE_DIR=$OPTARG ;;
|
||||
s) SRC_DIR=$OPTARG ;;
|
||||
m) MKINSTALLDIRS_EXEC=$OPTARG ;;
|
||||
x) INSTALL_DATA_EXEC=$OPTARG ;;
|
||||
esac
|
||||
done
|
||||
|
||||
shift $(($OPTIND - 1))
|
||||
|
||||
if test "x$INSTALL" = "xyes" -a "x$UNINSTALL" = "xyes"; then
|
||||
echo "Cannot pass both -i and -u"
|
||||
exit 1
|
||||
elif test "x$INSTALL" = "x" -a "x$UNINSTALL" = "x"; then
|
||||
echo "Must path either -i or -u"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if test -z "$THEME_NAME"; then
|
||||
echo "Theme name required (-t hicolor)"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if test -z "$INSTALL_BASE_DIR"; then
|
||||
echo "Base theme directory required [-b \$(hicolordir)]"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if test ! -x $(echo "$MKINSTALLDIRS_EXEC" | cut -f1 -d' '); then
|
||||
echo "Cannot find '$MKINSTALLDIRS_EXEC'; You probably want to pass -m \$(mkinstalldirs)"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if test ! -x $(echo "$INSTALL_DATA_EXEC" | cut -f1 -d' '); then
|
||||
echo "Cannot find '$INSTALL_DATA_EXEC'; You probably want to pass -x \$(INSTALL_DATA)"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if test -z "$SRC_DIR"; then
|
||||
SRC_DIR=.
|
||||
fi
|
||||
|
||||
for icon in $@; do
|
||||
size=$(echo $icon | sed s/[^0-9]*//g)
|
||||
category=$(echo $icon | cut -d, -f1)
|
||||
build_name=$(echo $icon | cut -d, -f2)
|
||||
install_name=$(echo $build_name | sed "s/[0-9]//g; s/-\././")
|
||||
install_name=$(basename $install_name)
|
||||
|
||||
if test -z $size; then
|
||||
size=symbolic
|
||||
|
||||
if [[ "${INSTALL_BASE_DIR}" == *ubuntu-mono-* ]]; then
|
||||
install_dir=${INSTALL_DEST_DIR}${INSTALL_BASE_DIR}/$category/$size
|
||||
else
|
||||
install_dir=${INSTALL_DEST_DIR}${INSTALL_BASE_DIR}/$size/$category
|
||||
fi
|
||||
else
|
||||
if [[ "${INSTALL_BASE_DIR}" == *ubuntu-mono-* ]]; then
|
||||
install_dir=${INSTALL_DEST_DIR}${INSTALL_BASE_DIR}/$category/$size
|
||||
else
|
||||
size=${size}x${size};
|
||||
install_dir=${INSTALL_DEST_DIR}${INSTALL_BASE_DIR}/$size/$category
|
||||
fi
|
||||
fi
|
||||
|
||||
install_path=$install_dir/$install_name
|
||||
|
||||
if test "x$INSTALL" = "xyes"; then
|
||||
echo "Installing $size $install_name into $THEME_NAME icon theme"
|
||||
|
||||
$($MKINSTALLDIRS_EXEC $install_dir) || {
|
||||
echo "Failed to create directory $install_dir"
|
||||
exit 1
|
||||
}
|
||||
|
||||
$($INSTALL_DATA_EXEC $SRC_DIR/$build_name $install_path) || {
|
||||
echo "Failed to install $SRC_DIR/$build_name into $install_path"
|
||||
exit 1
|
||||
}
|
||||
|
||||
if test ! -e $install_path; then
|
||||
echo "Failed to install $SRC_DIR/$build_name into $install_path"
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
if test -e $install_path; then
|
||||
echo "Removing $size $install_name from $THEME_NAME icon theme"
|
||||
|
||||
rm $install_path || {
|
||||
echo "Failed to remove $install_path"
|
||||
exit 1
|
||||
}
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
gtk_update_icon_cache_bin="$((which gtk-update-icon-cache || echo /opt/gnome/bin/gtk-update-icon-cache)2>/dev/null)"
|
||||
gtk_update_icon_cache="$gtk_update_icon_cache_bin -f -t $INSTALL_BASE_DIR"
|
||||
|
||||
if test -z "$INSTALL_DEST_DIR"; then
|
||||
if test -x $gtk_update_icon_cache_bin; then
|
||||
echo "Updating GTK icon cache"
|
||||
$gtk_update_icon_cache
|
||||
else
|
||||
echo "*** Icon cache not updated. Could not execute $gtk_update_icon_cache_bin"
|
||||
fi
|
||||
else
|
||||
echo "*** Icon cache not updated. After (un)install, run this:"
|
||||
echo "*** $gtk_update_icon_cache"
|
||||
fi
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
EXTRA_DIST = \
|
||||
$(srcdir)/sparkleshare/*.m4 \
|
||||
$(srcdir)/shamrock/*.m4 \
|
||||
$(srcdir)/shave/*.m4
|
||||
|
||||
MAINTAINERCLEANFILES = Makefile.in
|
||||
|
|
@ -1,50 +0,0 @@
|
|||
AC_DEFUN([SHAMROCK_EXPAND_LIBDIR],
|
||||
[
|
||||
expanded_libdir=`(
|
||||
case $prefix in
|
||||
NONE) prefix=$ac_default_prefix ;;
|
||||
*) ;;
|
||||
esac
|
||||
case $exec_prefix in
|
||||
NONE) exec_prefix=$prefix ;;
|
||||
*) ;;
|
||||
esac
|
||||
eval echo $libdir
|
||||
)`
|
||||
AC_SUBST(expanded_libdir)
|
||||
])
|
||||
|
||||
AC_DEFUN([SHAMROCK_EXPAND_BINDIR],
|
||||
[
|
||||
expanded_bindir=`(
|
||||
case $prefix in
|
||||
NONE) prefix=$ac_default_prefix ;;
|
||||
*) ;;
|
||||
esac
|
||||
case $exec_prefix in
|
||||
NONE) exec_prefix=$prefix ;;
|
||||
*) ;;
|
||||
esac
|
||||
eval echo $bindir
|
||||
)`
|
||||
AC_SUBST(expanded_bindir)
|
||||
])
|
||||
|
||||
AC_DEFUN([SHAMROCK_EXPAND_DATADIR],
|
||||
[
|
||||
case $prefix in
|
||||
NONE) prefix=$ac_default_prefix ;;
|
||||
*) ;;
|
||||
esac
|
||||
|
||||
case $exec_prefix in
|
||||
NONE) exec_prefix=$prefix ;;
|
||||
*) ;;
|
||||
esac
|
||||
|
||||
expanded_datadir=`(eval echo $datadir)`
|
||||
expanded_datadir=`(eval echo $expanded_datadir)`
|
||||
|
||||
AC_SUBST(expanded_datadir)
|
||||
])
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
AC_DEFUN([SHAMROCK_CHECK_GNOME_DOC_UTILS],
|
||||
[
|
||||
AC_ARG_ENABLE([user-help],
|
||||
AC_HELP_STRING([--enable-user-help], [Enable building the user-help [[default=auto]]]),,
|
||||
enable_user_help=auto)
|
||||
|
||||
if test "x$enable_user_help" = "xauto"; then
|
||||
PKG_CHECK_MODULES(GNOME_DOC_UTILS,
|
||||
gnome-doc-utils,
|
||||
enable_user_help=yes, enable_user_help=no)
|
||||
elif test "x$enable_user_help" = "xyes"; then
|
||||
PKG_CHECK_MODULES(GNOME_DOC_UTILS, gnome-doc-utils)
|
||||
fi
|
||||
|
||||
# GNOME_DOC_INIT sets ENABLE_SK, but if we have disabled
|
||||
# user docs, then this needs to be defined manually.
|
||||
AM_CONDITIONAL(ENABLE_SK, false)
|
||||
if test "x$enable_user_help" = "xyes"; then
|
||||
GNOME_DOC_INIT([$1], enable_user_help=yes, enable_user_help=no)
|
||||
fi
|
||||
|
||||
AM_CONDITIONAL(HAVE_GNOME_DOC_UTILS, test "x$enable_user_help" = "xyes")
|
||||
])
|
|
@ -1,10 +0,0 @@
|
|||
AC_DEFUN([SHAMROCK_CONFIGURE_I18N],
|
||||
[
|
||||
ALL_LINGUAS=`grep -v '^#' $srcdir/po/LINGUAS | $SED ':a;N;$!ba;s/\n/ /g; s/[ ]+/ /g' | xargs`
|
||||
GETTEXT_PACKAGE=$1
|
||||
AC_SUBST(GETTEXT_PACKAGE)
|
||||
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Gettext Package])
|
||||
AM_GLIB_GNU_GETTEXT
|
||||
AC_SUBST([CONFIG_STATUS_DEPENDENCIES],['$(top_srcdir)/po/LINGUAS'])
|
||||
])
|
||||
|
|
@ -1,72 +0,0 @@
|
|||
AC_DEFUN([SHAMROCK_FIND_MONO_1_0_COMPILER],
|
||||
[
|
||||
SHAMROCK_FIND_PROGRAM_OR_BAIL(MCS, mcs)
|
||||
])
|
||||
|
||||
AC_DEFUN([SHAMROCK_FIND_MONO_2_0_COMPILER],
|
||||
[
|
||||
SHAMROCK_FIND_PROGRAM_OR_BAIL(MCS, gmcs)
|
||||
])
|
||||
|
||||
AC_DEFUN([SHAMROCK_FIND_MONO_4_0_COMPILER],
|
||||
[
|
||||
SHAMROCK_FIND_PROGRAM_OR_BAIL(MCS, dmcs)
|
||||
])
|
||||
|
||||
AC_DEFUN([SHAMROCK_FIND_MONO_4_5_COMPILER],
|
||||
[
|
||||
SHAMROCK_FIND_PROGRAM_OR_BAIL(MCS, mcs)
|
||||
])
|
||||
|
||||
AC_DEFUN([SHAMROCK_FIND_MONO_RUNTIME],
|
||||
[
|
||||
SHAMROCK_FIND_PROGRAM_OR_BAIL(MONO, mono)
|
||||
])
|
||||
|
||||
AC_DEFUN([_SHAMROCK_CHECK_MONO_MODULE],
|
||||
[
|
||||
PKG_CHECK_MODULES(MONO_MODULE, $1 >= $2)
|
||||
])
|
||||
|
||||
AC_DEFUN([SHAMROCK_CHECK_MONO_MODULE],
|
||||
[
|
||||
_SHAMROCK_CHECK_MONO_MODULE(mono, $1)
|
||||
])
|
||||
|
||||
AC_DEFUN([SHAMROCK_CHECK_MONO2_MODULE],
|
||||
[
|
||||
_SHAMROCK_CHECK_MONO_MODULE(mono-2, $1)
|
||||
])
|
||||
|
||||
AC_DEFUN([_SHAMROCK_CHECK_MONO_MODULE_NOBAIL],
|
||||
[
|
||||
PKG_CHECK_MODULES(MONO_MODULE, $2 >= $1,
|
||||
HAVE_MONO_MODULE=yes, HAVE_MONO_MODULE=no)
|
||||
AC_SUBST(HAVE_MONO_MODULE)
|
||||
])
|
||||
|
||||
AC_DEFUN([SHAMROCK_CHECK_MONO_MODULE_NOBAIL],
|
||||
[
|
||||
_SHAMROCK_CHECK_MONO_MODULE_NOBAIL(mono, $1)
|
||||
])
|
||||
|
||||
AC_DEFUN([SHAMROCK_CHECK_MONO2_MODULE_NOBAIL],
|
||||
[
|
||||
_SHAMROCK_CHECK_MONO_MODULE_NOBAIL(mono-2, $1)
|
||||
])
|
||||
|
||||
AC_DEFUN([SHAMROCK_CHECK_MONO_GAC_ASSEMBLIES],
|
||||
[
|
||||
for asm in $(echo "$*" | cut -d, -f3- | sed 's/\,/ /g')
|
||||
do
|
||||
AC_MSG_CHECKING([for Mono $2 GAC for $asm.dll])
|
||||
|
||||
eval "gacutil -l | grep '^$asm, ' &> /dev/null"
|
||||
if test $? == 0; then
|
||||
AC_MSG_RESULT([found])
|
||||
else
|
||||
AC_MSG_RESULT([not found])
|
||||
AC_MSG_ERROR([missing required Mono $2 assembly: $asm.dll])
|
||||
fi
|
||||
done
|
||||
])
|
|
@ -1,25 +0,0 @@
|
|||
AC_DEFUN([SHAMROCK_CHECK_MONODOC],
|
||||
[
|
||||
AC_ARG_ENABLE(docs, AC_HELP_STRING([--disable-docs],
|
||||
[Do not build documentation]), , enable_docs=yes)
|
||||
|
||||
if test "x$enable_docs" = "xyes"; then
|
||||
AC_PATH_PROG(MONODOCER, monodocer, no)
|
||||
if test "x$MONODOCER" = "xno"; then
|
||||
AC_MSG_ERROR([You need to install monodoc, or pass --disable-docs to configure to skip documentation installation])
|
||||
fi
|
||||
|
||||
AC_PATH_PROG(MDASSEMBLER, mdassembler, no)
|
||||
if test "x$MDASSEMBLER" = "xno"; then
|
||||
AC_MSG_ERROR([You need to install mdassembler, or pass --disable-docs to configure to skip documentation installation])
|
||||
fi
|
||||
|
||||
DOCDIR=`$PKG_CONFIG monodoc --variable=sourcesdir`
|
||||
AC_SUBST(DOCDIR)
|
||||
AM_CONDITIONAL(BUILD_DOCS, true)
|
||||
else
|
||||
AC_MSG_NOTICE([not building ${PACKAGE} API documentation])
|
||||
AM_CONDITIONAL(BUILD_DOCS, false)
|
||||
fi
|
||||
])
|
||||
|
|
@ -1,29 +0,0 @@
|
|||
AC_DEFUN([SHAMROCK_CHECK_NUNIT],
|
||||
[
|
||||
NUNIT_REQUIRED=2.4.7
|
||||
|
||||
AC_ARG_ENABLE(tests, AC_HELP_STRING([--enable-tests], [Enable NUnit tests]),
|
||||
enable_tests=$enableval, enable_tests="no")
|
||||
|
||||
if test "x$enable_tests" = "xno"; then
|
||||
do_tests=no
|
||||
AM_CONDITIONAL(ENABLE_TESTS, false)
|
||||
else
|
||||
PKG_CHECK_MODULES(NUNIT, nunit >= $NUNIT_REQUIRED,
|
||||
do_tests="yes", do_tests="no")
|
||||
|
||||
AC_SUBST(NUNIT_LIBS)
|
||||
AM_CONDITIONAL(ENABLE_TESTS, test "x$do_tests" = "xyes")
|
||||
|
||||
if test "x$do_tests" = "xno"; then
|
||||
PKG_CHECK_MODULES(NUNIT, mono-nunit >= 2.4,
|
||||
do_tests="yes", do_tests="no")
|
||||
|
||||
AC_SUBST(NUNIT_LIBS)
|
||||
AM_CONDITIONAL(ENABLE_TESTS, test "x$do_tests" = "xyes")
|
||||
|
||||
if test "x$do_tests" = "xno"; then
|
||||
AC_MSG_WARN([Could not find nunit: tests will not be available]) fi
|
||||
fi
|
||||
fi
|
||||
])
|
|
@ -1,15 +0,0 @@
|
|||
AC_DEFUN([SHAMROCK_FIND_PROGRAM],
|
||||
[
|
||||
AC_PATH_PROG($1, $2, $3)
|
||||
AC_SUBST($1)
|
||||
])
|
||||
|
||||
AC_DEFUN([SHAMROCK_FIND_PROGRAM_OR_BAIL],
|
||||
[
|
||||
SHAMROCK_FIND_PROGRAM($1, $2, no)
|
||||
if test "x$$1" = "xno"; then
|
||||
AC_MSG_ERROR([You need to install '$2'])
|
||||
fi
|
||||
])
|
||||
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
AC_DEFUN([SHAMROCK_CONCAT],
|
||||
[
|
||||
$1="$$1 $$2"
|
||||
])
|
||||
|
||||
AC_DEFUN([SHAMROCK_CONCAT_MODULE],
|
||||
[
|
||||
SHAMROCK_CONCAT($1_CFLAGS, $2_CFLAGS)
|
||||
SHAMROCK_CONCAT($1_LIBS, $2_LIBS)
|
||||
])
|
||||
|
|
@ -1,109 +0,0 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# Copyright (c) 2009, Damien Lespiau <damien.lespiau@gmail.com>
|
||||
#
|
||||
# Permission is hereby granted, free of charge, to any person
|
||||
# obtaining a copy of this software and associated documentation
|
||||
# files (the "Software"), to deal in the Software without
|
||||
# restriction, including without limitation the rights to use,
|
||||
# copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
# copies of the Software, and to permit persons to whom the
|
||||
# Software is furnished to do so, subject to the following
|
||||
# conditions:
|
||||
#
|
||||
# The above copyright notice and this permission notice shall be
|
||||
# included in all copies or substantial portions of the Software.
|
||||
#
|
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
||||
# OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
||||
# HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||
# OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
# we need sed
|
||||
SED=@SED@
|
||||
if test -z "$SED" ; then
|
||||
SED=sed
|
||||
fi
|
||||
|
||||
lt_unmangle ()
|
||||
{
|
||||
last_result=`echo $1 | $SED -e 's#.libs/##' -e 's#[0-9a-zA-Z_\-\.]*_la-##'`
|
||||
}
|
||||
|
||||
# the real libtool to use
|
||||
LIBTOOL="$1"
|
||||
shift
|
||||
|
||||
# if 1, don't print anything, the underlaying wrapper will do it
|
||||
pass_though=0
|
||||
|
||||
# scan the arguments, keep the right ones for libtool, and discover the mode
|
||||
preserved_args=
|
||||
|
||||
# have we seen the --tag option of libtool in the command line ?
|
||||
tag_seen=0
|
||||
|
||||
while test "$#" -gt 0; do
|
||||
opt="$1"
|
||||
shift
|
||||
|
||||
case $opt in
|
||||
--mode=*)
|
||||
mode=`echo $opt | $SED -e 's/[-_a-zA-Z0-9]*=//'`
|
||||
preserved_args="$preserved_args $opt"
|
||||
;;
|
||||
-o)
|
||||
lt_output="$1"
|
||||
preserved_args="$preserved_args $opt"
|
||||
;;
|
||||
--tag=*)
|
||||
tag_seen=1
|
||||
preserved_args="$preserved_args $opt"
|
||||
;;
|
||||
*)
|
||||
preserved_args="$preserved_args $opt"
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
case "$mode" in
|
||||
compile)
|
||||
# shave will be called and print the actual CC/CXX/LINK line
|
||||
preserved_args="$preserved_args --shave-mode=$mode"
|
||||
pass_though=1
|
||||
;;
|
||||
link)
|
||||
preserved_args="$preserved_args --shave-mode=$mode"
|
||||
Q=" LINK "
|
||||
;;
|
||||
*)
|
||||
# let's u
|
||||
# echo "*** libtool: Unimplemented mode: $mode, fill a bug report"
|
||||
;;
|
||||
esac
|
||||
|
||||
lt_unmangle "$lt_output"
|
||||
output=$last_result
|
||||
|
||||
# automake does not add a --tag switch to its libtool invocation when
|
||||
# assembling a .s file and rely on libtool to infer the right action based
|
||||
# on the compiler name. As shave is using CC to hook a wrapper, libtool gets
|
||||
# confused. Let's detect these cases and add a --tag=CC option.
|
||||
tag=""
|
||||
if test $tag_seen -eq 0 -a x"$mode" = xcompile; then
|
||||
tag="--tag=CC"
|
||||
fi
|
||||
|
||||
if test -z $V; then
|
||||
if test $pass_though -eq 0; then
|
||||
echo "$Q$output"
|
||||
fi
|
||||
$LIBTOOL --silent $tag $preserved_args
|
||||
else
|
||||
echo $LIBTOOL $tag $preserved_args
|
||||
$LIBTOOL $tag $preserved_args
|
||||
fi
|
|
@ -1,109 +0,0 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# Copyright (c) 2009, Damien Lespiau <damien.lespiau@gmail.com>
|
||||
#
|
||||
# Permission is hereby granted, free of charge, to any person
|
||||
# obtaining a copy of this software and associated documentation
|
||||
# files (the "Software"), to deal in the Software without
|
||||
# restriction, including without limitation the rights to use,
|
||||
# copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
# copies of the Software, and to permit persons to whom the
|
||||
# Software is furnished to do so, subject to the following
|
||||
# conditions:
|
||||
#
|
||||
# The above copyright notice and this permission notice shall be
|
||||
# included in all copies or substantial portions of the Software.
|
||||
#
|
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
||||
# OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
||||
# HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||
# OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
# we need sed
|
||||
SED=@SED@
|
||||
if test -z "$SED" ; then
|
||||
SED=sed
|
||||
fi
|
||||
|
||||
lt_unmangle ()
|
||||
{
|
||||
last_result=`echo $1 | $SED -e 's#.libs/##' -e 's#[0-9a-zA-Z_\-\.]*_la-##'`
|
||||
}
|
||||
|
||||
# the tool to wrap (cc, cxx, ar, ranlib, ..)
|
||||
tool="$1"
|
||||
shift
|
||||
|
||||
# the reel tool (to call)
|
||||
REEL_TOOL="$1"
|
||||
shift
|
||||
|
||||
pass_through=0
|
||||
preserved_args=
|
||||
while test "$#" -gt 0; do
|
||||
opt="$1"
|
||||
shift
|
||||
|
||||
case $opt in
|
||||
--shave-mode=*)
|
||||
mode=`echo $opt | $SED -e 's/[-_a-zA-Z0-9]*=//'`
|
||||
;;
|
||||
-o)
|
||||
lt_output="$1"
|
||||
preserved_args="$preserved_args $opt"
|
||||
;;
|
||||
-out:*|/out:*)
|
||||
lt_output="${opt#*:}"
|
||||
preserved_args="$preserved_args $opt"
|
||||
;;
|
||||
*)
|
||||
preserved_args="$preserved_args $opt"
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
# mode=link is handled in the libtool wrapper
|
||||
case "$mode,$tool" in
|
||||
link,*)
|
||||
pass_through=1
|
||||
;;
|
||||
*,cxx)
|
||||
Q=" CXX "
|
||||
;;
|
||||
*,cc)
|
||||
Q=" CC "
|
||||
;;
|
||||
*,fc)
|
||||
Q=" FC "
|
||||
;;
|
||||
*,f77)
|
||||
Q=" F77 "
|
||||
;;
|
||||
*,objc)
|
||||
Q=" OBJC "
|
||||
;;
|
||||
*,mcs)
|
||||
Q=" MCS "
|
||||
;;
|
||||
*,*)
|
||||
# should not happen
|
||||
Q=" CC "
|
||||
;;
|
||||
esac
|
||||
|
||||
lt_unmangle "$lt_output"
|
||||
output=$last_result
|
||||
|
||||
if test -z $V; then
|
||||
if test $pass_through -eq 0; then
|
||||
echo "$Q$output"
|
||||
fi
|
||||
$REEL_TOOL $preserved_args
|
||||
else
|
||||
echo $REEL_TOOL $preserved_args
|
||||
$REEL_TOOL $preserved_args
|
||||
fi
|
|
@ -1,102 +0,0 @@
|
|||
dnl Make automake/libtool output more friendly to humans
|
||||
dnl
|
||||
dnl Copyright (c) 2009, Damien Lespiau <damien.lespiau@gmail.com>
|
||||
dnl
|
||||
dnl Permission is hereby granted, free of charge, to any person
|
||||
dnl obtaining a copy of this software and associated documentation
|
||||
dnl files (the "Software"), to deal in the Software without
|
||||
dnl restriction, including without limitation the rights to use,
|
||||
dnl copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
dnl copies of the Software, and to permit persons to whom the
|
||||
dnl Software is furnished to do so, subject to the following
|
||||
dnl conditions:
|
||||
dnl
|
||||
dnl The above copyright notice and this permission notice shall be
|
||||
dnl included in all copies or substantial portions of the Software.
|
||||
dnl
|
||||
dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
dnl EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
||||
dnl OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
dnl NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
||||
dnl HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
dnl WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
dnl FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||
dnl OTHER DEALINGS IN THE SOFTWARE.
|
||||
dnl
|
||||
dnl SHAVE_INIT([shavedir],[default_mode])
|
||||
dnl
|
||||
dnl shavedir: the directory where the shave scripts are, it defaults to
|
||||
dnl $(top_builddir)
|
||||
dnl default_mode: (enable|disable) default shave mode. This parameter
|
||||
dnl controls shave's behaviour when no option has been
|
||||
dnl given to configure. It defaults to disable.
|
||||
dnl
|
||||
dnl * SHAVE_INIT should be called late in your configure.(ac|in) file (just
|
||||
dnl before AC_CONFIG_FILE/AC_OUTPUT is perfect. This macro rewrites CC and
|
||||
dnl LIBTOOL, you don't want the configure tests to have these variables
|
||||
dnl re-defined.
|
||||
dnl * This macro requires GNU make's -s option.
|
||||
|
||||
AC_DEFUN([_SHAVE_ARG_ENABLE],
|
||||
[
|
||||
AC_ARG_ENABLE([shave],
|
||||
AS_HELP_STRING(
|
||||
[--enable-shave],
|
||||
[use shave to make the build pretty [[default=$1]]]),,
|
||||
[enable_shave=$1]
|
||||
)
|
||||
])
|
||||
|
||||
AC_DEFUN([SHAVE_INIT],
|
||||
[
|
||||
dnl you can tweak the default value of enable_shave
|
||||
m4_if([$2], [enable], [_SHAVE_ARG_ENABLE(yes)], [_SHAVE_ARG_ENABLE(no)])
|
||||
|
||||
if test x"$enable_shave" = xyes; then
|
||||
dnl where can we find the shave scripts?
|
||||
m4_if([$1],,
|
||||
[shavedir="$ac_pwd"],
|
||||
[shavedir="$ac_pwd/$1"])
|
||||
AC_SUBST(shavedir)
|
||||
|
||||
dnl make is now quiet
|
||||
AC_SUBST([MAKEFLAGS], [-s])
|
||||
AC_SUBST([AM_MAKEFLAGS], ['`test -z $V && echo -s`'])
|
||||
|
||||
dnl we need sed
|
||||
AC_CHECK_PROG(SED,sed,sed,false)
|
||||
|
||||
dnl substitute libtool
|
||||
SHAVE_SAVED_LIBTOOL=$LIBTOOL
|
||||
LIBTOOL="${SHELL} ${shavedir}/shave-libtool '${SHAVE_SAVED_LIBTOOL}'"
|
||||
AC_SUBST(LIBTOOL)
|
||||
|
||||
dnl substitute cc/cxx
|
||||
SHAVE_SAVED_CC=$CC
|
||||
SHAVE_SAVED_CXX=$CXX
|
||||
SHAVE_SAVED_FC=$FC
|
||||
SHAVE_SAVED_F77=$F77
|
||||
SHAVE_SAVED_OBJC=$OBJC
|
||||
SHAVE_SAVED_MCS=$MCS
|
||||
CC="${SHELL} ${shavedir}/shave cc ${SHAVE_SAVED_CC}"
|
||||
CXX="${SHELL} ${shavedir}/shave cxx ${SHAVE_SAVED_CXX}"
|
||||
FC="${SHELL} ${shavedir}/shave fc ${SHAVE_SAVED_FC}"
|
||||
F77="${SHELL} ${shavedir}/shave f77 ${SHAVE_SAVED_F77}"
|
||||
OBJC="${SHELL} ${shavedir}/shave objc ${SHAVE_SAVED_OBJC}"
|
||||
MCS="${SHELL} ${shavedir}/shave mcs ${SHAVE_SAVED_MCS}"
|
||||
AC_SUBST(CC)
|
||||
AC_SUBST(CXX)
|
||||
AC_SUBST(FC)
|
||||
AC_SUBST(F77)
|
||||
AC_SUBST(OBJC)
|
||||
AC_SUBST(MCS)
|
||||
|
||||
V=@
|
||||
else
|
||||
V=1
|
||||
fi
|
||||
Q='$(V:1=)'
|
||||
AC_SUBST(V)
|
||||
AC_SUBST(Q)
|
||||
])
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
AC_DEFUN([SPARKLESHARE_CHECK_GTK_SHARP],
|
||||
[
|
||||
GTK_SHARP_REQUIRED=2.99.1
|
||||
|
||||
PKG_CHECK_MODULES(GTK_SHARP,
|
||||
gtk-sharp-3.0 >= $GTK_SHARP_REQUIRED)
|
||||
AC_SUBST(GTK_SHARP_LIBS)
|
||||
|
||||
PKG_CHECK_MODULES(GLIB_SHARP,
|
||||
glib-sharp-3.0 >= $GTK_SHARP_REQUIRED)
|
||||
AC_SUBST(GLIB_SHARP_LIBS)
|
||||
])
|
||||
|
136
configure.ac
136
configure.ac
|
@ -1,136 +0,0 @@
|
|||
dnl Process this file with autoconf to produce a configure script.
|
||||
m4_define([sparkleshare_version], [2.0.1])
|
||||
|
||||
AC_PREREQ([2.54])
|
||||
AC_INIT([SparkleShare], sparkleshare_version)
|
||||
AM_INIT_AUTOMAKE([1.11 dist-bzip2 dist-zip foreign tar-pax])
|
||||
AM_MAINTAINER_MODE
|
||||
LT_INIT
|
||||
|
||||
AC_CONFIG_MACRO_DIRS([build/m4/sparkleshare build/m4/shamrock build/m4/shave])
|
||||
|
||||
dnl Export Version Info
|
||||
AC_SUBST([ASM_VERSION], [sparkleshare_version])
|
||||
|
||||
dnl pkg-config
|
||||
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
|
||||
if test "$PKG_CONFIG" = "no"; then
|
||||
AC_MSG_ERROR([pkg-config is not installed])
|
||||
fi
|
||||
|
||||
SHAMROCK_EXPAND_LIBDIR
|
||||
SHAMROCK_EXPAND_BINDIR
|
||||
SHAMROCK_EXPAND_DATADIR
|
||||
|
||||
AC_PROG_INSTALL
|
||||
|
||||
dnl Mono and mcs
|
||||
SHAMROCK_CHECK_MONO_MODULE(3.2.8)
|
||||
SHAMROCK_FIND_MONO_RUNTIME
|
||||
|
||||
PKG_CHECK_EXISTS([mono >= 3.2.8],
|
||||
[SHAMROCK_FIND_MONO_4_5_COMPILER
|
||||
SHAMROCK_CHECK_MONO_GAC_ASSEMBLIES([
|
||||
System
|
||||
])])
|
||||
|
||||
AC_ARG_ENABLE(debug,
|
||||
AC_HELP_STRING([--enable-debug],
|
||||
[Use 'DEBUG' Configuration [default=YES]]),
|
||||
enable_debug=yes, enable_debug=no)
|
||||
AM_CONDITIONAL(ENABLE_DEBUG, test "$enable_debug" = "yes")
|
||||
if test "$enable_debug" = "yes" ; then
|
||||
CONFIG_REQUESTED="yes"
|
||||
fi
|
||||
|
||||
AC_ARG_ENABLE(release,
|
||||
AC_HELP_STRING([--enable-release],
|
||||
[Use 'RELEASE' Configuration [default=NO]]),
|
||||
enable_release=yes, enable_release=no)
|
||||
AM_CONDITIONAL(ENABLE_RELEASE, test "$enable_release" = "yes")
|
||||
if test "$enable_release" = "yes" ; then
|
||||
CONFIG_REQUESTED="yes"
|
||||
fi
|
||||
|
||||
if test -z "$CONFIG_REQUESTED" ; then
|
||||
AM_CONDITIONAL(ENABLE_DEBUG, true)
|
||||
enable_debug=yes
|
||||
fi
|
||||
|
||||
AC_ARG_ENABLE(appindicator,
|
||||
AS_HELP_STRING([--enable-appindicator[=@<:@no/auto/yes@:>@]],[Build support for application indicators ]),
|
||||
[enable_appindicator=$enableval],
|
||||
[enable_appindicator="auto"])
|
||||
|
||||
GUISUBDIRS=
|
||||
|
||||
OSNAME=`uname -s`
|
||||
if test "$OSNAME" = "Linux" ; then
|
||||
SPARKLESHARE_CHECK_GTK_SHARP
|
||||
PKG_CHECK_MODULES(NOTIFY_SHARP, notify-sharp-3.0)
|
||||
|
||||
dnl check for webkit2-sharp
|
||||
PKG_CHECK_MODULES(WEBKIT2_SHARP, webkit2-sharp-4.0, have_webkit2_sharp=yes, have_webkit2_sharp=no)
|
||||
if test "$have_webkit2_sharp" = "no" ; then
|
||||
AC_MSG_ERROR([webkit2-sharp-4.0 is not installed])
|
||||
AC_SUBST(WEBKIT2_SHARP_LIBS)
|
||||
fi
|
||||
|
||||
APPINDICATOR_REQUIRED=0.1
|
||||
|
||||
if test "$enable_appindicator" = "auto" ; then
|
||||
PKG_CHECK_EXISTS([appindicator3-sharp-0.1 >= $APPINDICATOR_REQUIRED],
|
||||
enable_appindicator="yes", enable_appindicator="no")
|
||||
fi
|
||||
|
||||
if test "$enable_appindicator" = "yes" ; then
|
||||
PKG_CHECK_EXISTS([appindicator3-sharp-0.1 >= $APPINDICATOR_REQUIRED],,
|
||||
AC_MSG_ERROR([appindicator3-sharp-0.1 is not installed]))
|
||||
|
||||
PKG_CHECK_MODULES(APP_INDICATOR, appindicator3-sharp-0.1 >= $APPINDICATOR_REQUIRED)
|
||||
AC_SUBST(APP_INDICATOR_CFLAGS)
|
||||
AC_SUBST(APP_INDICATOR_LIBS)
|
||||
AC_DEFINE(HAVE_APP_INDICATOR, 1, [Have AppIndicator])
|
||||
fi
|
||||
|
||||
GUISUBDIRS=SparkleShare
|
||||
fi
|
||||
|
||||
AM_CONDITIONAL(HAVE_APP_INDICATOR, test "$enable_appindicator" = "yes")
|
||||
AM_CONDITIONAL(BUILD_FLATPAK, test "$prefix" = "/app")
|
||||
|
||||
AC_SUBST([GUISUBDIRS])
|
||||
SHAMROCK_CHECK_NUNIT
|
||||
SHAVE_INIT([build/m4/shave], [enable])
|
||||
|
||||
AC_OUTPUT([
|
||||
Makefile
|
||||
build/Makefile
|
||||
build/m4/Makefile
|
||||
build/m4/shave/shave
|
||||
build/m4/shave/shave-libtool
|
||||
Sparkles/InstallationInfo.Directory.cs
|
||||
Sparkles/Makefile
|
||||
Sparkles/Git/Makefile
|
||||
SparkleShare/Makefile
|
||||
SparkleShare/Common/Makefile
|
||||
SparkleShare/Common/HTML/Makefile
|
||||
SparkleShare/Common/Presets/Makefile
|
||||
SparkleShare/Common/Images/Makefile
|
||||
SparkleShare/Linux/Makefile
|
||||
SparkleShare/Linux/Images/Makefile
|
||||
SparkleShare/Linux/Images/icons/Makefile
|
||||
SparkleShare/Linux/Images/icons/hicolor/Makefile
|
||||
SparkleShare/Linux/Images/icons/ubuntu-mono-dark/Makefile
|
||||
SparkleShare/Linux/Images/icons/ubuntu-mono-light/Makefile
|
||||
SparkleShare/Linux/sparkleshare
|
||||
])
|
||||
|
||||
echo "
|
||||
SparkleShare ${VERSION}
|
||||
|
||||
Configuration:
|
||||
Prefix: ${prefix}
|
||||
|
||||
"
|
||||
|
Loading…
Reference in a new issue