Andreas Wacknitz
2024-03-29 970adddbfc48d143ebaae950543ddbfcb6eb25c5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"), version 1.0.
# You may only use this file in accordance with the terms of version
# 1.0 of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source.  A copy of the CDDL is also available via the Internet at
# http://www.illumos.org/license/CDDL.
#
 
#
# Copyright 2017 Alexander Pyhalov
# Copyright 2018 Michal Nowak
# Copyright 2019 Tim Mooney
#
 
USE_PARALLEL_BUILD= yes
USE_DEFAULT_TEST_TRANSFORMS= yes
include ../../../make-rules/shared-macros.mk
 
COMPONENT_NAME=         tracker
COMPONENT_VERSION=      1.8.3
COMPONENT_REVISION=     15
COMPONENT_SUMMARY=      Desktop search tool
COMPONENT_SRC=          $(COMPONENT_NAME)-$(COMPONENT_VERSION)
COMPONENT_ARCHIVE=      $(COMPONENT_SRC).tar.xz
COMPONENT_ARCHIVE_HASH= sha256:9bbf8c8525b3a1496716a350bc50ba06af5e880a4386506ca3e45d6779065c42
COMPONENT_ARCHIVE_URL=  https://download.gnome.org/sources/$(COMPONENT_NAME)/1.8/$(COMPONENT_ARCHIVE)
COMPONENT_PROJECT_URL=  https://gitlab.gnome.org/GNOME/tracker
COMPONENT_FMRI=         library/desktop/search/tracker
COMPONENT_CLASSIFICATION=Applications/System Utilities
COMPONENT_LICENSE=      GPLv2,LGPLv2.1
 
include $(WS_MAKE_RULES)/common.mk
 
PATH= $(PATH.gnu)
 
CFLAGS += -std=gnu89 $(XPG6MODE)
 
# Use default libjpeg
CPPFLAGS += $(JPEG_CPPFLAGS)
CFLAGS += $(JPEG_CFLAGS)
LDFLAGS += $(JPEG_LDFLAGS)
CONFIGURE_ENV += CPPFLAGS="$(CPPFLAGS)"
 
COMPONENT_PREP_ACTION= ( cd $(@D) && autoreconf -fi)
 
COMPONENT_PRE_CONFIGURE_ACTION = ( $(CLONEY) $(SOURCE_DIR) $(@D) )
 
CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)
CONFIGURE_OPTIONS += --disable-libstemmer
CONFIGURE_OPTIONS += --disable-maemo
CONFIGURE_OPTIONS += --disable-schemas-compile
CONFIGURE_OPTIONS += --disable-static
CONFIGURE_OPTIONS += --disable-upower
CONFIGURE_OPTIONS += --enable-artwork
CONFIGURE_OPTIONS += --enable-cfg-man-pages
CONFIGURE_OPTIONS += --enable-dvi
CONFIGURE_OPTIONS += --enable-generic-media-extractor=gstreamer
# Evolution miner is broken (crashes on startup)
CONFIGURE_OPTIONS += --disable-miner-evolution
# Disabled for now because of errors
CONFIGURE_OPTIONS += --disable-gtk-doc
CONFIGURE_OPTIONS += --enable-hal
CONFIGURE_OPTIONS += --enable-icon
CONFIGURE_OPTIONS += --enable-icu-charset-detection
# Required for other components.
CONFIGURE_OPTIONS += --enable-introspection
CONFIGURE_OPTIONS += --enable-journal
CONFIGURE_OPTIONS += --enable-libexif
CONFIGURE_OPTIONS += --enable-libflac
CONFIGURE_OPTIONS += --enable-libjpeg
CONFIGURE_OPTIONS += --enable-libpng
CONFIGURE_OPTIONS += --enable-libtiff
CONFIGURE_OPTIONS += --enable-libvorbis
CONFIGURE_OPTIONS += --enable-libxml2
CONFIGURE_OPTIONS += --enable-miner-apps
CONFIGURE_OPTIONS += --enable-miner-fs
CONFIGURE_OPTIONS += --disable-miner-firefox
CONFIGURE_OPTIONS += --disable-miner-thunderbird
CONFIGURE_OPTIONS += --enable-miner-user-guides
CONFIGURE_OPTIONS += --enable-mp3
CONFIGURE_OPTIONS += --disable-nautilus-extension
CONFIGURE_OPTIONS += --enable-playlist
CONFIGURE_OPTIONS += --enable-poppler
CONFIGURE_OPTIONS += --enable-ps
CONFIGURE_OPTIONS += --enable-shared
CONFIGURE_OPTIONS += --enable-taglib
CONFIGURE_OPTIONS += --enable-text
CONFIGURE_OPTIONS += --enable-tracker-fts
CONFIGURE_OPTIONS += --enable-tracker-needle
CONFIGURE_OPTIONS += --enable-tracker-preferences
CONFIGURE_OPTIONS += --enable-tracker-writeback
CONFIGURE_OPTIONS += --disable-miner-firefox
CONFIGURE_OPTIONS += --with-pic
CONFIGURE_OPTIONS += --with-unicode-support=libicu
CONFIGURE_OPTIONS += --libexecdir=$(USRLIBDIR)
 
 
CONFIGURE_ENV += PERL=$(PERL)
 
COMPONENT_BUILD_ENV += CC=$(CC)
COMPONENT_BUILD_ENV += CFLAGS="$(CFLAGS)"
 
COMPONENT_INSTALL_ENV+= GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
 
# Build dependencies
REQUIRED_PACKAGES += utility/bash-completion
REQUIRED_PACKAGES += developer/icu
REQUIRED_PACKAGES += library/desktop/gobject/gobject-introspection
REQUIRED_PACKAGES += developer/documentation-tool/gtk-doc
 
# Auto-generated dependencies
REQUIRED_PACKAGES += $(ICU_LIBRARY_PKG)
REQUIRED_PACKAGES += $(JPEG_IMPLEM_PKG)
REQUIRED_PACKAGES += codec/flac
REQUIRED_PACKAGES += database/sqlite-3
REQUIRED_PACKAGES += image/library/libexif
REQUIRED_PACKAGES += image/library/libjpeg-turbo
REQUIRED_PACKAGES += image/library/libpng16
REQUIRED_PACKAGES += image/library/libtiff
REQUIRED_PACKAGES += library/audio/gstreamer1
REQUIRED_PACKAGES += library/audio/gstreamer1/plugin/base
REQUIRED_PACKAGES += library/audio/taglib
REQUIRED_PACKAGES += library/desktop/atk
REQUIRED_PACKAGES += library/desktop/gdk-pixbuf
REQUIRED_PACKAGES += library/desktop/gtk3
REQUIRED_PACKAGES += library/desktop/libgsf
REQUIRED_PACKAGES += library/giflib
REQUIRED_PACKAGES += library/glib2
REQUIRED_PACKAGES += library/libpoppler
REQUIRED_PACKAGES += library/libvorbis
REQUIRED_PACKAGES += library/libxml2
REQUIRED_PACKAGES += library/media-player/totem-pl-parser
REQUIRED_PACKAGES += service/hal
REQUIRED_PACKAGES += system/library
REQUIRED_PACKAGES += system/library/libdbus
REQUIRED_PACKAGES += system/library/libdbus-glib
REQUIRED_PACKAGES += system/library/math