1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 # Copyright 2000, 2010 Oracle and/or its affiliates.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # This file is part of OpenOffice.org.
11 # OpenOffice.org is free software: you can redistribute it and/or modify
12 # it under the terms of the GNU Lesser General Public License version 3
13 # only, as published by the Free Software Foundation.
15 # OpenOffice.org is distributed in the hope that it will be useful,
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 # GNU Lesser General Public License version 3 for more details
19 # (a copy is included in the LICENSE file that accompanied this code).
21 # You should have received a copy of the GNU Lesser General Public License
22 # version 3 along with OpenOffice.org. If not, see
23 # <http://www.openoffice.org/license.html>
24 # for a copy of the LGPLv3 License.
26 #*************************************************************************
33 # --- Settings -----------------------------------------------------
35 .INCLUDE
: settings.mk
37 # --- Product Version Information ----------------------------------
39 .INCLUDE
: ..
/productversion.mk
41 # --- Files --------------------------------------------------------
43 MENUFILES
=$(PKGDIR
)$/{$(PRODUCTLIST
)}3.3-$(TARGET
)-menus-
$(PKGVERSION
)-noarch-
$(PKGREV
).tgz
45 # --- Targets -------------------------------------------------------
49 .IF
"$(OS)" == "LINUX"
53 $(MISC
)/$(TARGET
)/usr
/share
/applications
/ :
56 # --- slackware-specific stuff ------------------------------------
57 # symlinks shall not be included in the tarball, but created with the doinst-script
59 # FIXME: removal of *-extension.* only to create identical packages to OOF680
60 %/usr
/share
/applications
:
62 /bin
/sh
-c
"cd $(COMMONMISC)$/$(*:b:s/-/ /:1:s/3.3//); DESTDIR=$(shell @cd $*; pwd) GNOMEDIR="" ICON_PREFIX=$(ICONPREFIX.$(*:b:s/-/ /:1:s/3.3//)) KDEMAINDIR=/opt/kde .$/create_tree.sh"
63 $(RM
) $*$/opt
$/kde
$/share
$/icons
$/*$/*$/*$/*-extension.png
64 $(RM
) $*$/opt
$/kde
$/share
$/mimelnk
$/application
$/*-extension.desktop
65 $(RM
) $*$/usr
$/share
$/applications
$/*.desktop
66 $(RM
) $*$/usr
$/bin
$/soffice
68 %$/install$/doinst.sh
: update-script
69 @echo
"( cd etc ; rm -rf $(UNIXFILENAME.$(*:b:s/-/ /:1:s/3.3//)) )" > $@
70 @echo
"( cd etc ; ln -snf /opt/$(UNIXFILENAME.$(*:b:s/-/ /:1:s/3.3//):s/-//) $(UNIXFILENAME.$(*:b:s/-/ /:1:s/3.3//)) )" >> $@
71 @echo
"( cd usr/bin ; rm -rf soffice )" >> $@
72 @echo
"( cd usr/bin ; ln -sf /etc/$(UNIXFILENAME.$(*:b:s/-/ /:1:s/3.3//))/program/soffice soffice )" >> $@
73 @echo
-e
$(foreach,i
,$(shell @cat
$(COMMONMISC
)$/$(*:b
:s
/-/ /:1:s
/3.3//)/launcherlist
) "\n( cd usr/share/applications ; rm -rf $(UNIXFILENAME.$(*:b:s/-/ /:1:s/3.3//))-$i )\n( cd usr/share/applications ; ln -sf /etc/$(UNIXFILENAME.$(*:b:s/-/ /:1:s/3.3//))/share/xdg/$i $(UNIXFILENAME.$(*:b:s/-/ /:1:s/3.3//))-$i )") >> $@
76 %$/install$/slack-desc
: slack-desc
78 @sed
-e
"s/PKGNAME/$(*:b:s/-/ /:1:s/3.3//)-$(TARGET)-menus/g" -e
"s/PKGVERSION/$(PKGVERSION.$(*:b:s/-/ /:1:s/3.3//))/g" \
79 -e
"s/LONGPRODUCTNAME/$(PRODUCTNAME.$(*:b:s/-/ /:1:s/3.3//)) $(PRODUCTVERSION.$(*:b:s/-/ /:1:s/3.3//))/g" \
80 -e
"s/PRODUCTNAME/$(PRODUCTNAME.$(*:b:s/-/ /:1:s/3.3//))/g" \
81 -e
"s/UNIXFILENAME/$(UNIXFILENAME.$(*:b:s/-/ /:1:s/3.3//))/g" $< > $@
83 # needed to satisfy the slackware package tools - they need
84 # the entries like this
85 # ./ <- very important
87 # the follwoing does not work (no description found then):
90 # and this doesn't work either (broken file-list, package cannot be removed)
93 $(MISC
)/$(TARGET
)/empty.
tar :
94 @
$(MKDIRHIER
) $(@
:d
)/empty
95 @
tar -C
$(MISC
)/$(TARGET
)/empty
--owner
=root
--group
=root
--same-owner
-cf
$@ .
98 # --- packaging ---------------------------------------------------
100 $(MENUFILES
) : makefile.mk slack-desc update-script
$(COMMONMISC
)$/{$(PRODUCTLIST
)}$/build.flag
101 $(MENUFILES
) : $(MISC
)/$(TARGET
)/empty.
tar
102 @
-$(MKDIRHIER
) $(@
:d
)
103 -$(RM
) $(@
:d
)$/$(@
:b
:s
/-/ /:1)-$(TARGET
)-menus-
*.tgz
104 -$(RM
) -r
$(MISC
)$/$(@
:b
)
105 dmake
$(MISC
)$/$(@
:b
)$/usr
/share
/applications
$(MISC
)$/$(@
:b
)$/install$/slack-desc
$(MISC
)$/$(@
:b
)$/install$/doinst.sh
106 @
$(COPY
) $(MISC
)/$(TARGET
)$/empty.
tar $@.tmp
107 @
tar -C
$(MISC
)/$(@
:b
) --owner
=root
--group
=root
--same-owner
--exclude application.flag
-rf
$@.tmp
install usr opt
110 $(RM
) -r
$(MISC
)$/$(@
:b
)