wok diff magicpoint/receipt @ rev 25794
created recipe for exo-lang
author | Hans-G?nter Theisgen |
---|---|
date | Wed Oct 23 16:19:52 2024 +0100 (4 weeks ago) |
parents | bc2b9d9bed6f |
children |
line diff
1.1 --- a/magicpoint/receipt Sun Mar 06 21:04:14 2022 +0000 1.2 +++ b/magicpoint/receipt Wed Oct 23 16:19:52 2024 +0100 1.3 @@ -6,18 +6,19 @@ 1.4 SHORT_DESC="An X11-based presentation tool." 1.5 MAINTAINER="rcx@zoominternet.net" 1.6 LICENSE="BSD" 1.7 +WEB_SITE="http://member.wide.ad.jp/wg/mgp/" 1.8 + 1.9 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.10 -WEB_SITE="http://member.wide.ad.jp/wg/mgp/" 1.11 WGET_URL="ftp://sh.wide.ad.jp/WIDE/free-ware/mgp/$TARBALL" 1.12 1.13 -DEPENDS="glibc-base expat zlib util-linux-uuid fontconfig freetype1 freetype \ 1.14 -giflib jpeg libpng tiff imlib xorg-libICE xorg-libSM xorg-libX11 \ 1.15 -xorg-libXau xorg-libXdmcp xorg-libXext xorg-libXft xorg-libXmu \ 1.16 -xorg-libXrender xorg-libXt" 1.17 -BUILD_DEPENDS="bison flex m4 gettext fontconfig-dev \ 1.18 -freetype1 freetype1-dev freetype-dev giflib-dev imlib-dev xorg-imake \ 1.19 -xorg-cf-files xorg-libX11-dev xorg-libXft-dev xorg-libXmu-dev \ 1.20 -xorg-libXrender-dev xorg-xproto xorg-xextproto" 1.21 +DEPENDS="expat fontconfig freetype freetype1 giflib glibc-base imlib 1.22 + jpeg libpng tiff util-linux-uuid xorg-libICE xorg-libSM 1.23 + xorg-libX11 xorg-libXau xorg-libXdmcp xorg-libXext xorg-libXft 1.24 + xorg-libXmu xorg-libXrender xorg-libXt zlib" 1.25 +BUILD_DEPENDS="bison flex fontconfig-dev freetype-dev freetype1 1.26 + freetype1-dev gettext giflib-dev imlib-dev m4 xorg-cf-files 1.27 + xorg-imake xorg-libX11-dev xorg-libXft-dev xorg-libXmu-dev 1.28 + xorg-libXrender-dev xorg-xextproto xorg-xproto" 1.29 1.30 # What is the latest version available today? 1.31 current_version() 1.32 @@ -29,31 +30,43 @@ 1.33 # Rules to configure and make the package. 1.34 compile_rules() 1.35 { 1.36 - ./configure \ 1.37 - --prefix=/usr \ 1.38 - --infodir=/usr/share/info \ 1.39 - --mandir=/usr/share/man \ 1.40 + ./configure \ 1.41 + --prefix=/usr \ 1.42 + --infodir=/usr/share/info \ 1.43 + --mandir=/usr/share/man \ 1.44 $CONFIGURE_ARGS && 1.45 xmkmf && 1.46 - make -j1 Makefiles && 1.47 - make -j1 && 1.48 - make -j1 DESTDIR=$DESTDIR install 1.49 + make Makefiles && 1.50 + # because of altered syntax for ar in binutils-2.37: 1.51 + sed -i 's|ar clq|ar cq|' \ 1.52 + Makefile \ 1.53 + image/Makefile \ 1.54 + sample/Makefile \ 1.55 + contrib/Makefile \ 1.56 + contrib/xwintoppm/Makefile && 1.57 + make -j 1 && 1.58 + make install DESTDIR=$DESTDIR 1.59 + # Do not remove -j 1 ! 1.60 } 1.61 1.62 # Rules to gen a SliTaz package suitable for Tazpkg. 1.63 genpkg_rules() 1.64 { 1.65 - mkdir -p $fs/usr/lib/X11/mgp $fs/usr/share/applications 1.66 - mkdir -p $install/usr/share/doc $install/usr/share/man 1.67 - cp -f $install/usr/lib/X11/mgp/default.mgp $fs/usr/lib/X11/mgp 1.68 - cp -a $install/usr/bin $fs/usr 1.69 - cp $src/*.man $install/usr/share/man/ 1.70 - cp $src/COPYRIGHT $src/FAQ $src/RE* $src/SYNTAX $install/usr/share/doc 1.71 - cp $src/USAGE $install/usr/share/doc 1.72 + mkdir -p $fs/usr/lib/X11/mgp 1.73 + mkdir -p $fs/usr/share/applications 1.74 + mkdir -p $install/usr/share/doc 1.75 + mkdir -p $install/usr/share/man 1.76 + 1.77 + cp -f $install/usr/lib/X11/mgp/default.mgp $fs/usr/lib/X11/mgp 1.78 + cp -a $install/usr/bin $fs/usr 1.79 + cp $src/*.man $install/usr/share/man/ 1.80 + cp $src/COPYRIGHT $src/FAQ $src/RE* $src/SYNTAX $install/usr/share/doc 1.81 + cp $src/USAGE $install/usr/share/doc 1.82 cat > $fs/usr/share/applications/magicpoint.desktop <<EOT 1.83 [Desktop Entry] 1.84 Type=Application 1.85 Name=MagicPoint Presentation 1.86 +Name[de]=MagicPoint Präsentation 1.87 Name[fr]=Présentation Magicpoint 1.88 Icon=x-office-presentation 1.89 Exec=mgp %f 1.90 @@ -64,13 +77,14 @@ 1.91 1.92 post_install() 1.93 { 1.94 - for i in magicpoint mgp ; do 1.95 + for i in magicpoint mgp 1.96 + do 1.97 grep -q application/x-$i $1/usr/share/applications/defaults.list || 1.98 echo "application/x-$i=magicpoint.desktop" >> $1/usr/share/applications/defaults.list 1.99 - done 1.100 + done 1.101 } 1.102 1.103 post_remove() 1.104 { 1.105 sed -i '/=magicpoint.desktop/' $1/usr/share/applications/defaults.list 1.106 -} 1.107 \ No newline at end of file 1.108 +}