part one of moving the build environment over to automake/autoconf. beware!
This commit is contained in:
parent
b73297e799
commit
bd3ce76fa5
687
Makefile
687
Makefile
|
@ -1,38 +1,663 @@
|
|||
# $Id$
|
||||
# Makefile.in generated by automake 1.9.6 from Makefile.am.
|
||||
# Makefile. Generated from Makefile.in by configure.
|
||||
|
||||
include mk/common.mk
|
||||
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
||||
# 2003, 2004, 2005 Free Software Foundation, Inc.
|
||||
# This Makefile.in is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
default: all
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
# Before we do anything else, make sure we have config.mk and an
|
||||
# updated version.mk
|
||||
|
||||
required: mk/config.mk mk/version.mk
|
||||
mk/config.mk:
|
||||
@echo "Please run ./configure first."
|
||||
@false
|
||||
mk/version.mk: FORCE
|
||||
@echo "Checking SVN revision..."
|
||||
@./version.sh
|
||||
FORCE:
|
||||
srcdir = .
|
||||
top_srcdir = .
|
||||
|
||||
# Now call the Makefile that'll really build
|
||||
# OS X has its special Makefile that wraps to Xcode
|
||||
pkgdatadir = $(datadir)/Transmission
|
||||
pkglibdir = $(libdir)/Transmission
|
||||
pkgincludedir = $(includedir)/Transmission
|
||||
top_builddir = .
|
||||
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
||||
INSTALL = /usr/bin/install -c
|
||||
install_sh_DATA = $(install_sh) -c -m 644
|
||||
install_sh_PROGRAM = $(install_sh) -c
|
||||
install_sh_SCRIPT = $(install_sh) -c
|
||||
INSTALL_HEADER = $(INSTALL_DATA)
|
||||
transform = $(program_transform_name)
|
||||
NORMAL_INSTALL = :
|
||||
PRE_INSTALL = :
|
||||
POST_INSTALL = :
|
||||
NORMAL_UNINSTALL = :
|
||||
PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
build_triplet = x86_64-unknown-linux-gnu
|
||||
host_triplet = x86_64-unknown-linux-gnu
|
||||
DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
|
||||
$(srcdir)/Makefile.in $(srcdir)/config.h.in \
|
||||
$(srcdir)/transmission.spec.in $(top_srcdir)/configure AUTHORS \
|
||||
COPYING ChangeLog INSTALL NEWS config.guess config.sub depcomp \
|
||||
install-sh missing
|
||||
subdir = .
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
|
||||
$(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
|
||||
configure.lineno configure.status.lineno
|
||||
mkinstalldirs = $(install_sh) -d
|
||||
CONFIG_HEADER = config.h
|
||||
CONFIG_CLEAN_FILES = transmission.spec
|
||||
SOURCES =
|
||||
DIST_SOURCES =
|
||||
RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
|
||||
html-recursive info-recursive install-data-recursive \
|
||||
install-exec-recursive install-info-recursive \
|
||||
install-recursive installcheck-recursive installdirs-recursive \
|
||||
pdf-recursive ps-recursive uninstall-info-recursive \
|
||||
uninstall-recursive
|
||||
ETAGS = etags
|
||||
CTAGS = ctags
|
||||
DIST_SUBDIRS = libtransmission daemon cli gtk beos macosx \
|
||||
Transmission.xcodeproj
|
||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||
distdir = $(PACKAGE)-$(VERSION)
|
||||
top_distdir = $(distdir)
|
||||
am__remove_distdir = \
|
||||
{ test ! -d $(distdir) \
|
||||
|| { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
|
||||
&& rm -fr $(distdir); }; }
|
||||
DIST_ARCHIVES = $(distdir).tar.gz
|
||||
GZIP_ENV = --best
|
||||
distuninstallcheck_listfiles = find . -type f -print
|
||||
distcleancheck_listfiles = find . -type f -print
|
||||
ACLOCAL = ${SHELL} /home/charles/Desktop/T/missing --run aclocal-1.9
|
||||
AMDEP_FALSE = #
|
||||
AMDEP_TRUE =
|
||||
AMTAR = ${SHELL} /home/charles/Desktop/T/missing --run tar
|
||||
AUTOCONF = ${SHELL} /home/charles/Desktop/T/missing --run autoconf
|
||||
AUTOHEADER = ${SHELL} /home/charles/Desktop/T/missing --run autoheader
|
||||
AUTOMAKE = ${SHELL} /home/charles/Desktop/T/missing --run automake-1.9
|
||||
AWK = gawk
|
||||
BUNDLE_VERSION = 2398:2399M
|
||||
CATALOGS = bg.gmo es.gmo fi.gmo fr.gmo it.gmo pl.gmo ro.gmo ru.gmo sv.gmo
|
||||
CATOBJEXT = .gmo
|
||||
CC = gcc
|
||||
CCDEPMODE = depmode=gcc3
|
||||
CFLAGS = -Os -Wall -ggdb3
|
||||
CPP = gcc -E
|
||||
CPPFLAGS =
|
||||
CXX = g++
|
||||
CXXDEPMODE = depmode=gcc3
|
||||
CXXFLAGS = -Os -Wall -ggdb3
|
||||
CYGPATH_W = echo
|
||||
DATADIRNAME = share
|
||||
DEFS = -DHAVE_CONFIG_H
|
||||
DEPDIR = .deps
|
||||
ECHO_C =
|
||||
ECHO_N = -n
|
||||
ECHO_T =
|
||||
EGREP = grep -E
|
||||
EXEEXT =
|
||||
GETTEXT_PACKAGE = transmission
|
||||
GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include
|
||||
GLIB_GENMARSHAL = glib-genmarshal
|
||||
GLIB_LIBS = -Wl,--export-dynamic -pthread -L/lib64 -lgobject-2.0 -lgmodule-2.0 -ldl -lgthread-2.0 -lrt -lglib-2.0
|
||||
GLIB_MINIMUM = 2.4.0
|
||||
GLIB_MKENUMS = glib-mkenums
|
||||
GMOFILES = bg.gmo es.gmo fi.gmo fr.gmo it.gmo pl.gmo ro.gmo ru.gmo sv.gmo
|
||||
GMSGFMT = /usr/bin/msgfmt
|
||||
GOBJECT_QUERY = gobject-query
|
||||
GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12
|
||||
GTK_LIBS = -pthread -L/lib64 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lgthread-2.0 -lrt -lglib-2.0
|
||||
GTK_MINIMUM = 2.4.0
|
||||
HAVE_BEOS_FALSE =
|
||||
HAVE_BEOS_TRUE = #
|
||||
HAVE_DARWIN_FALSE =
|
||||
HAVE_DARWIN_TRUE = #
|
||||
HAVE_WINDOWS_FALSE =
|
||||
HAVE_WINDOWS_TRUE = #
|
||||
INSTALL_DATA = ${INSTALL} -m 644
|
||||
INSTALL_PROGRAM = ${INSTALL}
|
||||
INSTALL_SCRIPT = ${INSTALL}
|
||||
INSTALL_STRIP_PROGRAM = ${SHELL} $(install_sh) -c -s
|
||||
INSTOBJEXT = .mo
|
||||
INTLLIBS =
|
||||
LDFLAGS =
|
||||
LIBOBJS =
|
||||
LIBS = -lssl -lcrypto
|
||||
LTLIBOBJS =
|
||||
MAINT = 2
|
||||
MAINTAINER_MODE_FALSE =
|
||||
MAINTAINER_MODE_TRUE = #
|
||||
MAKEINFO = ${SHELL} /home/charles/Desktop/T/missing --run makeinfo
|
||||
MKINSTALLDIRS = ./mkinstalldirs
|
||||
MSGFMT = /usr/bin/msgfmt
|
||||
OBJEXT = o
|
||||
PACKAGE = Transmission
|
||||
PACKAGE_BUGREPORT = http://bugzilla.gnome.org/enter_bug.cgi?product=Pan
|
||||
PACKAGE_NAME = Transmission
|
||||
PACKAGE_STRING = Transmission 0.72Z
|
||||
PACKAGE_TARNAME = transmission
|
||||
PACKAGE_VERSION = 0.72Z
|
||||
PATH_SEPARATOR = :
|
||||
PKG_CONFIG = /usr/bin/pkg-config
|
||||
POFILES = bg.po es.po fi.po fr.po it.po pl.po ro.po ru.po sv.po
|
||||
POSUB = po
|
||||
PO_IN_DATADIR_FALSE =
|
||||
PO_IN_DATADIR_TRUE =
|
||||
PTHREAD_CC = gcc
|
||||
PTHREAD_CFLAGS = -pthread
|
||||
PTHREAD_LIBS =
|
||||
RANLIB = ranlib
|
||||
SET_MAKE =
|
||||
SHELL = /bin/sh
|
||||
STRIP =
|
||||
USE_NLS = yes
|
||||
VERSION = 0.72Z
|
||||
VERSION_BETA = Z
|
||||
VERSION_MAINTENANCE = 2
|
||||
VERSION_MAJOR = 0
|
||||
VERSION_MINOR = 7
|
||||
VERSION_PACKAGE = 0.72Z-r2398:2399M
|
||||
VERSION_REVISION = 2398:2399M
|
||||
VERSION_STRING = 0.72Z
|
||||
VERSION_STRING_LONG = 0.72Z-r2398:2399M
|
||||
WINDRES =
|
||||
WITH_GTK_FALSE = #
|
||||
WITH_GTK_TRUE =
|
||||
WITH_LIBEVENT_FALSE = #
|
||||
WITH_LIBEVENT_TRUE =
|
||||
WX_MINIMUM = 2.6.0
|
||||
XGETTEXT = /usr/bin/xgettext
|
||||
ac_ct_CC = gcc
|
||||
ac_ct_CXX = g++
|
||||
ac_ct_RANLIB = ranlib
|
||||
ac_ct_STRIP =
|
||||
ac_pt_PKG_CONFIG =
|
||||
acx_pthread_config =
|
||||
am__fastdepCC_FALSE = #
|
||||
am__fastdepCC_TRUE =
|
||||
am__fastdepCXX_FALSE = #
|
||||
am__fastdepCXX_TRUE =
|
||||
am__include = include
|
||||
am__leading_dot = .
|
||||
am__quote =
|
||||
am__tar = ${AMTAR} chof - "$$tardir"
|
||||
am__untar = ${AMTAR} xf -
|
||||
bindir = ${exec_prefix}/bin
|
||||
build = x86_64-unknown-linux-gnu
|
||||
build_alias =
|
||||
build_cpu = x86_64
|
||||
build_os = linux-gnu
|
||||
build_vendor = unknown
|
||||
datadir = ${prefix}/share
|
||||
exec_prefix = ${prefix}
|
||||
host = x86_64-unknown-linux-gnu
|
||||
host_alias =
|
||||
host_cpu = x86_64
|
||||
host_os = linux-gnu
|
||||
host_vendor = unknown
|
||||
includedir = ${prefix}/include
|
||||
infodir = ${prefix}/info
|
||||
install_sh = /home/charles/Desktop/T/install-sh
|
||||
libdir = ${exec_prefix}/lib
|
||||
libexecdir = ${exec_prefix}/libexec
|
||||
localstatedir = ${prefix}/var
|
||||
mandir = ${prefix}/man
|
||||
mkdir_p = mkdir -p --
|
||||
oldincludedir = /usr/include
|
||||
prefix = /usr/local
|
||||
program_transform_name = s,x,x,
|
||||
sbindir = ${exec_prefix}/sbin
|
||||
sharedstatedir = ${prefix}/com
|
||||
sysconfdir = ${prefix}/etc
|
||||
target_alias =
|
||||
GTK_DIR = gtk
|
||||
DAEMON_DIR = daemon
|
||||
#BEOS_DIR = beos
|
||||
#MAC_DIR = macosx Transmission.xcodeproj
|
||||
SUBDIRS = libtransmission $(DAEMON_DIR) cli $(GTK_DIR) $(BEOS_DIR) $(MAC_DIR)
|
||||
DISTCLEANFILES = \
|
||||
Transmission.desktop
|
||||
|
||||
-include mk/config.mk
|
||||
ifneq ($(SYSTEM),Darwin)
|
||||
MAKEARGS += -f mk/default.mk
|
||||
else
|
||||
MAKEARGS += -f mk/osx.mk
|
||||
endif
|
||||
EXTRA_DIST = \
|
||||
NEWS \
|
||||
AUTHORS \
|
||||
LICENSE \
|
||||
README
|
||||
|
||||
all: required
|
||||
@$(MAKE) $(MAKEARGS) all
|
||||
clean: required
|
||||
@$(MAKE) $(MAKEARGS) clean
|
||||
install: all
|
||||
@$(MAKE) $(MAKEARGS) install
|
||||
package: all
|
||||
@$(MAKE) $(MAKEARGS) package
|
||||
package-release: all
|
||||
@$(MAKE) $(MAKEARGS) package-release
|
||||
all: config.h
|
||||
$(MAKE) $(AM_MAKEFLAGS) all-recursive
|
||||
|
||||
.SUFFIXES:
|
||||
am--refresh:
|
||||
@:
|
||||
$(srcdir)/Makefile.in: # $(srcdir)/Makefile.am $(am__configure_deps)
|
||||
@for dep in $?; do \
|
||||
case '$(am__configure_deps)' in \
|
||||
*$$dep*) \
|
||||
echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \
|
||||
cd $(srcdir) && $(AUTOMAKE) --gnu \
|
||||
&& exit 0; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
done; \
|
||||
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
|
||||
cd $(top_srcdir) && \
|
||||
$(AUTOMAKE) --gnu Makefile
|
||||
.PRECIOUS: Makefile
|
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||
@case '$?' in \
|
||||
*config.status*) \
|
||||
echo ' $(SHELL) ./config.status'; \
|
||||
$(SHELL) ./config.status;; \
|
||||
*) \
|
||||
echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
|
||||
esac;
|
||||
|
||||
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
||||
$(SHELL) ./config.status --recheck
|
||||
|
||||
$(top_srcdir)/configure: # $(am__configure_deps)
|
||||
cd $(srcdir) && $(AUTOCONF)
|
||||
$(ACLOCAL_M4): # $(am__aclocal_m4_deps)
|
||||
cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
|
||||
|
||||
config.h: stamp-h1
|
||||
@if test ! -f $@; then \
|
||||
rm -f stamp-h1; \
|
||||
$(MAKE) stamp-h1; \
|
||||
else :; fi
|
||||
|
||||
stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
|
||||
@rm -f stamp-h1
|
||||
cd $(top_builddir) && $(SHELL) ./config.status config.h
|
||||
$(srcdir)/config.h.in: # $(am__configure_deps)
|
||||
cd $(top_srcdir) && $(AUTOHEADER)
|
||||
rm -f stamp-h1
|
||||
touch $@
|
||||
|
||||
distclean-hdr:
|
||||
-rm -f config.h stamp-h1
|
||||
transmission.spec: $(top_builddir)/config.status $(srcdir)/transmission.spec.in
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $@
|
||||
uninstall-info-am:
|
||||
|
||||
# This directory's subdirectories are mostly independent; you can cd
|
||||
# into them and run `make' without going through this Makefile.
|
||||
# To change the values of `make' variables: instead of editing Makefiles,
|
||||
# (1) if the variable is set in `config.status', edit `config.status'
|
||||
# (which will cause the Makefiles to be regenerated when you run `make');
|
||||
# (2) otherwise, pass the desired values on the `make' command line.
|
||||
$(RECURSIVE_TARGETS):
|
||||
@failcom='exit 1'; \
|
||||
for f in x $$MAKEFLAGS; do \
|
||||
case $$f in \
|
||||
*=* | --[!k]*);; \
|
||||
*k*) failcom='fail=yes';; \
|
||||
esac; \
|
||||
done; \
|
||||
dot_seen=no; \
|
||||
target=`echo $@ | sed s/-recursive//`; \
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
echo "Making $$target in $$subdir"; \
|
||||
if test "$$subdir" = "."; then \
|
||||
dot_seen=yes; \
|
||||
local_target="$$target-am"; \
|
||||
else \
|
||||
local_target="$$target"; \
|
||||
fi; \
|
||||
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
||||
|| eval $$failcom; \
|
||||
done; \
|
||||
if test "$$dot_seen" = "no"; then \
|
||||
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
|
||||
fi; test -z "$$fail"
|
||||
|
||||
mostlyclean-recursive clean-recursive distclean-recursive \
|
||||
maintainer-clean-recursive:
|
||||
@failcom='exit 1'; \
|
||||
for f in x $$MAKEFLAGS; do \
|
||||
case $$f in \
|
||||
*=* | --[!k]*);; \
|
||||
*k*) failcom='fail=yes';; \
|
||||
esac; \
|
||||
done; \
|
||||
dot_seen=no; \
|
||||
case "$@" in \
|
||||
distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
|
||||
*) list='$(SUBDIRS)' ;; \
|
||||
esac; \
|
||||
rev=''; for subdir in $$list; do \
|
||||
if test "$$subdir" = "."; then :; else \
|
||||
rev="$$subdir $$rev"; \
|
||||
fi; \
|
||||
done; \
|
||||
rev="$$rev ."; \
|
||||
target=`echo $@ | sed s/-recursive//`; \
|
||||
for subdir in $$rev; do \
|
||||
echo "Making $$target in $$subdir"; \
|
||||
if test "$$subdir" = "."; then \
|
||||
local_target="$$target-am"; \
|
||||
else \
|
||||
local_target="$$target"; \
|
||||
fi; \
|
||||
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
||||
|| eval $$failcom; \
|
||||
done && test -z "$$fail"
|
||||
tags-recursive:
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
|
||||
done
|
||||
ctags-recursive:
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
|
||||
done
|
||||
|
||||
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
|
||||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
mkid -fID $$unique
|
||||
tags: TAGS
|
||||
|
||||
TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
|
||||
$(TAGS_FILES) $(LISP)
|
||||
tags=; \
|
||||
here=`pwd`; \
|
||||
if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
|
||||
include_option=--etags-include; \
|
||||
empty_fix=.; \
|
||||
else \
|
||||
include_option=--include; \
|
||||
empty_fix=; \
|
||||
fi; \
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
if test "$$subdir" = .; then :; else \
|
||||
test ! -f $$subdir/TAGS || \
|
||||
tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
|
||||
fi; \
|
||||
done; \
|
||||
list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
|
||||
test -n "$$unique" || unique=$$empty_fix; \
|
||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||
$$tags $$unique; \
|
||||
fi
|
||||
ctags: CTAGS
|
||||
CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
|
||||
$(TAGS_FILES) $(LISP)
|
||||
tags=; \
|
||||
here=`pwd`; \
|
||||
list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
test -z "$(CTAGS_ARGS)$$tags$$unique" \
|
||||
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
|
||||
$$tags $$unique
|
||||
|
||||
GTAGS:
|
||||
here=`$(am__cd) $(top_builddir) && pwd` \
|
||||
&& cd $(top_srcdir) \
|
||||
&& gtags -i $(GTAGS_ARGS) $$here
|
||||
|
||||
distclean-tags:
|
||||
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
|
||||
|
||||
distdir: $(DISTFILES)
|
||||
$(am__remove_distdir)
|
||||
mkdir $(distdir)
|
||||
$(mkdir_p) $(distdir)/. $(distdir)/libtransmission $(distdir)/macosx
|
||||
@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
|
||||
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
|
||||
list='$(DISTFILES)'; for file in $$list; do \
|
||||
case $$file in \
|
||||
$(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
|
||||
$(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
|
||||
esac; \
|
||||
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
||||
dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
|
||||
if test "$$dir" != "$$file" && test "$$dir" != "."; then \
|
||||
dir="/$$dir"; \
|
||||
$(mkdir_p) "$(distdir)$$dir"; \
|
||||
else \
|
||||
dir=''; \
|
||||
fi; \
|
||||
if test -d $$d/$$file; then \
|
||||
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
||||
cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
|
||||
fi; \
|
||||
cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
|
||||
else \
|
||||
test -f $(distdir)/$$file \
|
||||
|| cp -p $$d/$$file $(distdir)/$$file \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
|
||||
if test "$$subdir" = .; then :; else \
|
||||
test -d "$(distdir)/$$subdir" \
|
||||
|| $(mkdir_p) "$(distdir)/$$subdir" \
|
||||
|| exit 1; \
|
||||
distdir=`$(am__cd) $(distdir) && pwd`; \
|
||||
top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
|
||||
(cd $$subdir && \
|
||||
$(MAKE) $(AM_MAKEFLAGS) \
|
||||
top_distdir="$$top_distdir" \
|
||||
distdir="$$distdir/$$subdir" \
|
||||
distdir) \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
-find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
|
||||
! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
|
||||
! -type d ! -perm -400 -exec chmod a+r {} \; -o \
|
||||
! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
|
||||
|| chmod -R a+r $(distdir)
|
||||
dist-gzip: distdir
|
||||
tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
|
||||
$(am__remove_distdir)
|
||||
|
||||
dist-bzip2: distdir
|
||||
tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
|
||||
$(am__remove_distdir)
|
||||
|
||||
dist-tarZ: distdir
|
||||
tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
|
||||
$(am__remove_distdir)
|
||||
|
||||
dist-shar: distdir
|
||||
shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
|
||||
$(am__remove_distdir)
|
||||
|
||||
dist-zip: distdir
|
||||
-rm -f $(distdir).zip
|
||||
zip -rq $(distdir).zip $(distdir)
|
||||
$(am__remove_distdir)
|
||||
|
||||
dist dist-all: distdir
|
||||
tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
|
||||
$(am__remove_distdir)
|
||||
|
||||
# This target untars the dist file and tries a VPATH configuration. Then
|
||||
# it guarantees that the distribution is self-contained by making another
|
||||
# tarfile.
|
||||
distcheck: dist
|
||||
case '$(DIST_ARCHIVES)' in \
|
||||
*.tar.gz*) \
|
||||
GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
|
||||
*.tar.bz2*) \
|
||||
bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
|
||||
*.tar.Z*) \
|
||||
uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
|
||||
*.shar.gz*) \
|
||||
GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
|
||||
*.zip*) \
|
||||
unzip $(distdir).zip ;;\
|
||||
esac
|
||||
chmod -R a-w $(distdir); chmod a+w $(distdir)
|
||||
mkdir $(distdir)/_build
|
||||
mkdir $(distdir)/_inst
|
||||
chmod a-w $(distdir)
|
||||
dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
|
||||
&& dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
|
||||
&& cd $(distdir)/_build \
|
||||
&& ../configure --srcdir=.. --prefix="$$dc_install_base" \
|
||||
$(DISTCHECK_CONFIGURE_FLAGS) \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) dvi \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) check \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) install \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) installcheck \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) uninstall \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
|
||||
distuninstallcheck \
|
||||
&& chmod -R a-w "$$dc_install_base" \
|
||||
&& ({ \
|
||||
(cd ../.. && umask 077 && mkdir "$$dc_destdir") \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
|
||||
distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
|
||||
} || { rm -rf "$$dc_destdir"; exit 1; }) \
|
||||
&& rm -rf "$$dc_destdir" \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) dist \
|
||||
&& rm -rf $(DIST_ARCHIVES) \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) distcleancheck
|
||||
$(am__remove_distdir)
|
||||
@(echo "$(distdir) archives ready for distribution: "; \
|
||||
list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
|
||||
sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}'
|
||||
distuninstallcheck:
|
||||
@cd $(distuninstallcheck_dir) \
|
||||
&& test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
|
||||
|| { echo "ERROR: files left after uninstall:" ; \
|
||||
if test -n "$(DESTDIR)"; then \
|
||||
echo " (check DESTDIR support)"; \
|
||||
fi ; \
|
||||
$(distuninstallcheck_listfiles) ; \
|
||||
exit 1; } >&2
|
||||
distcleancheck: distclean
|
||||
@if test '$(srcdir)' = . ; then \
|
||||
echo "ERROR: distcleancheck can only run from a VPATH build" ; \
|
||||
exit 1 ; \
|
||||
fi
|
||||
@test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
|
||||
|| { echo "ERROR: files left in build directory after distclean:" ; \
|
||||
$(distcleancheck_listfiles) ; \
|
||||
exit 1; } >&2
|
||||
check-am: all-am
|
||||
check: check-recursive
|
||||
all-am: Makefile config.h
|
||||
installdirs: installdirs-recursive
|
||||
installdirs-am:
|
||||
install: install-recursive
|
||||
install-exec: install-exec-recursive
|
||||
install-data: install-data-recursive
|
||||
uninstall: uninstall-recursive
|
||||
|
||||
install-am: all-am
|
||||
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||
|
||||
installcheck: installcheck-recursive
|
||||
install-strip:
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
`test -z '$(STRIP)' || \
|
||||
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
|
||||
mostlyclean-generic:
|
||||
|
||||
clean-generic:
|
||||
|
||||
distclean-generic:
|
||||
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
||||
-test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
|
||||
|
||||
maintainer-clean-generic:
|
||||
@echo "This command is intended for maintainers to use"
|
||||
@echo "it deletes files that may require special tools to rebuild."
|
||||
clean: clean-recursive
|
||||
|
||||
clean-am: clean-generic mostlyclean-am
|
||||
|
||||
distclean: distclean-recursive
|
||||
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
|
||||
-rm -f Makefile
|
||||
distclean-am: clean-am distclean-generic distclean-hdr distclean-tags
|
||||
|
||||
dvi: dvi-recursive
|
||||
|
||||
dvi-am:
|
||||
|
||||
html: html-recursive
|
||||
|
||||
info: info-recursive
|
||||
|
||||
info-am:
|
||||
|
||||
install-data-am:
|
||||
|
||||
install-exec-am:
|
||||
|
||||
install-info: install-info-recursive
|
||||
|
||||
install-man:
|
||||
|
||||
installcheck-am:
|
||||
|
||||
maintainer-clean: maintainer-clean-recursive
|
||||
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
|
||||
-rm -rf $(top_srcdir)/autom4te.cache
|
||||
-rm -f Makefile
|
||||
maintainer-clean-am: distclean-am maintainer-clean-generic
|
||||
|
||||
mostlyclean: mostlyclean-recursive
|
||||
|
||||
mostlyclean-am: mostlyclean-generic
|
||||
|
||||
pdf: pdf-recursive
|
||||
|
||||
pdf-am:
|
||||
|
||||
ps: ps-recursive
|
||||
|
||||
ps-am:
|
||||
|
||||
uninstall-am: uninstall-info-am
|
||||
|
||||
uninstall-info: uninstall-info-recursive
|
||||
|
||||
.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \
|
||||
check-am clean clean-generic clean-recursive ctags \
|
||||
ctags-recursive dist dist-all dist-bzip2 dist-gzip dist-shar \
|
||||
dist-tarZ dist-zip distcheck distclean distclean-generic \
|
||||
distclean-hdr distclean-recursive distclean-tags \
|
||||
distcleancheck distdir distuninstallcheck dvi dvi-am html \
|
||||
html-am info info-am install install-am install-data \
|
||||
install-data-am install-exec install-exec-am install-info \
|
||||
install-info-am install-man install-strip installcheck \
|
||||
installcheck-am installdirs installdirs-am maintainer-clean \
|
||||
maintainer-clean-generic maintainer-clean-recursive \
|
||||
mostlyclean mostlyclean-generic mostlyclean-recursive pdf \
|
||||
pdf-am ps ps-am tags tags-recursive uninstall uninstall-am \
|
||||
uninstall-info-am
|
||||
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
||||
|
|
|
@ -0,0 +1,23 @@
|
|||
if WITH_GTK
|
||||
GTK_DIR = gtk
|
||||
endif
|
||||
if WITH_LIBEVENT
|
||||
DAEMON_DIR = daemon
|
||||
endif
|
||||
if HAVE_BEOS
|
||||
BEOS_DIR = beos
|
||||
endif
|
||||
if HAVE_DARWIN
|
||||
MAC_DIR = macosx Transmission.xcodeproj
|
||||
endif
|
||||
|
||||
SUBDIRS = libtransmission $(DAEMON_DIR) cli $(GTK_DIR) $(BEOS_DIR) $(MAC_DIR)
|
||||
|
||||
DISTCLEANFILES = \
|
||||
Transmission.desktop
|
||||
|
||||
EXTRA_DIST = \
|
||||
NEWS \
|
||||
AUTHORS \
|
||||
LICENSE \
|
||||
README
|
|
@ -0,0 +1,200 @@
|
|||
|
||||
|
||||
# http://autoconf-archive.cryp.to/acx_pthread.html
|
||||
# Copyright © 2006 Steven G. Johnson <stevenj@alum.mit.edu>
|
||||
AC_DEFUN([ACX_PTHREAD], [
|
||||
AC_REQUIRE([AC_CANONICAL_HOST])
|
||||
AC_LANG_SAVE
|
||||
AC_LANG_C
|
||||
acx_pthread_ok=no
|
||||
|
||||
# We used to check for pthread.h first, but this fails if pthread.h
|
||||
# requires special compiler flags (e.g. on True64 or Sequent).
|
||||
# It gets checked for in the link test anyway.
|
||||
|
||||
# First of all, check if the user has set any of the PTHREAD_LIBS,
|
||||
# etcetera environment variables, and if threads linking works using
|
||||
# them:
|
||||
if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
|
||||
save_CFLAGS="$CFLAGS"
|
||||
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
|
||||
save_LIBS="$LIBS"
|
||||
LIBS="$PTHREAD_LIBS $LIBS"
|
||||
AC_MSG_CHECKING([for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS])
|
||||
AC_TRY_LINK_FUNC(pthread_join, acx_pthread_ok=yes)
|
||||
AC_MSG_RESULT($acx_pthread_ok)
|
||||
if test x"$acx_pthread_ok" = xno; then
|
||||
PTHREAD_LIBS=""
|
||||
PTHREAD_CFLAGS=""
|
||||
fi
|
||||
LIBS="$save_LIBS"
|
||||
CFLAGS="$save_CFLAGS"
|
||||
fi
|
||||
|
||||
# We must check for the threads library under a number of different
|
||||
# names; the ordering is very important because some systems
|
||||
# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
|
||||
# libraries is broken (non-POSIX).
|
||||
|
||||
# Create a list of thread flags to try. Items starting with a "-" are
|
||||
# C compiler flags, and other items are library names, except for "none"
|
||||
# which indicates that we try without any flags at all, and "pthread-config"
|
||||
# which is a program returning the flags for the Pth emulation library.
|
||||
|
||||
acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
|
||||
|
||||
# The ordering *is* (sometimes) important. Some notes on the
|
||||
# individual items follow:
|
||||
|
||||
# pthreads: AIX (must check this before -lpthread)
|
||||
# none: in case threads are in libc; should be tried before -Kthread and
|
||||
# other compiler flags to prevent continual compiler warnings
|
||||
# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
|
||||
# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
|
||||
# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
|
||||
# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
|
||||
# -pthreads: Solaris/gcc
|
||||
# -mthreads: Mingw32/gcc, Lynx/gcc
|
||||
# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
|
||||
# doesn't hurt to check since this sometimes defines pthreads too;
|
||||
# also defines -D_REENTRANT)
|
||||
# ... -mt is also the pthreads flag for HP/aCC
|
||||
# pthread: Linux, etcetera
|
||||
# --thread-safe: KAI C++
|
||||
# pthread-config: use pthread-config program (for GNU Pth library)
|
||||
|
||||
case "${host_cpu}-${host_os}" in
|
||||
*solaris*)
|
||||
|
||||
# On Solaris (at least, for some versions), libc contains stubbed
|
||||
# (non-functional) versions of the pthreads routines, so link-based
|
||||
# tests will erroneously succeed. (We need to link with -pthreads/-mt/
|
||||
# -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
|
||||
# a function called by this macro, so we could check for that, but
|
||||
# who knows whether they'll stub that too in a future libc.) So,
|
||||
# we'll just look for -pthreads and -lpthread first:
|
||||
|
||||
acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
|
||||
;;
|
||||
esac
|
||||
|
||||
if test x"$acx_pthread_ok" = xno; then
|
||||
for flag in $acx_pthread_flags; do
|
||||
|
||||
case $flag in
|
||||
none)
|
||||
AC_MSG_CHECKING([whether pthreads work without any flags])
|
||||
;;
|
||||
|
||||
-*)
|
||||
AC_MSG_CHECKING([whether pthreads work with $flag])
|
||||
PTHREAD_CFLAGS="$flag"
|
||||
;;
|
||||
|
||||
pthread-config)
|
||||
AC_CHECK_PROG(acx_pthread_config, pthread-config, yes, no)
|
||||
if test x"$acx_pthread_config" = xno; then continue; fi
|
||||
PTHREAD_CFLAGS="`pthread-config --cflags`"
|
||||
PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
|
||||
;;
|
||||
|
||||
*)
|
||||
AC_MSG_CHECKING([for the pthreads library -l$flag])
|
||||
PTHREAD_LIBS="-l$flag"
|
||||
;;
|
||||
esac
|
||||
|
||||
save_LIBS="$LIBS"
|
||||
save_CFLAGS="$CFLAGS"
|
||||
LIBS="$PTHREAD_LIBS $LIBS"
|
||||
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
|
||||
|
||||
# Check for various functions. We must include pthread.h,
|
||||
# since some functions may be macros. (On the Sequent, we
|
||||
# need a special flag -Kthread to make this header compile.)
|
||||
# We check for pthread_join because it is in -lpthread on IRIX
|
||||
# while pthread_create is in libc. We check for pthread_attr_init
|
||||
# due to DEC craziness with -lpthreads. We check for
|
||||
# pthread_cleanup_push because it is one of the few pthread
|
||||
# functions on Solaris that doesn't have a non-functional libc stub.
|
||||
# We try pthread_create on general principles.
|
||||
AC_TRY_LINK([#include <pthread.h>],
|
||||
[pthread_t th; pthread_join(th, 0);
|
||||
pthread_attr_init(0); pthread_cleanup_push(0, 0);
|
||||
pthread_create(0,0,0,0); pthread_cleanup_pop(0); ],
|
||||
[acx_pthread_ok=yes])
|
||||
|
||||
LIBS="$save_LIBS"
|
||||
CFLAGS="$save_CFLAGS"
|
||||
|
||||
AC_MSG_RESULT($acx_pthread_ok)
|
||||
if test "x$acx_pthread_ok" = xyes; then
|
||||
break;
|
||||
fi
|
||||
|
||||
PTHREAD_LIBS=""
|
||||
PTHREAD_CFLAGS=""
|
||||
done
|
||||
fi
|
||||
|
||||
# Various other checks:
|
||||
if test "x$acx_pthread_ok" = xyes; then
|
||||
save_LIBS="$LIBS"
|
||||
LIBS="$PTHREAD_LIBS $LIBS"
|
||||
save_CFLAGS="$CFLAGS"
|
||||
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
|
||||
|
||||
# Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
|
||||
AC_MSG_CHECKING([for joinable pthread attribute])
|
||||
attr_name=unknown
|
||||
for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
|
||||
AC_TRY_LINK([#include <pthread.h>], [int attr=$attr; return attr;],
|
||||
[attr_name=$attr; break])
|
||||
done
|
||||
AC_MSG_RESULT($attr_name)
|
||||
if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
|
||||
AC_DEFINE_UNQUOTED(PTHREAD_CREATE_JOINABLE, $attr_name,
|
||||
[Define to necessary symbol if this constant
|
||||
uses a non-standard name on your system.])
|
||||
fi
|
||||
|
||||
AC_MSG_CHECKING([if more special flags are required for pthreads])
|
||||
flag=no
|
||||
case "${host_cpu}-${host_os}" in
|
||||
*-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
|
||||
*solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
|
||||
esac
|
||||
AC_MSG_RESULT(${flag})
|
||||
if test "x$flag" != xno; then
|
||||
PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
|
||||
fi
|
||||
|
||||
LIBS="$save_LIBS"
|
||||
CFLAGS="$save_CFLAGS"
|
||||
|
||||
# More AIX lossage: must compile with xlc_r or cc_r
|
||||
if test x"$GCC" != xyes; then
|
||||
AC_CHECK_PROGS(PTHREAD_CC, xlc_r cc_r, ${CC})
|
||||
else
|
||||
PTHREAD_CC=$CC
|
||||
fi
|
||||
else
|
||||
PTHREAD_CC="$CC"
|
||||
fi
|
||||
|
||||
AC_SUBST(PTHREAD_LIBS)
|
||||
AC_SUBST(PTHREAD_CFLAGS)
|
||||
AC_SUBST(PTHREAD_CC)
|
||||
|
||||
# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
|
||||
if test x"$acx_pthread_ok" = xyes; then
|
||||
ifelse([$1],,AC_DEFINE(HAVE_PTHREAD,1,[Define if you have POSIX threads libraries and header files.]),[$1])
|
||||
:
|
||||
else
|
||||
acx_pthread_ok=no
|
||||
$2
|
||||
fi
|
||||
AC_LANG_RESTORE
|
||||
])dnl ACX_PTHREAD
|
||||
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
autoreconf --force --install -I config -I m4 --verbose
|
|
@ -0,0 +1,21 @@
|
|||
AM_CPPFLAGS = -I@top_srcdir@ -I../libtransmission -IlibPrefs
|
||||
AM_CFLAGS = $(PTHREAD_CFLAGS)
|
||||
|
||||
noinst_HEADERS = \
|
||||
TRApplication.h \
|
||||
TRInfoWindow.h \
|
||||
TRPrefsWindow.h \
|
||||
TRTransfer.h
|
||||
|
||||
bin_PROGRAMS = Transmission
|
||||
|
||||
Transmission_SOURCES = \
|
||||
TRApplication.cpp \
|
||||
TRInfoWindow.cpp \
|
||||
TRPrefsWindow.cpp \
|
||||
TRTransfer.cpp \
|
||||
TRWindow.cpp
|
||||
|
||||
Transmission_LDADD = \
|
||||
libPrefs/libPrefs.a -lbe -ltracker \
|
||||
../libtransmission/libtransmission.a $(PTHREAD_LIBS) -lm
|
|
@ -7,7 +7,7 @@
|
|||
#include <Window.h>
|
||||
#include <StringView.h>
|
||||
|
||||
#include "transmission.h"
|
||||
#include <libtransmission/transmission.h>
|
||||
|
||||
class TRInfoWindow : public BWindow {
|
||||
public:
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
#include <String.h>
|
||||
#include <View.h>
|
||||
|
||||
#include "transmission.h"
|
||||
#include <libtransmission/transmission.h>
|
||||
|
||||
class TRTransfer : public BListItem {
|
||||
public: // Construction and Controll methods.
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
#include <ListItem.h>
|
||||
#include <Window.h>
|
||||
|
||||
#include "transmission.h"
|
||||
#include <libtransmission/transmission.h>
|
||||
|
||||
#include "TRPrefsWindow.h"
|
||||
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
AM_CPPFLAGS = -I@top_srcdir@
|
||||
AM_CFLAGS = $(PTHREAD_CFLAGS)
|
||||
|
||||
|
||||
bin_PROGRAMS = transmission-cli
|
||||
|
||||
transmission_cli_SOURCES = transmissioncli.c
|
||||
transmission_cli_LDADD = ../libtransmission/libtransmission.a $(PTHREAD_LIBS) -lm
|
|
@ -28,8 +28,10 @@
|
|||
#include <unistd.h>
|
||||
#include <getopt.h>
|
||||
#include <signal.h>
|
||||
#include <transmission.h>
|
||||
#include <makemeta.h>
|
||||
|
||||
#include <libtransmission/transmission.h>
|
||||
#include <libtransmission/makemeta.h>
|
||||
|
||||
#ifdef SYS_BEOS
|
||||
#include <kernel/OS.h>
|
||||
#define usleep snooze
|
||||
|
|
|
@ -0,0 +1,218 @@
|
|||
AC_INIT([Transmission],[0.72Z],[http://bugzilla.gnome.org/enter_bug.cgi?product=Pan])
|
||||
AC_PREREQ(2.54)
|
||||
AM_CONFIG_HEADER(config.h)
|
||||
AC_CONFIG_SRCDIR(libtransmission/transmission.h)
|
||||
AM_INIT_AUTOMAKE(AC_PACKAGE_NAME,AC_PACKAGE_VERSION)
|
||||
AM_MAINTAINER_MODE
|
||||
|
||||
GLIB_MINIMUM=2.4.0
|
||||
GTK_MINIMUM=2.4.0
|
||||
WX_MINIMUM=2.6.0
|
||||
AC_SUBST(GLIB_MINIMUM)
|
||||
AC_SUBST(GTK_MINIMUM)
|
||||
AC_SUBST(WX_MINIMUM)
|
||||
|
||||
AC_PROG_CC
|
||||
AC_PROG_CXX
|
||||
AC_HEADER_STDC
|
||||
AC_HEADER_TIME
|
||||
AC_CHECK_FUNCS([lrintf strlcpy strlcat])
|
||||
AC_PROG_INSTALL
|
||||
AC_PROG_MAKE_SET
|
||||
AC_PROG_RANLIB
|
||||
ACX_PTHREAD
|
||||
|
||||
dnl AC_PROG_INTLTOOL([0.23],[no-xml])
|
||||
GETTEXT_PACKAGE=transmission
|
||||
AC_SUBST(GETTEXT_PACKAGE)
|
||||
AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["$GETTEXT_PACKAGE"],[Gettext package])
|
||||
ALL_LINGUAS="bg es fi fr it pl ro ru sv"
|
||||
AM_GLIB_GNU_GETTEXT
|
||||
transmissionlocaledir='${prefix}/${DATADIRNAME}/locale'
|
||||
|
||||
AC_CHECK_LIB([crypto],[CRYPTO_new_ex_data])
|
||||
AC_CHECK_LIB([ssl],[SSL_library_init])
|
||||
|
||||
dnl ----------------------------------------------------------------------------
|
||||
dnl
|
||||
dnl libevent detection for the Daemon
|
||||
|
||||
|
||||
AC_CHECK_LIB([event],[event_init],[have_libevent=yes],[have_libevent=no])
|
||||
AC_ARG_WITH(libevent,
|
||||
AC_HELP_STRING([--with-libevent], [Build Daemon]),
|
||||
[want_libevent=$withval],
|
||||
[want_libevent=$have_libevent])
|
||||
use_libevent=no
|
||||
if test "x$want_libevent" = "xyes" ; then
|
||||
if test "x$have_libevent" = "xyes"; then
|
||||
use_libevent=yes
|
||||
else
|
||||
AC_MSG_ERROR("libevent not found!")
|
||||
fi
|
||||
fi
|
||||
AM_CONDITIONAL([WITH_LIBEVENT],[test "x$use_libevent" = "xyes"])
|
||||
|
||||
|
||||
|
||||
dnl ----------------------------------------------------------------------------
|
||||
dnl
|
||||
dnl GTK+ detection for the GTK+ client
|
||||
|
||||
AM_PATH_GTK_2_0($GTK_MINIMUM,[have_gtk=yes],[have_gtk=no][gthread])
|
||||
AC_ARG_WITH(gtk, AC_HELP_STRING([--with-gtk], [Build gtk client]),
|
||||
[want_gtk=$withval],
|
||||
[want_gtk=$have_gtk])
|
||||
use_gtk=no
|
||||
if test "x$want_gtk" = "xyes" ; then
|
||||
if test "x$have_gtk" = "xyes"; then
|
||||
AM_PATH_GLIB_2_0($GLIB_MINIMUM,,exit 1,gobject gmodule gthread)
|
||||
AM_PATH_GTK_2_0($GTK_MINIMUM,,exit 1,gthread)
|
||||
use_gtk=yes
|
||||
else
|
||||
AC_MSG_ERROR("GTK+ not found!")
|
||||
fi
|
||||
fi
|
||||
AM_CONDITIONAL([WITH_GTK],[test "x$use_gtk" = "xyes"])
|
||||
|
||||
|
||||
|
||||
dnl ----------------------------------------------------------------------------
|
||||
dnl
|
||||
dnl platform-specific stuff.
|
||||
|
||||
AC_CANONICAL_HOST
|
||||
beos="no"
|
||||
darwin="no"
|
||||
msw="no"
|
||||
case $host_os in
|
||||
|
||||
*cygwin|*mingw32*)
|
||||
msw="yes"
|
||||
CXXFLAGS="$CXXFLAGS -mms-bitfields -mwin32 -mwindows"
|
||||
CPPFLAGS="$CPPFLAGS -DWIN32_LEAN_AND_MEAN"
|
||||
LIBS="$LIBS -lshell32 -lws2_32"
|
||||
transmissionlocaledir="locale"
|
||||
if test -z "$host_alias"; then
|
||||
hostaliaswindres=
|
||||
else
|
||||
hostaliaswindres="$host_alias-windres";
|
||||
fi
|
||||
AC_PATH_PROGS([WINDRES], [windres $hostaliaswindres $host_os-windres])
|
||||
if test "x$WINDRES" = "x"; then
|
||||
AC_MSG_ERROR([windres could not be found within your path.])
|
||||
fi
|
||||
AC_SUBST(WINDRES)
|
||||
;;
|
||||
|
||||
*BeOS*)
|
||||
beos="yes"
|
||||
RELEASE=`uname -r`
|
||||
case $RELEASE in
|
||||
6.*|5.0.4) # Zeta or R5 / BONE beta 7
|
||||
;;
|
||||
5.0*) # R5 / net_server
|
||||
CPPFLAGS="$CPPFLAGS -DBEOS_NETSERVER"
|
||||
;;
|
||||
*)
|
||||
AC_MSG_ERROR("Unsupported BeOS version")
|
||||
;;
|
||||
esac
|
||||
GCCVER=`$CC -dumpversion`
|
||||
case $GCCVER in
|
||||
2.95.3*|3*|4*)
|
||||
;;
|
||||
2.9*)
|
||||
BEOS_OLDCC=yes
|
||||
;;
|
||||
*)
|
||||
AC_MSG_ERROR("Unsupported gcc version")
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
|
||||
*Darwin*)
|
||||
darwin="yes"
|
||||
# Make sure the Universal SDK is installed
|
||||
if [ ! -d /Developer/SDKs/MacOSX10.4u.sdk ]; then
|
||||
cat << EOF
|
||||
You need to install the Universal SDK in order to build Transmission:
|
||||
Get your Xcode CD or package
|
||||
Restart the install
|
||||
When it gets to "Installation Type", select "Customize"
|
||||
Select "Mac OS X 10.4 (Universal) SDK" under "Cross Development"
|
||||
Finish the install.
|
||||
EOF
|
||||
exit 1
|
||||
fi
|
||||
;;
|
||||
|
||||
|
||||
esac
|
||||
AM_CONDITIONAL([HAVE_BEOS],[test "x$beos" = "xyes"])
|
||||
AM_CONDITIONAL([HAVE_DARWIN],[test "x$darwin" = "xyes"])
|
||||
AM_CONDITIONAL([HAVE_WINDOWS],[test "x$msw" = "xyes"])
|
||||
|
||||
|
||||
dnl ----------------------------------------------------------------------------
|
||||
dnl
|
||||
dnl Version files
|
||||
|
||||
|
||||
dnl constraint: strlen(MAJOR MINOR MAINT BETA) must be 4
|
||||
dnl convention: BETA: "Z" for a beta, "0" for a stable
|
||||
MAJOR="0"
|
||||
MINOR="7"
|
||||
MAINT="2"
|
||||
BETA="Z"
|
||||
STRING=0.80-svn
|
||||
REV=`svnversion -n`
|
||||
AC_SUBST(VERSION_MAJOR,[$MAJOR])
|
||||
AC_SUBST(VERSION_MINOR,[$MINOR])
|
||||
AC_SUBST(VERSION_MAINTENANCE,[$MAINT])
|
||||
AC_SUBST(VERSION_REVISION,[$REV])
|
||||
AC_SUBST(VERSION_BETA,[$BETA])
|
||||
AC_SUBST(VERSION_STRING,[$MAJOR.$MINOR$MAINT$BETA])
|
||||
AC_SUBST(VERSION_STRING_LONG,[$MAJOR.$MINOR$MAINT$BETA-r$REV])
|
||||
|
||||
dnl for macosx
|
||||
AC_SUBST(BUNDLE_VERSION,[$REV])
|
||||
dnl if it's a beta version, include the svn revision number
|
||||
if test x${BETA} = "xZ"; then
|
||||
AC_SUBST(VERSION_PACKAGE,$MAJOR.$MINOR$MAINT$BETA-r$REV)
|
||||
else
|
||||
AC_SUBST(VERSION_PACKAGE,$MAJOR.$MINOR$MAINT$BETA)
|
||||
fi
|
||||
AC_SUBST(VERSION_PACKAGE)
|
||||
|
||||
|
||||
|
||||
dnl ----------------------------------------------------------------------------
|
||||
dnl
|
||||
dnl Generate the output
|
||||
|
||||
AC_CONFIG_FILES([Makefile
|
||||
transmission.spec
|
||||
beos/Makefile
|
||||
cli/Makefile
|
||||
daemon/Makefile
|
||||
gtk/Makefile
|
||||
libtransmission/Makefile
|
||||
libtransmission/version.h
|
||||
macosx/Makefile
|
||||
macosx/Info.plist])
|
||||
|
||||
AC_OUTPUT
|
||||
|
||||
echo "
|
||||
|
||||
Configuration:
|
||||
|
||||
Source code location: ${srcdir}
|
||||
Compiler: ${CXX}
|
||||
Build BeOS client: ${beos}
|
||||
Build Daemon: ${use_libevent}
|
||||
Build GTK+ client: ${use_gtk}
|
||||
Build OS X client: ${darwin}
|
||||
|
||||
"
|
|
@ -0,0 +1,28 @@
|
|||
AM_CPPFLAGS = -I@top_srcdir@
|
||||
AM_CFLAGS = $(PTHREAD_CFLAGS)
|
||||
|
||||
noinst_LIBRARIES = libdaemon.a
|
||||
|
||||
libdaemon_a_SOURCES = \
|
||||
errors.c \
|
||||
misc.c
|
||||
|
||||
noinst_HEADERS = \
|
||||
client.h \
|
||||
errors.h \
|
||||
misc.h \
|
||||
server.h \
|
||||
torrents.h
|
||||
|
||||
bin_PROGRAMS = \
|
||||
transmission-daemon \
|
||||
transmission-remote \
|
||||
transmission-proxy
|
||||
|
||||
COMMON_LDADD = ./libdaemon.a ../libtransmission/libtransmission.a -levent $(PTHREAD_LIBS) -lm
|
||||
transmission_daemon_SOURCES = daemon.c server.c torrents.c
|
||||
transmission_daemon_LDADD = $(COMMON_LDADD)
|
||||
transmission_remote_SOURCES = client.c remote.c
|
||||
transmission_remote_LDADD = $(COMMON_LDADD)
|
||||
transmission_proxy_SOURCES = proxy.c
|
||||
transmission_proxy_LDADD = $(COMMON_LDADD)
|
|
@ -35,14 +35,15 @@
|
|||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "bsdqueue.h"
|
||||
#include "bsdtree.h"
|
||||
#include <libtransmission/bsdqueue.h>
|
||||
#include <libtransmission/bsdtree.h>
|
||||
#include <libtransmission/bencode.h>
|
||||
#include <libtransmission/ipcparse.h>
|
||||
#include <libtransmission/trcompat.h>
|
||||
|
||||
#include "client.h"
|
||||
#include "bencode.h"
|
||||
#include "errors.h"
|
||||
#include "ipcparse.h"
|
||||
#include "misc.h"
|
||||
#include "trcompat.h"
|
||||
|
||||
/* time out server after this many seconds */
|
||||
#define SERVER_TIMEOUT ( 15 )
|
||||
|
|
|
@ -41,12 +41,13 @@
|
|||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <libtransmission/trcompat.h>
|
||||
#include <libtransmission/version.h>
|
||||
|
||||
#include "errors.h"
|
||||
#include "misc.h"
|
||||
#include "server.h"
|
||||
#include "torrents.h"
|
||||
#include "trcompat.h"
|
||||
#include "version.h"
|
||||
|
||||
static void usage ( const char *, ... );
|
||||
static void readargs ( int, char **, int *, int *, char ** );
|
||||
|
|
|
@ -31,10 +31,11 @@
|
|||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <libtransmission/transmission.h>
|
||||
#include <libtransmission/trcompat.h>
|
||||
|
||||
#include "errors.h"
|
||||
#include "misc.h"
|
||||
#include "transmission.h"
|
||||
#include "trcompat.h"
|
||||
|
||||
static void pushdir ( char *, const char *, size_t );
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
#include <inttypes.h>
|
||||
#include <limits.h>
|
||||
|
||||
#include "bsdqueue.h"
|
||||
#include <libtransmission/bsdqueue.h>
|
||||
|
||||
#define CONF_FILE_LOCK "lock"
|
||||
#define CONF_FILE_SOCKET "socket"
|
||||
|
|
|
@ -35,10 +35,11 @@
|
|||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <libtransmission/transmission.h>
|
||||
#include <libtransmission/trcompat.h>
|
||||
|
||||
#include "errors.h"
|
||||
#include "misc.h"
|
||||
#include "transmission.h"
|
||||
#include "trcompat.h"
|
||||
|
||||
static void usage ( const char *, ... );
|
||||
static enum confpathtype readargs ( int, char **, char ** );
|
||||
|
|
|
@ -36,14 +36,15 @@
|
|||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "bsdqueue.h"
|
||||
#include "bsdtree.h"
|
||||
#include <libtransmission/bsdqueue.h>
|
||||
#include <libtransmission/bsdtree.h>
|
||||
#include <libtransmission/ipcparse.h>
|
||||
#include <libtransmission/transmission.h>
|
||||
#include <libtransmission/trcompat.h>
|
||||
|
||||
#include "client.h"
|
||||
#include "errors.h"
|
||||
#include "ipcparse.h"
|
||||
#include "misc.h"
|
||||
#include "transmission.h"
|
||||
#include "trcompat.h"
|
||||
|
||||
#define BESTDECIMAL(d) (10.0 > (d) ? 2 : (100.0 > (d) ? 1 : 0))
|
||||
|
||||
|
|
|
@ -36,10 +36,11 @@
|
|||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "bsdtree.h"
|
||||
#include "bencode.h"
|
||||
#include <libtransmission/bsdtree.h>
|
||||
#include <libtransmission/bencode.h>
|
||||
#include <libtransmission/ipcparse.h>
|
||||
|
||||
#include "errors.h"
|
||||
#include "ipcparse.h"
|
||||
#include "misc.h"
|
||||
#include "server.h"
|
||||
#include "torrents.h"
|
||||
|
|
|
@ -39,13 +39,14 @@
|
|||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "bsdtree.h"
|
||||
#include "bencode.h"
|
||||
#include <libtransmission/bsdtree.h>
|
||||
#include <libtransmission/bencode.h>
|
||||
#include <libtransmission/transmission.h>
|
||||
#include <libtransmission/trcompat.h>
|
||||
|
||||
#include "errors.h"
|
||||
#include "misc.h"
|
||||
#include "torrents.h"
|
||||
#include "transmission.h"
|
||||
#include "trcompat.h"
|
||||
|
||||
#define EXIT_TIMEOUT 10 /* how many seconds to wait on exit */
|
||||
#define TIMER_SECS 1 /* timer interval seconds */
|
||||
|
|
|
@ -27,8 +27,7 @@
|
|||
|
||||
#include <limits.h>
|
||||
|
||||
/* typedefs suck */
|
||||
#include "transmission.h"
|
||||
#include <libtransmission/transmission.h>
|
||||
|
||||
struct event_base;
|
||||
|
||||
|
|
|
@ -0,0 +1,47 @@
|
|||
AM_CPPFLAGS = -I@top_srcdir@ @GTK_CFLAGS@ @GLIB_CFLAGS@ -DLOCALEDIR=\""$(transmissionlocaledir)"\"
|
||||
|
||||
AM_CFLAGS = $(PTHREAD_CFLAGS)
|
||||
|
||||
noinst_HEADERS = \
|
||||
actions.h \
|
||||
conf.h \
|
||||
dialogs.h \
|
||||
dot-icons.h \
|
||||
hig.h \
|
||||
img_icon_full.h \
|
||||
io.h \
|
||||
ipc.h \
|
||||
makemeta-ui.h \
|
||||
msgwin.h \
|
||||
torrent-inspector.h \
|
||||
tr_cell_renderer_progress.h \
|
||||
tr_core.h \
|
||||
tr_icon.h \
|
||||
tr_prefs.h \
|
||||
tr_torrent.h \
|
||||
tr_window.h \
|
||||
ui.h \
|
||||
util.h
|
||||
|
||||
bin_PROGRAMS = transmission-gtk
|
||||
|
||||
transmission_gtk_SOURCES = \
|
||||
actions.c \
|
||||
conf.c \
|
||||
dialogs.c \
|
||||
hig.c \
|
||||
io.c \
|
||||
ipc.c \
|
||||
main.c \
|
||||
makemeta-ui.c \
|
||||
msgwin.c \
|
||||
torrent-inspector.c \
|
||||
tr_cell_renderer_progress.c \
|
||||
tr_core.c \
|
||||
tr_icon.c \
|
||||
tr_prefs.c \
|
||||
tr_torrent.c \
|
||||
tr_window.c \
|
||||
util.c
|
||||
|
||||
transmission_gtk_LDADD = ../libtransmission/libtransmission.a @GTK_LIBS@ @GLIB_LIBS@ $(PTHREAD_LIBS) -lm
|
|
@ -11,7 +11,7 @@
|
|||
#include <string.h>
|
||||
#include <glib/gi18n.h>
|
||||
#include <gtk/gtk.h>
|
||||
#include "transmission.h"
|
||||
#include <libtransmission/transmission.h>
|
||||
#include "torrent-inspector.h"
|
||||
#include "img_icon_full.h"
|
||||
|
||||
|
|
|
@ -25,8 +25,8 @@
|
|||
#ifndef TG_CONF_H
|
||||
#define TG_CONF_H
|
||||
|
||||
#include "transmission.h"
|
||||
#include "bencode.h"
|
||||
#include <libtransmission/transmission.h>
|
||||
#include <libtransmission/bencode.h>
|
||||
|
||||
gboolean
|
||||
cf_init(const char *confdir, char **errstr);
|
||||
|
|
|
@ -29,6 +29,8 @@
|
|||
#include <gtk/gtk.h>
|
||||
#include <glib/gi18n.h>
|
||||
|
||||
#include <libtransmission/transmission.h>
|
||||
|
||||
#include "conf.h"
|
||||
#include "dialogs.h"
|
||||
#include "hig.h"
|
||||
|
@ -38,8 +40,6 @@
|
|||
#include "tr_prefs.h"
|
||||
#include "util.h"
|
||||
|
||||
#include "transmission.h"
|
||||
|
||||
#define UPDATE_INTERVAL 1000
|
||||
#define PREFNAME "transmission-dialog-pref-name"
|
||||
#define FILESWIND_EXTRA_INDENT 4
|
||||
|
|
|
@ -34,9 +34,9 @@
|
|||
#include <gtk/gtk.h>
|
||||
#include <glib/gi18n.h>
|
||||
|
||||
#include "transmission.h"
|
||||
#include "bencode.h"
|
||||
#include "ipcparse.h"
|
||||
#include <libtransmission/transmission.h>
|
||||
#include <libtransmission/bencode.h>
|
||||
#include <libtransmission/ipcparse.h>
|
||||
|
||||
#include "conf.h"
|
||||
#include "io.h"
|
||||
|
|
|
@ -22,6 +22,8 @@
|
|||
* DEALINGS IN THE SOFTWARE.
|
||||
*****************************************************************************/
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <errno.h>
|
||||
#include <getopt.h>
|
||||
|
@ -52,8 +54,8 @@
|
|||
#include "util.h"
|
||||
#include "ui.h"
|
||||
|
||||
#include "transmission.h"
|
||||
#include "version.h"
|
||||
#include <libtransmission/transmission.h>
|
||||
#include <libtransmission/version.h>
|
||||
|
||||
/* time in seconds to wait for torrents to stop when exiting */
|
||||
#define TRACKER_EXIT_TIMEOUT 10
|
||||
|
|
|
@ -13,8 +13,8 @@
|
|||
#include <glib/gi18n.h>
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#include "transmission.h"
|
||||
#include "makemeta.h"
|
||||
#include <libtransmission/transmission.h>
|
||||
#include <libtransmission/makemeta.h>
|
||||
|
||||
#include "hig.h"
|
||||
#include "makemeta-ui.h"
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
#define MAKE_META_UI__H
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
#include "transmission.h"
|
||||
#include <libtransmission/transmission.h>
|
||||
|
||||
GtkWidget* make_meta_ui( GtkWindow * parent, tr_handle_t * handle );
|
||||
|
||||
|
|
|
@ -28,10 +28,11 @@
|
|||
#include <gtk/gtk.h>
|
||||
#include <glib/gi18n.h>
|
||||
|
||||
#include <libtransmission/transmission.h>
|
||||
|
||||
#include "conf.h"
|
||||
#include "msgwin.h"
|
||||
#include "tr_prefs.h"
|
||||
#include "transmission.h"
|
||||
#include "util.h"
|
||||
|
||||
#define MAX_MSGCOUNT 5000
|
||||
|
|
|
@ -27,8 +27,8 @@
|
|||
#include <glib/gi18n.h>
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#include "transmission.h"
|
||||
#include "platform.h" /* for tr_getTorrentsDirectory */
|
||||
#include <libtransmission/transmission.h>
|
||||
#include <libtransmission/platform.h> /* for tr_getTorrentsDirectory */
|
||||
|
||||
#include "actions.h"
|
||||
#include "tr_torrent.h"
|
||||
|
|
|
@ -25,8 +25,9 @@
|
|||
#include <gtk/gtk.h>
|
||||
#include <glib/gi18n.h>
|
||||
|
||||
#include <libtransmission/transmission.h>
|
||||
|
||||
#include "tr_cell_renderer_progress.h"
|
||||
#include "transmission.h"
|
||||
#include "util.h"
|
||||
|
||||
enum {
|
||||
|
|
|
@ -28,8 +28,8 @@
|
|||
#include <gtk/gtk.h>
|
||||
#include <glib/gi18n.h>
|
||||
|
||||
#include "bencode.h"
|
||||
#include "transmission.h"
|
||||
#include <libtransmission/bencode.h>
|
||||
#include <libtransmission/transmission.h>
|
||||
|
||||
#include "conf.h"
|
||||
#include "tr_core.h"
|
||||
|
|
|
@ -30,7 +30,8 @@
|
|||
#include <glib-object.h>
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#include "bencode.h"
|
||||
#include <libtransmission/bencode.h>
|
||||
#include <libtransmission/transmission.h>
|
||||
|
||||
#include "util.h"
|
||||
|
||||
|
|
|
@ -29,6 +29,8 @@
|
|||
#include <gtk/gtk.h>
|
||||
#include <glib/gi18n.h>
|
||||
|
||||
#include <libtransmission/transmission.h>
|
||||
|
||||
#include "conf.h"
|
||||
#include "tr_icon.h"
|
||||
#include "tr_core.h"
|
||||
|
@ -36,8 +38,6 @@
|
|||
#include "tr_torrent.h"
|
||||
#include "util.h"
|
||||
|
||||
#include "transmission.h"
|
||||
|
||||
/* used for g_object_set/get_data */
|
||||
#define PREF_CHECK_LINK "tr-prefs-check-link-thingy"
|
||||
#define PREF_SPIN_LAST "tr-prefs-spinbox-last-val"
|
||||
|
|
|
@ -28,8 +28,8 @@
|
|||
#include <gtk/gtk.h>
|
||||
#include <glib/gi18n.h>
|
||||
|
||||
#include "transmission.h"
|
||||
#include "bencode.h"
|
||||
#include <libtransmission/transmission.h>
|
||||
#include <libtransmission/bencode.h>
|
||||
|
||||
#include "tr_prefs.h"
|
||||
#include "tr_torrent.h"
|
||||
|
|
|
@ -26,10 +26,8 @@
|
|||
#define TR_TORRENT_H
|
||||
|
||||
#include <glib-object.h>
|
||||
|
||||
#include "transmission.h"
|
||||
#include "bencode.h"
|
||||
|
||||
#include <libtransmission/transmission.h>
|
||||
#include <libtransmission/bencode.h>
|
||||
#include "util.h"
|
||||
|
||||
/* boxed type for tr_tracker_info_t */
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
#include <gtk/gtk.h>
|
||||
#include <glib/gi18n.h>
|
||||
|
||||
#include "transmission.h"
|
||||
#include <libtransmission/transmission.h>
|
||||
|
||||
#include "actions.h"
|
||||
#include "hig.h"
|
||||
|
|
|
@ -0,0 +1,71 @@
|
|||
AM_CPPFLAGS = -I. -I@top_srcdir@ -D__TRANSMISSION__
|
||||
|
||||
noinst_LIBRARIES = libtransmission.a
|
||||
|
||||
libtransmission_a_SOURCES = \
|
||||
basename.c \
|
||||
bencode.c \
|
||||
choking.c \
|
||||
clients.c \
|
||||
completion.c \
|
||||
dirname.c \
|
||||
fastresume.c \
|
||||
fdlimit.c \
|
||||
http.c \
|
||||
inout.c \
|
||||
ipcparse.c \
|
||||
list.c \
|
||||
makemeta.c \
|
||||
metainfo.c \
|
||||
natpmp.c \
|
||||
net.c \
|
||||
peer.c \
|
||||
platform.c \
|
||||
ratecontrol.c \
|
||||
sha1.c \
|
||||
shared.c \
|
||||
strlcat.c \
|
||||
strlcpy.c \
|
||||
torrent.c \
|
||||
tracker.c \
|
||||
transmission.c \
|
||||
upnp.c \
|
||||
utils.c \
|
||||
xml.c
|
||||
|
||||
noinst_HEADERS = \
|
||||
bencode.h \
|
||||
bsdqueue.h \
|
||||
bsdtree.h \
|
||||
choking.h \
|
||||
clients.h \
|
||||
completion.h \
|
||||
fastresume.h \
|
||||
fdlimit.h \
|
||||
http.h \
|
||||
inout.h \
|
||||
internal.h \
|
||||
ipcparse.h \
|
||||
list.h \
|
||||
makemeta.h \
|
||||
metainfo.h \
|
||||
natpmp.h \
|
||||
net.h \
|
||||
peeraz.h \
|
||||
peerext.h \
|
||||
peer.h \
|
||||
peermessages.h \
|
||||
peerparse.h \
|
||||
peertree.h \
|
||||
peerutils.h \
|
||||
platform.h \
|
||||
ratecontrol.h \
|
||||
sha1.h \
|
||||
shared.h \
|
||||
tracker.h \
|
||||
transmission.h \
|
||||
trcompat.h \
|
||||
upnp.h \
|
||||
utils.h \
|
||||
version.h \
|
||||
xml.h
|
|
@ -38,11 +38,11 @@
|
|||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>%%SHORT_VERSION_STRING%%</string>
|
||||
<string>@VERSION_STRING@</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>TR##</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>%%BUNDLE_VERSION%%</string>
|
||||
<string>@BUNDLE_VERSION@</string>
|
||||
<key>NSAppleScriptEnabled</key>
|
||||
<string>YES</string>
|
||||
<key>NSMainNibFile</key>
|
||||
|
|
|
@ -0,0 +1,27 @@
|
|||
# Use Xcode do make the actual build
|
||||
all:
|
||||
@xcodebuild -alltargets -activeconfiguration | grep -v "^$$"
|
||||
clean:
|
||||
@xcodebuild -alltargets -activeconfiguration clean | grep -v "^$$"
|
||||
|
||||
define PACKAGE_RULE1
|
||||
$(RM) tmp "Transmission $(VERSION_PACKAGE)" \
|
||||
Transmission-$(VERSION_PACKAGE).dmg
|
||||
mkdir -p tmp
|
||||
cp -R macosx/Transmission.app tmp/
|
||||
endef
|
||||
define PACKAGE_RULE2
|
||||
mv tmp "Transmission $(VERSION_PACKAGE)"
|
||||
hdiutil create -format UDZO -imagekey zlib-level=9 -srcfolder \
|
||||
"Transmission $(VERSION_PACKAGE)" Transmission-$(VERSION_PACKAGE).dmg
|
||||
rm -rf "Transmission $(VERSION_PACKAGE)"
|
||||
endef
|
||||
|
||||
package:
|
||||
$(PACKAGE_RULE1)
|
||||
$(PACKAGE_RULE2)
|
||||
|
||||
package-release:
|
||||
$(PACKAGE_RULE1)
|
||||
strip -S tmp/Transmission.app/Contents/MacOS/Transmission
|
||||
$(PACKAGE_RULE2)
|
61
version.sh
61
version.sh
|
@ -1,61 +0,0 @@
|
|||
#! /bin/sh
|
||||
#
|
||||
# $Id$
|
||||
|
||||
# constraint: strlen(MAJOR MINOR MAINT BETA) must be 4
|
||||
# convention: BETA: "Z" for a beta, "0" for a stable
|
||||
MAJOR="0"
|
||||
MINOR="7"
|
||||
MAINT="2"
|
||||
BETA="Z"
|
||||
STRING=0.80-svn
|
||||
|
||||
# Get current SVN revision from Ids in all source files
|
||||
REV=`( find . '(' -name '*.[chm]' -o -name '*.cpp' -o -name '*.po' \
|
||||
-o -name '*.mk' -o -name '*.in' -o -name 'Makefile' \
|
||||
-o -name 'configure' ')' -exec cat '{}' ';' ) | \
|
||||
sed -e '/\$Id:/!d' -e \
|
||||
's/.*\$Id: [^ ]* \([0-9]*\) .*/\1/' |
|
||||
awk 'BEGIN { REV=0 }
|
||||
{ if ( $1 > REV ) REV=$1 }
|
||||
END { print REV }'`
|
||||
|
||||
# Generate files to be included: only overwrite them if changed so make
|
||||
# won't rebuild everything unless necessary
|
||||
replace_if_differs ()
|
||||
{
|
||||
if cmp $1 $2 > /dev/null 2>&1; then
|
||||
rm -f $1
|
||||
else
|
||||
mv -f $1 $2
|
||||
fi
|
||||
}
|
||||
|
||||
# Generate version.mk
|
||||
cat > mk/version.mk.new << EOF
|
||||
VERSION_MAJOR = "$MAJOR"
|
||||
VERSION_MINOR = "$MINOR"
|
||||
VERSION_MAINTENANCE = "$MAINT"
|
||||
VERSION_REVISION = "$REV"
|
||||
VERSION_STRING = "$MAJOR.$MINOR$MAINT$BETA (r$REV)"
|
||||
EOF
|
||||
replace_if_differs mk/version.mk.new mk/version.mk
|
||||
|
||||
# Generate version.h
|
||||
cat > libtransmission/version.h.new << EOF
|
||||
#define VERSION_MAJOR "$MAJOR"
|
||||
#define VERSION_MINOR "$MINOR"
|
||||
#define VERSION_MAINTENANCE "$MAINT"
|
||||
#define VERSION_REVISION "$REV"
|
||||
#define VERSION_BETA "$BETA"
|
||||
#define SHORT_VERSION_STRING "$MAJOR.$MINOR$MAINT$BETA"
|
||||
#define LONG_VERSION_STRING "$MAJOR.$MINOR$MAINT$BETA (r$REV)"
|
||||
EOF
|
||||
replace_if_differs libtransmission/version.h.new libtransmission/version.h
|
||||
|
||||
# Generate Info.plist from Info.plist.in
|
||||
sed -e "s/%%BUNDLE_VERSION%%/$REV/" -e "s/%%SHORT_VERSION_STRING%%/$STRING/" \
|
||||
< macosx/Info.plist.in > macosx/Info.plist.new
|
||||
replace_if_differs macosx/Info.plist.new macosx/Info.plist
|
||||
|
||||
exit 0
|
Loading…
Reference in New Issue