summaryrefslogtreecommitdiff
path: root/extensions/source/macosx
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2007-10-09 14:06:10 +0000
committerKurt Zenker <kz@openoffice.org>2007-10-09 14:06:10 +0000
commitf289df6a9d692594fa6f71f42f324d0d3bb18ddb (patch)
treebf71d8256f953fc9e0c7554242450b44962c583e /extensions/source/macosx
parentaef466bd63d2af1ea2ea91932c0fee0ba35e73d3 (diff)
INTEGRATION: CWS spotlightplugin01 (1.1.2); FILE ADDED
2007/09/18 00:20:48 fheckl 1.1.2.3: Incorporating cloph's suggestions 2007/09/18 00:06:48 fheckl 1.1.2.2: Fixing runtime issue (importer is now a bundle with only the needed lib deps) 2007/09/14 21:06:34 fheckl 1.1.2.1: #72355 adding new files for macosx spotlight plugin
Diffstat (limited to 'extensions/source/macosx')
-rw-r--r--extensions/source/macosx/spotlight/makefile.mk105
1 files changed, 105 insertions, 0 deletions
diff --git a/extensions/source/macosx/spotlight/makefile.mk b/extensions/source/macosx/spotlight/makefile.mk
new file mode 100644
index 000000000000..b8c7cd10287a
--- /dev/null
+++ b/extensions/source/macosx/spotlight/makefile.mk
@@ -0,0 +1,105 @@
+#*************************************************************************
+#
+# OpenOffice.org - a multi-platform office productivity suite
+#
+# $RCSfile: makefile.mk,v $
+#
+# $Revision: 1.2 $
+#
+# last change: $Author: kz $ $Date: 2007-10-09 15:06:10 $
+#
+# The Contents of this file are made available subject to
+# the terms of GNU Lesser General Public License Version 2.1.
+#
+#
+# GNU Lesser General Public License Version 2.1
+# =============================================
+# Copyright 2005 by Sun Microsystems, Inc.
+# 901 San Antonio Road, Palo Alto, CA 94303, USA
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License version 2.1, as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+# MA 02111-1307 USA
+#
+#*************************************************************************
+
+PRJ=../../..
+PRJNAME=extensions
+TARGET=spotlightplugin
+
+# --- Settings ----------------------------------
+
+.INCLUDE : settings.mk
+
+.IF "$(OS)"!="MACOSX"
+dummy:
+ @echo Not using Mac OS X - nothing to build
+.ENDIF
+
+# --- Files -------------------------------------
+
+# ... object files ............................
+SLOFILES= \
+ $(SLO)$/ioapi.obj \
+ $(SLO)$/unzip.obj \
+ $(SLO)$/main.obj \
+ $(SLO)$/GetMetadataForFile.obj \
+ $(SLO)$/OOoContentDataParser.obj \
+ $(SLO)$/OOoMetaDataParser.obj \
+ $(SLO)$/OOoSpotlightImporter.obj \
+
+BUNDLE = $(MISC)$/OOoSpotlightImporter.mdimporter
+CONTENTS = $(BUNDLE)$/Contents
+RESOURCES = $(CONTENTS)$/Resources
+MACOS = $(CONTENTS)$/MacOS
+
+BUNDLELIBS= -framework CoreFoundation \
+ -framework Foundation \
+ -framework CoreServices \
+ $(ZLIB3RDLIB)
+
+plistfiles = $(CONTENTS)$/Info.plist
+binaries = $(MACOS)$/OOoSpotlightImporter
+resources = $(RESOURCES)/en.lproj/schema.strings \
+ $(RESOURCES)/schema.xml
+
+ZIPFLAGS = -r
+ZIP1TARGET = mdibundle
+ZIP1DIR = $(CONTENTS)
+ZIP1LIST = *
+
+
+# --- Targets ----------------------------------
+
+.INCLUDE : target.mk
+
+$(ZIP1TARGETN) : $(plistfiles) $(binaries) $(resources)
+
+# Info.plist is just versioned and copied into the bundle
+$(CONTENTS)$/%.plist : mdimporter/%.plist
+ $(MKDIRHIER) $(@:d)
+ $(COPY) "$<" "$@"
+
+$(MACOS)$/OOoSpotlightImporter: $(SLOFILES)
+ $(MKDIRHIER) $(@:d)
+ $(CC) -o $(MACOS)$/OOoSpotlightImporter $(SLOFILES:s/.obj/.o/) $(BUNDLELIBS) -bundle
+# we have to change the zlib install name, otherwise the plugin will not work
+ .IF "$(SYSTEM_ZLIB)"=="NO"
+ install_name_tool -change @executable_path/libz.1.dylib @executable_path/../../../../MacOS/libz.1.dylib $(MACOS)$/OOoSpotlightImporter
+ .ENDIF
+
+#the resources are just copied
+$(RESOURCES)$/% : mdimporter/%
+ $(MKDIRHIER) $(@:d)
+ $(COPY) "$<" "$@"
+