~ubuntu-branches/ubuntu/saucy/f-spot/saucy

« back to all changes in this revision

Viewing changes to build/build.rules.mk

  • Committer: Bazaar Package Importer
  • Author(s): Iain Lane
  • Date: 2010-05-24 10:35:57 UTC
  • mfrom: (2.4.7 experimental)
  • Revision ID: james.westby@ubuntu.com-20100524103557-1j0i8f66caybci2n
Tags: 0.7.0-1
* New upstream release 0.7.0
 + First release of the unstable 0.7 development series. Massive changes.
 + Reparenting and detaching support (Anton Keks) (Closes: #559745)
 + A new Mallard-based documentation (Harold Schreckengost)
 + No longer embeds flickrnet, uses distribution copy (Iain Lane)
 + Adoption of a large amount of Hyena functionality (Paul Lange, Peter
   Goetz)
 + No longer embeds gnome-keyring-sharp
 + Completely rewritten import, much faster and less memory hungry (Ruben
   Vermeersch) (Closes: #559080, #492658, #341790, #357811, #426017) (LP:
   #412091)
 + No longer use gphoto2-sharp, now uses gvfs which is less crash-pron
   (Ruben Vermeersch)
 + Fix Facebook support (Ruben Vermeersch)
 + Modernized unit tests
 + Revamped build (Mike Gemünde)
 + Much improved duplicate detection (much faster too) (Ruben Vermeersch)
 + Mouse selection in Iconview (Vincent Pomey)
 + Image panning support using middle mouse button (Wojciech Dzierżanowski)
 + Timeline slider now restricted to the size of the window (Iain Churcher)
 + Over 100 bugs closed (http://bit.ly/cyVjnD)
   - No more warnings about schema defaults (Closes: #584215) (LP: #586132)
* debian/control: Clean up build deps to match configure checks
* debian/rules: Don't run dh_makeshilbs as we don't ship any shared
  libraries. There are some private ones though, which get picked up and
  result in a useless postinst/postrm call to ldconfig. Thanks, lintian.
* debian/patches/debian_fix-distclean.patch,
  debian/patches/debian_fix_f-spot.exe.config.patch,
  debian/patches/debian_link-system-flickrnet.patch,
  debian/patches/debian_link-system-gnome-keyring.patch,
  debian/patches/debian_disable-unit-tests,
  debian/patches/git_transition_duration.patch,
  debian/patches/ubuntu_fix_folder_export_hang.patch:
  Clean up obsolete patches which are no longer necessary 
* debian/patches/*: Temporarily disable patches which originated from Ubuntu
  and no longer apply cleanly. We will get these back in a future upstream
  development release.
* debian/patches/*: Refresh to apply cleanly 
* debian/rules: Add new include dir to autoreconf call to pick up f-spot
  macros 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
UNIQUE_FILTER_PIPE = tr [:space:] \\n | sort | uniq
 
2
BUILD_DATA_DIR = $(top_builddir)/bin/share/$(PACKAGE)
 
3
 
 
4
# Since all other attempts failed, we currently go this way:
 
5
# This code adds the file specified in ASSEMBLY_INFO_SOURCE to SOURCES_BUILD.
 
6
# If no such file is specified, the default AssemblyInfo.cs is used.
 
7
ASSEMBLY_INFO_SOURCE_REAL = \
 
8
        $(shell if [ "$(ASSEMBLY_INFO_SOURCE)" ]; \
 
9
        then \
 
10
                echo "$(addprefix $(srcdir)/, $(ASSEMBLY_INFO_SOURCE))"; \
 
11
        else \
 
12
                echo "$(top_srcdir)/src/AssemblyInfo.cs"; \
 
13
        fi)
 
14
 
 
15
SOURCES_BUILD = $(addprefix $(srcdir)/, $(SOURCES))
 
16
SOURCES_BUILD += $(ASSEMBLY_INFO_SOURCE_REAL)
 
17
 
 
18
 
 
19
RESOURCES_EXPANDED = $(addprefix $(srcdir)/, $(RESOURCES))
 
20
RESOURCES_BUILD = $(foreach resource, $(RESOURCES_EXPANDED), \
 
21
        -resource:$(resource),$(notdir $(resource)))
 
22
 
 
23
INSTALL_ICONS = $(top_srcdir)/build/private-icon-theme-installer "$(mkinstalldirs)" "$(INSTALL_DATA)"
 
24
THEME_ICONS_SOURCE = $(wildcard $(srcdir)/ThemeIcons/*/*/*.png) $(wildcard $(srcdir)/ThemeIcons/scalable/*/*.svg)
 
25
THEME_ICONS_RELATIVE = $(subst $(srcdir)/ThemeIcons/, , $(THEME_ICONS_SOURCE))
 
26
 
 
27
ASSEMBLY_EXTENSION = $(strip $(patsubst library, dll, $(TARGET)))
 
28
ASSEMBLY_FILE = $(top_builddir)/bin/$(ASSEMBLY).$(ASSEMBLY_EXTENSION)
 
29
 
 
30
INSTALL_DIR_RESOLVED = $(firstword $(subst , $(DEFAULT_INSTALL_DIR), $(INSTALL_DIR)))
 
31
 
 
32
if ENABLE_TESTS
 
33
    LINK += " $(NUNIT_LIBS)"
 
34
    ENABLE_TESTS_FLAG = "-define:ENABLE_TESTS"
 
35
endif
 
36
 
 
37
if ENABLE_ATK
 
38
    ENABLE_ATK_FLAG = "-define:ENABLE_ATK"
 
39
endif
 
40
 
 
41
FILTERED_LINK = $(shell echo "$(LINK)" | $(UNIQUE_FILTER_PIPE))
 
42
DEP_LINK = $(shell echo "$(LINK)" | $(UNIQUE_FILTER_PIPE) | sed s,-r:,,g | grep '$(top_builddir)/bin/')
 
43
 
 
44
OUTPUT_FILES = \
 
45
        $(ASSEMBLY_FILE) \
 
46
        $(ASSEMBLY_FILE).mdb
 
47
 
 
48
moduledir = $(INSTALL_DIR_RESOLVED)
 
49
module_SCRIPTS = $(OUTPUT_FILES)
 
50
 
 
51
all: $(ASSEMBLY_FILE) theme-icons
 
52
 
 
53
run: 
 
54
        @pushd $(top_builddir); \
 
55
        make run; \
 
56
        popd;
 
57
 
 
58
# uncommented for now.
 
59
# tests are currently excuted from Makefile in $(top_builddir)
 
60
#test:
 
61
#       @pushd $(top_builddir)/tests; \
 
62
#       make $(ASSEMBLY); \
 
63
#       popd;
 
64
 
 
65
build-debug:
 
66
        @echo $(DEP_LINK)
 
67
 
 
68
$(ASSEMBLY_FILE).mdb: $(ASSEMBLY_FILE)
 
69
 
 
70
$(ASSEMBLY_FILE): $(SOURCES_BUILD) $(RESOURCES_EXPANDED) $(DEP_LINK)
 
71
        @mkdir -p $(top_builddir)/bin
 
72
        @if [ ! "x$(ENABLE_RELEASE)" = "xyes" ]; then \
 
73
                $(top_srcdir)/build/dll-map-makefile-verifier $(srcdir)/Makefile.am $(srcdir)/$(notdir $@.config) && \
 
74
                $(MONO) $(top_builddir)/build/dll-map-verifier.exe $(srcdir)/$(notdir $@.config) -iwinmm -ilibbanshee -ilibbnpx11 -ilibc -ilibc.so.6 -iintl -ilibmtp.dll -ilibigemacintegration.dylib -iCFRelease $(SOURCES_BUILD); \
 
75
        fi;
 
76
        $(MCS) \
 
77
                $(GMCS_FLAGS) \
 
78
                $(ASSEMBLY_BUILD_FLAGS) \
 
79
                -nowarn:0278 -nowarn:0078 $$warn \
 
80
                -define:HAVE_GTK_2_10 -define:NET_2_0 \
 
81
                -debug -target:$(TARGET) -out:$@ \
 
82
                $(BUILD_DEFINES) $(ENABLE_TESTS_FLAG) $(ENABLE_ATK_FLAG) \
 
83
                $(FILTERED_LINK) $(RESOURCES_BUILD) $(SOURCES_BUILD)
 
84
        @if [ -e $(srcdir)/$(notdir $@.config) ]; then \
 
85
                cp $(srcdir)/$(notdir $@.config) $(top_builddir)/bin; \
 
86
        fi;
 
87
        @if [ ! -z "$(EXTRA_BUNDLE)" ]; then \
 
88
                cp $(EXTRA_BUNDLE) $(top_builddir)/bin; \
 
89
        fi;
 
90
 
 
91
theme-icons: $(THEME_ICONS_SOURCE)
 
92
        @$(INSTALL_ICONS) -il "$(BUILD_DATA_DIR)" "$(srcdir)" $(THEME_ICONS_RELATIVE)
 
93
 
 
94
install-data-local: $(THEME_ICONS_SOURCE)
 
95
        @$(INSTALL_ICONS) -i "$(DESTDIR)$(pkgdatadir)" "$(srcdir)" $(THEME_ICONS_RELATIVE)
 
96
        
 
97
uninstall-local: $(THEME_ICONS_SOURCE)
 
98
        @$(INSTALL_ICONS) -u "$(DESTDIR)$(pkgdatadir)" "$(srcdir)" $(THEME_ICONS_RELATIVE)
 
99
 
 
100
EXTRA_DIST = $(SOURCES_BUILD) $(RESOURCES_EXPANDED) $(THEME_ICONS_SOURCE)
 
101
 
 
102
CLEANFILES = $(OUTPUT_FILES) $(ASSEMBLY_FILE).config
 
103
DISTCLEANFILES = *.pidb
 
104
MAINTAINERCLEANFILES = Makefile.in
 
105