makefile.mk (86e1cf34) | makefile.mk (151db34c) |
---|---|
1#************************************************************** 2# 3# Licensed to the Apache Software Foundation (ASF) under one 4# or more contributor license agreements. See the NOTICE file 5# distributed with this work for additional information 6# regarding copyright ownership. The ASF licenses this file 7# to you under the Apache License, Version 2.0 (the 8# "License"); you may not use this file except in compliance --- 22 unchanged lines hidden (view full) --- 31.INCLUDE : settings.mk 32 33# --- Product Version Information ---------------------------------- 34 35.INCLUDE : ../productversion.mk 36 37# --- Files -------------------------------------------------------- 38 | 1#************************************************************** 2# 3# Licensed to the Apache Software Foundation (ASF) under one 4# or more contributor license agreements. See the NOTICE file 5# distributed with this work for additional information 6# regarding copyright ownership. The ASF licenses this file 7# to you under the Apache License, Version 2.0 (the 8# "License"); you may not use this file except in compliance --- 22 unchanged lines hidden (view full) --- 31.INCLUDE : settings.mk 32 33# --- Product Version Information ---------------------------------- 34 35.INCLUDE : ../productversion.mk 36 37# --- Files -------------------------------------------------------- 38 |
39MENUFILES=$(PKGDIR)$/{$(PRODUCTLIST)}4.0-$(TARGET)-menus-$(PKGVERSION)-noarch-$(PKGREV).tgz | 39MENUFILES=$(PKGDIR)$/{$(PRODUCTLIST)}4.2-$(TARGET)-menus-$(PKGVERSION)-noarch-$(PKGREV).tgz |
40 41# --- Targets ------------------------------------------------------- 42 43.INCLUDE : target.mk 44 45.IF "$(OS)" == "LINUX" 46 47ALLTAR : $(MENUFILES) 48 49$(MISC)/$(TARGET)/usr/share/applications/ : 50 @$(MKDIRHIER) $(@) 51 52# --- slackware-specific stuff ------------------------------------ 53# symlinks shall not be included in the tarball, but created with the doinst-script 54 55# FIXME: removal of *-extension.* only to create identical packages to OOF680 56%/usr/share/applications : 57 @$(MKDIRHIER) $@ | 40 41# --- Targets ------------------------------------------------------- 42 43.INCLUDE : target.mk 44 45.IF "$(OS)" == "LINUX" 46 47ALLTAR : $(MENUFILES) 48 49$(MISC)/$(TARGET)/usr/share/applications/ : 50 @$(MKDIRHIER) $(@) 51 52# --- slackware-specific stuff ------------------------------------ 53# symlinks shall not be included in the tarball, but created with the doinst-script 54 55# FIXME: removal of *-extension.* only to create identical packages to OOF680 56%/usr/share/applications : 57 @$(MKDIRHIER) $@ |
58 /bin/sh -c "cd $(COMMONMISC)$/$(*:b:s/-/ /:1:s/4.0//); DESTDIR=$(shell @cd $*; pwd) GNOMEDIR="" ICON_PREFIX=$(ICONPREFIX.$(*:b:s/-/ /:1:s/4.0//)) KDEMAINDIR=/opt/kde .$/create_tree.sh" | 58 /bin/sh -c "cd $(COMMONMISC)$/$(*:b:s/-/ /:1:s/4.2//); DESTDIR=$(shell @cd $*; pwd) GNOMEDIR="" ICON_PREFIX=$(ICONPREFIX.$(*:b:s/-/ /:1:s/4.2//)) KDEMAINDIR=/opt/kde .$/create_tree.sh" |
59 $(RM) $*$/opt$/kde$/share$/icons$/*$/*$/*$/*-extension.png 60 $(RM) $*$/opt$/kde$/share$/mimelnk$/application$/*-extension.desktop 61 $(RM) $*$/usr$/share$/applications$/*.desktop 62 $(RM) $*$/usr$/bin$/soffice 63 64%$/install$/doinst.sh : update-script | 59 $(RM) $*$/opt$/kde$/share$/icons$/*$/*$/*$/*-extension.png 60 $(RM) $*$/opt$/kde$/share$/mimelnk$/application$/*-extension.desktop 61 $(RM) $*$/usr$/share$/applications$/*.desktop 62 $(RM) $*$/usr$/bin$/soffice 63 64%$/install$/doinst.sh : update-script |
65 @echo "( cd etc ; rm -rf $(UNIXFILENAME.$(*:b:s/-/ /:1:s/4.0//)) )" > $@ 66 @echo "( cd etc ; ln -snf /opt/$(UNIXFILENAME.$(*:b:s/-/ /:1:s/4.0//):s/-//) $(UNIXFILENAME.$(*:b:s/-/ /:1:s/4.0//)) )" >> $@ | 65 @echo "( cd etc ; rm -rf $(UNIXFILENAME.$(*:b:s/-/ /:1:s/4.2//)) )" > $@ 66 @echo "( cd etc ; ln -snf /opt/$(UNIXFILENAME.$(*:b:s/-/ /:1:s/4.2//):s/-//) $(UNIXFILENAME.$(*:b:s/-/ /:1:s/4.2//)) )" >> $@ |
67 @echo "( cd usr/bin ; rm -rf soffice )" >> $@ | 67 @echo "( cd usr/bin ; rm -rf soffice )" >> $@ |
68 @echo "( cd usr/bin ; ln -sf /etc/$(UNIXFILENAME.$(*:b:s/-/ /:1:s/4.0//))/program/soffice soffice )" >> $@ 69 @echo -e $(foreach,i,$(shell @cat $(COMMONMISC)$/$(*:b:s/-/ /:1:s/4.0//)/launcherlist) "\n( cd usr/share/applications ; rm -rf $(UNIXFILENAME.$(*:b:s/-/ /:1:s/4.0//))-$i )\n( cd usr/share/applications ; ln -sf /etc/$(UNIXFILENAME.$(*:b:s/-/ /:1:s/4.0//))/share/xdg/$i $(UNIXFILENAME.$(*:b:s/-/ /:1:s/4.0//))-$i )") >> $@ | 68 @echo "( cd usr/bin ; ln -sf /etc/$(UNIXFILENAME.$(*:b:s/-/ /:1:s/4.2//))/program/soffice soffice )" >> $@ 69 @echo -e $(foreach,i,$(shell @cat $(COMMONMISC)$/$(*:b:s/-/ /:1:s/4.2//)/launcherlist) "\n( cd usr/share/applications ; rm -rf $(UNIXFILENAME.$(*:b:s/-/ /:1:s/4.2//))-$i )\n( cd usr/share/applications ; ln -sf /etc/$(UNIXFILENAME.$(*:b:s/-/ /:1:s/4.2//))/share/xdg/$i $(UNIXFILENAME.$(*:b:s/-/ /:1:s/4.2//))-$i )") >> $@ |
70 @cat $< >> $@ 71 72%$/install$/slack-desc : slack-desc 73 @$(MKDIRHIER) $(@:d) | 70 @cat $< >> $@ 71 72%$/install$/slack-desc : slack-desc 73 @$(MKDIRHIER) $(@:d) |
74 @sed -e "s/PKGNAME/$(*:b:s/-/ /:1:s/4.0//)-$(TARGET)-menus/g" -e "s/PKGVERSION/$(PKGVERSION.$(*:b:s/-/ /:1:s/4.0//))/g" \ 75 -e "s/LONGPRODUCTNAME/$(PRODUCTNAME.$(*:b:s/-/ /:1:s/4.0//)) $(PRODUCTVERSION.$(*:b:s/-/ /:1:s/4.0//))/g" \ 76 -e "s/PRODUCTNAME/$(PRODUCTNAME.$(*:b:s/-/ /:1:s/4.0//))/g" \ 77 -e "s/UNIXFILENAME/$(UNIXFILENAME.$(*:b:s/-/ /:1:s/4.0//))/g" $< > $@ | 74 @sed -e "s/PKGNAME/$(*:b:s/-/ /:1:s/4.2//)-$(TARGET)-menus/g" -e "s/PKGVERSION/$(PKGVERSION.$(*:b:s/-/ /:1:s/4.2//))/g" \ 75 -e "s/LONGPRODUCTNAME/$(PRODUCTNAME.$(*:b:s/-/ /:1:s/4.2//)) $(PRODUCTVERSION.$(*:b:s/-/ /:1:s/4.2//))/g" \ 76 -e "s/PRODUCTNAME/$(PRODUCTNAME.$(*:b:s/-/ /:1:s/4.2//))/g" \ 77 -e "s/UNIXFILENAME/$(UNIXFILENAME.$(*:b:s/-/ /:1:s/4.2//))/g" $< > $@ |
78 79# needed to satisfy the slackware package tools - they need 80# the entries like this 81# ./ <- very important 82# directory/file 83# the following does not work (no description found then): 84# ./ 85# ./directory/file --- 23 unchanged lines hidden --- | 78 79# needed to satisfy the slackware package tools - they need 80# the entries like this 81# ./ <- very important 82# directory/file 83# the following does not work (no description found then): 84# ./ 85# ./directory/file --- 23 unchanged lines hidden --- |