2 use ExtUtils::MakeMaker;
3 # See lib/ExtUtils/MakeMaker.pm for details of how to influence
4 # the contents of the Makefile that is written.
6 NAME => 'LibTracker::Client',
7 VERSION_FROM => 'lib/LibTracker/Client.pm', # finds $VERSION
8 PREREQ_PM => {}, # e.g., Module::Name => 1.1
9 ($] >= 5.005 ? ## Add these new keywords supported since 5.005
10 (ABSTRACT_FROM => 'lib/LibTracker/Client.pm', # retrieve abstract from module
11 AUTHOR => 'Devendra Gera <gera@theoldmonk.net>') : ()),
12 LIBS => ['-ltrackerclient'], # e.g., '-lm'
13 DEFINE => '', # e.g., '-DHAVE_SOMETHING'
14 INC => '-I. `pkg-config --cflags dbus-glib-1 glib-2.0`', # e.g., '-I. -I/usr/include/other'
15 # Un-comment this if you add C files to link with later:
16 # OBJECT => '$(O_FILES)', # link all the C files too
18 if (eval {require ExtUtils::Constant; 1}) {
19 # If you edit these definitions to change the constants used by this module,
20 # you will need to use the generated const-c.inc and const-xs.inc
21 # files to replace their "fallback" counterparts before distributing your
23 my @names = (qw(DATA_DATE DATA_NUMERIC DATA_STRING DATA_STRING_INDEXABLE
24 SERVICE_APPLICATIONS SERVICE_APPOINTMENTS SERVICE_BOOKMARKS
25 SERVICE_CONTACTS SERVICE_CONVERSATIONS
26 SERVICE_DEVELOPMENT_FILES SERVICE_DOCUMENTS
27 SERVICE_EMAILATTACHMENTS SERVICE_EMAILS SERVICE_FILES
28 SERVICE_FOLDERS SERVICE_HISTORY SERVICE_IMAGES SERVICE_MUSIC
29 SERVICE_OTHER_FILES SERVICE_PLAYLISTS SERVICE_PROJECTS
30 SERVICE_TASKS SERVICE_TEXT_FILES SERVICE_VFS_DEVELOPMENT_FILES
31 SERVICE_VFS_DOCUMENTS SERVICE_VFS_FILES SERVICE_VFS_FOLDERS
32 SERVICE_VFS_IMAGES SERVICE_VFS_MUSIC SERVICE_VFS_OTHER_FILES
33 SERVICE_VFS_TEXT_FILES SERVICE_VFS_VIDEOS SERVICE_VIDEOS));
34 ExtUtils::Constant::WriteConstants(
35 NAME => 'LibTracker::Client',
38 C_FILE => 'const-c.inc',
39 XS_FILE => 'const-xs.inc',
46 foreach my $file ('const-c.inc', 'const-xs.inc') {
47 my $fallback = File::Spec->catfile('fallback', $file);
48 copy ($fallback, $file) or die "Can't copy $fallback to $file: $!";