makefile.mk (7871dc3e) | makefile.mk (5f883a58) |
---|---|
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)}3.4-$(TARGET)-menus-$(PKGVERSION)-noarch-$(PKGREV).tgz | 39MENUFILES=$(PKGDIR)$/{$(PRODUCTLIST)}3.5-$(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/3.4//); DESTDIR=$(shell @cd $*; pwd) GNOMEDIR="" ICON_PREFIX=$(ICONPREFIX.$(*:b:s/-/ /:1:s/3.4//)) KDEMAINDIR=/opt/kde .$/create_tree.sh" | 58 /bin/sh -c "cd $(COMMONMISC)$/$(*:b:s/-/ /:1:s/3.5//); DESTDIR=$(shell @cd $*; pwd) GNOMEDIR="" ICON_PREFIX=$(ICONPREFIX.$(*:b:s/-/ /:1:s/3.5//)) 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/3.4//)) )" > $@ 66 @echo "( cd etc ; ln -snf /opt/$(UNIXFILENAME.$(*:b:s/-/ /:1:s/3.4//):s/-//) $(UNIXFILENAME.$(*:b:s/-/ /:1:s/3.4//)) )" >> $@ | 65 @echo "( cd etc ; rm -rf $(UNIXFILENAME.$(*:b:s/-/ /:1:s/3.5//)) )" > $@ 66 @echo "( cd etc ; ln -snf /opt/$(UNIXFILENAME.$(*:b:s/-/ /:1:s/3.5//):s/-//) $(UNIXFILENAME.$(*:b:s/-/ /:1:s/3.5//)) )" >> $@ |
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/3.4//))/program/soffice soffice )" >> $@ 69 @echo -e $(foreach,i,$(shell @cat $(COMMONMISC)$/$(*:b:s/-/ /:1:s/3.4//)/launcherlist) "\n( cd usr/share/applications ; rm -rf $(UNIXFILENAME.$(*:b:s/-/ /:1:s/3.4//))-$i )\n( cd usr/share/applications ; ln -sf /etc/$(UNIXFILENAME.$(*:b:s/-/ /:1:s/3.4//))/share/xdg/$i $(UNIXFILENAME.$(*:b:s/-/ /:1:s/3.4//))-$i )") >> $@ | 68 @echo "( cd usr/bin ; ln -sf /etc/$(UNIXFILENAME.$(*:b:s/-/ /:1:s/3.5//))/program/soffice soffice )" >> $@ 69 @echo -e $(foreach,i,$(shell @cat $(COMMONMISC)$/$(*:b:s/-/ /:1:s/3.5//)/launcherlist) "\n( cd usr/share/applications ; rm -rf $(UNIXFILENAME.$(*:b:s/-/ /:1:s/3.5//))-$i )\n( cd usr/share/applications ; ln -sf /etc/$(UNIXFILENAME.$(*:b:s/-/ /:1:s/3.5//))/share/xdg/$i $(UNIXFILENAME.$(*:b:s/-/ /:1:s/3.5//))-$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/3.4//)-$(TARGET)-menus/g" -e "s/PKGVERSION/$(PKGVERSION.$(*:b:s/-/ /:1:s/3.4//))/g" \ 75 -e "s/LONGPRODUCTNAME/$(PRODUCTNAME.$(*:b:s/-/ /:1:s/3.4//)) $(PRODUCTVERSION.$(*:b:s/-/ /:1:s/3.4//))/g" \ 76 -e "s/PRODUCTNAME/$(PRODUCTNAME.$(*:b:s/-/ /:1:s/3.4//))/g" \ 77 -e "s/UNIXFILENAME/$(UNIXFILENAME.$(*:b:s/-/ /:1:s/3.4//))/g" $< > $@ | 74 @sed -e "s/PKGNAME/$(*:b:s/-/ /:1:s/3.5//)-$(TARGET)-menus/g" -e "s/PKGVERSION/$(PKGVERSION.$(*:b:s/-/ /:1:s/3.5//))/g" \ 75 -e "s/LONGPRODUCTNAME/$(PRODUCTNAME.$(*:b:s/-/ /:1:s/3.5//)) $(PRODUCTVERSION.$(*:b:s/-/ /:1:s/3.5//))/g" \ 76 -e "s/PRODUCTNAME/$(PRODUCTNAME.$(*:b:s/-/ /:1:s/3.5//))/g" \ 77 -e "s/UNIXFILENAME/$(UNIXFILENAME.$(*:b:s/-/ /:1:s/3.5//))/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 follwoing 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 follwoing does not work (no description found then): 84# ./ 85# ./directory/file --- 23 unchanged lines hidden --- |