wok rev 24876

magicpoint: ar syntax adaptation)
author Hans-G?nter Theisgen
date Thu Mar 31 11:00:43 2022 +0100 (2022-03-31)
parents 278e569f7820
children 52da7d813652
files magicpoint/description.txt magicpoint/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/magicpoint/description.txt	Thu Mar 31 11:00:43 2022 +0100
     1.3 @@ -0,0 +1,6 @@
     1.4 +Magic Point is an X11 based presentation tool.
     1.5 +It is designed to make simple presentations easy while to make complicated
     1.6 +presentations possible.
     1.7 +Its presentation file (whose suffix is typically .mgp) is just text so that
     1.8 +you can create presentation files quickly with your favorite editor
     1.9 +(e.g. Emacs, vi).
     2.1 --- a/magicpoint/receipt	Thu Mar 31 10:07:36 2022 +0100
     2.2 +++ b/magicpoint/receipt	Thu Mar 31 11:00:43 2022 +0100
     2.3 @@ -6,18 +6,19 @@
     2.4  SHORT_DESC="An X11-based presentation tool."
     2.5  MAINTAINER="rcx@zoominternet.net"
     2.6  LICENSE="BSD"
     2.7 +WEB_SITE="http://member.wide.ad.jp/wg/mgp/"
     2.8 +
     2.9  TARBALL="$PACKAGE-$VERSION.tar.gz"
    2.10 -WEB_SITE="http://member.wide.ad.jp/wg/mgp/"
    2.11  WGET_URL="ftp://sh.wide.ad.jp/WIDE/free-ware/mgp/$TARBALL"
    2.12  
    2.13 -DEPENDS="glibc-base expat zlib util-linux-uuid fontconfig freetype1 freetype \
    2.14 -giflib jpeg libpng tiff imlib xorg-libICE xorg-libSM xorg-libX11 \
    2.15 -xorg-libXau xorg-libXdmcp xorg-libXext xorg-libXft xorg-libXmu \
    2.16 -xorg-libXrender xorg-libXt"
    2.17 -BUILD_DEPENDS="bison flex m4 gettext fontconfig-dev \
    2.18 -freetype1 freetype1-dev freetype-dev giflib-dev imlib-dev xorg-imake \
    2.19 -xorg-cf-files xorg-libX11-dev xorg-libXft-dev xorg-libXmu-dev \
    2.20 -xorg-libXrender-dev xorg-xproto xorg-xextproto"
    2.21 +DEPENDS="expat fontconfig freetype freetype1 giflib glibc-base imlib
    2.22 +	jpeg libpng tiff util-linux-uuid xorg-libICE xorg-libSM
    2.23 +	xorg-libX11 xorg-libXau xorg-libXdmcp xorg-libXext xorg-libXft
    2.24 +	xorg-libXmu xorg-libXrender xorg-libXt zlib"
    2.25 +BUILD_DEPENDS="bison flex fontconfig-dev freetype-dev freetype1
    2.26 +	freetype1-dev gettext giflib-dev imlib-dev m4 xorg-cf-files
    2.27 +	xorg-imake xorg-libX11-dev xorg-libXft-dev xorg-libXmu-dev
    2.28 +	xorg-libXrender-dev xorg-xextproto xorg-xproto"
    2.29  
    2.30  # What is the latest version available today?
    2.31  current_version()
    2.32 @@ -29,31 +30,43 @@
    2.33  # Rules to configure and make the package.
    2.34  compile_rules()
    2.35  {
    2.36 -	./configure \
    2.37 -		--prefix=/usr \
    2.38 -		--infodir=/usr/share/info \
    2.39 -		--mandir=/usr/share/man \
    2.40 +	./configure				\
    2.41 +		--prefix=/usr			\
    2.42 +		--infodir=/usr/share/info	\
    2.43 +		--mandir=/usr/share/man		\
    2.44  		$CONFIGURE_ARGS &&
    2.45  	xmkmf &&
    2.46 -	make -j1 Makefiles &&
    2.47 -	make -j1 &&
    2.48 -	make -j1 DESTDIR=$DESTDIR install
    2.49 +	make Makefiles &&
    2.50 +	# because of altered syntax for ar in binutils-2.37:
    2.51 +	sed -i 's|ar clq|ar cq|'	\
    2.52 +		Makefile		\
    2.53 +		image/Makefile		\
    2.54 +		sample/Makefile		\
    2.55 +		contrib/Makefile	\
    2.56 +		contrib/xwintoppm/Makefile &&
    2.57 +	make -j 1 &&
    2.58 +	make install DESTDIR=$DESTDIR
    2.59 +	# Do not remove -j 1 !
    2.60  }
    2.61  
    2.62  # Rules to gen a SliTaz package suitable for Tazpkg.
    2.63  genpkg_rules()
    2.64  {
    2.65 -	mkdir -p $fs/usr/lib/X11/mgp $fs/usr/share/applications
    2.66 -	mkdir -p $install/usr/share/doc $install/usr/share/man
    2.67 -	cp -f $install/usr/lib/X11/mgp/default.mgp $fs/usr/lib/X11/mgp
    2.68 -	cp -a $install/usr/bin $fs/usr
    2.69 -	cp $src/*.man $install/usr/share/man/
    2.70 -	cp $src/COPYRIGHT $src/FAQ $src/RE* $src/SYNTAX $install/usr/share/doc
    2.71 -	cp $src/USAGE $install/usr/share/doc
    2.72 +	mkdir -p $fs/usr/lib/X11/mgp
    2.73 +	mkdir -p $fs/usr/share/applications
    2.74 +	mkdir -p $install/usr/share/doc
    2.75 +	mkdir -p $install/usr/share/man
    2.76 +
    2.77 +	cp -f $install/usr/lib/X11/mgp/default.mgp	$fs/usr/lib/X11/mgp
    2.78 +	cp -a $install/usr/bin				$fs/usr
    2.79 +	cp $src/*.man					$install/usr/share/man/
    2.80 +	cp $src/COPYRIGHT $src/FAQ $src/RE*		$src/SYNTAX $install/usr/share/doc
    2.81 +	cp $src/USAGE					$install/usr/share/doc
    2.82  	cat > $fs/usr/share/applications/magicpoint.desktop <<EOT
    2.83  [Desktop Entry]
    2.84  Type=Application
    2.85  Name=MagicPoint Presentation
    2.86 +Name[de]=MagicPoint Präsentation
    2.87  Name[fr]=Présentation Magicpoint
    2.88  Icon=x-office-presentation
    2.89  Exec=mgp %f
    2.90 @@ -64,13 +77,14 @@
    2.91  
    2.92  post_install()
    2.93  {
    2.94 -	for i in magicpoint mgp ; do
    2.95 +	for i in magicpoint mgp
    2.96 +	  do
    2.97  		grep -q application/x-$i $1/usr/share/applications/defaults.list ||
    2.98  		echo "application/x-$i=magicpoint.desktop" >> $1/usr/share/applications/defaults.list
    2.99 -	done
   2.100 +	  done
   2.101  }
   2.102  
   2.103  post_remove()
   2.104  {
   2.105  	sed -i '/=magicpoint.desktop/' $1/usr/share/applications/defaults.list 
   2.106 -}
   2.107 \ No newline at end of file
   2.108 +}