1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
3 # This file is part of the LibreOffice project.
5 # This Source Code Form is subject to the terms of the Mozilla Public
6 # License, v. 2.0. If a copy of the MPL was not distributed with this
7 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 include $(SRCDIR
)/sysui
/productlist.mk
12 solaris_WORKDIR
:= $(call gb_CustomTarget_get_workdir
,sysui
/solaris
)
13 solaris_SRCDIR
:= $(SRCDIR
)/sysui
/desktop
/solaris
15 $(eval
$(call gb_CustomTarget_CustomTarget
,sysui
/solaris
))
17 $(eval
$(call gb_CustomTarget_register_targets
,sysui
/solaris
,\
18 $(foreach product
,$(PRODUCTLIST
),\
22 $(product
)/copyright \
23 $(product
)/postinstall \
24 $(product
)/postremove \
25 $(product
)/prototype \
26 $(product
)-desktop-integration.
tar.gz
) \
30 $(solaris_WORKDIR
)/%/pkginfo
: $(solaris_SRCDIR
)/pkginfo
31 cat
$< | tr
-d
"\015" | sed
-e
"s/%PRODUCTNAME/$(PRODUCTNAME.$*) $(PRODUCTVERSION)/g" -e
"s/%pkgprefix/$*/g" > $@
33 $(solaris_WORKDIR
)/%/depend
: $(solaris_SRCDIR
)/depend
34 cat
$< | tr
-d
"\015" | sed
-e
"s/%PRODUCTNAME/$(PRODUCTNAME.$*) $(PRODUCTVERSION)/g" -e
"s/%pkgprefix/$*/g" > $@
36 $(solaris_WORKDIR
)/%/mailcap
: $(solaris_SRCDIR
)/mailcap
37 cat
$< | tr
-d
"\015" | sed
-e
"s/%PREFIX/$(UNIXFILENAME.$*)/g" > $@
39 $(solaris_WORKDIR
)/%/copyright
: $(solaris_SRCDIR
)/copyright
40 cat
$< | tr
-d
"\015" > $@
42 $(solaris_WORKDIR
)/%/postinstall
: $(solaris_SRCDIR
)/postinstall
43 cat
$< | tr
-d
"\015" > $@
45 $(solaris_WORKDIR
)/%/postremove
: $(solaris_SRCDIR
)/postremove
46 cat
$< | tr
-d
"\015" > $@
48 $(solaris_WORKDIR
)/%/prototype
: $(solaris_SRCDIR
)/prototype
49 cat
$< | tr
-d
"\015" | sed
-e
"s/%PREFIX/$(UNIXFILENAME.$*)/g" -e
"s_%SOURCE_$(call gb_CustomTarget_get_workdir,sysui/share)/$*_g" -e
"s/%ICONPREFIX/$(UNIXFILENAME.$*)/g" > $@
51 $(solaris_WORKDIR
)/%-desktop-integration.
tar.gz
: $(solaris_WORKDIR
)/%/copyright
$(solaris_WORKDIR
)/%/pkginfo
$(solaris_WORKDIR
)/%/depend
$(solaris_WORKDIR
)/%/mailcap
$(solaris_WORKDIR
)/%/postinstall
$(solaris_WORKDIR
)/%/postremove
$(solaris_WORKDIR
)/%/prototype
$(call gb_CustomTarget_get_workdir
,sysui
/share
)/%/openoffice.org.xml
52 # pkgmk -l 1073741824 -r $(solaris_WORKDIR) -f $(solaris_WORKDIR)/$*/prototype -o -d $(solaris_WORKDIR) ARCH=all VERSION=$(PKGVERSION.$*)
53 $(GNUTAR
) -cf
- -C
$(solaris_WORKDIR
) $*$(LIBO_MAJOR
) -desktop-int | gzip
> $@
55 # vim: set noet sw=4 ts=4: