wok view TeXmacs/receipt @ rev 25634

TeXmacs, giblib: remove imlib2-config
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Dec 24 10:47:01 2023 +0000 (11 months ago)
parents a3b6dd3aac6f
children 54dc5622a785
line source
1 # SliTaz package receipt.
3 PACKAGE="TeXmacs"
4 VERSION="1.0.7.8"
5 CATEGORY="office"
6 SHORT_DESC="The high quality of TeX with a wisiwyg editor"
7 MAINTAINER="slitaz@leledy.fr"
8 LICENSE="GPL"
9 TARBALL="$PACKAGE-$VERSION-src.tar.gz"
10 WEB_SITE="http://www.texmacs.org/"
11 WGET_URL="ftp://ftp.texmacs.org/pub/$PACKAGE/targz/$TARBALL"
13 DEPENDS="ghostscript gmp guile freetype TeXmacs-windows-fonts"
14 # freetype and TeXmacs-windows-fonts avoid depending on TeX which is a *huge* system
15 BUILD_DEPENDS="xorg-libX11-dev gmp-dev guile-dev freetype-dev imlib2-dev"
17 current_version()
18 {
19 wget -O - http://ftp.texmacs.org/pub/$PACKAGE/targz/ 2>/dev/null | \
20 sed "/src.tar/!d;s|.*$PACKAGE-\\(.*\\).src.*\".*|\\1|" | sort -Vr | sed q
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 mv $src-src $src 2> /dev/null
27 cd $src
28 if ! which imlib2-config ; then
29 sed -i -e 's|imlib2-config --cflags|pkg-config --cflags imlib2|' \
30 -e 's|imlib2-config --libs|pkg-config --libs imlib2|' configure*
31 fi
32 sed -i 's|.*include <util.h>|//&|' plugins/shell/src/tm_shell.cpp plugins/r/src/tm_r.c
33 ./configure \
34 --with-imlib2 \
35 --prefix=/usr \
36 --infodir=/usr/share/info \
37 --mandir=/usr/share/man \
38 --libexecdir=/usr/lib \
39 $CONFIGURE_ARGS &&
40 make && make DESTDIR=$DESTDIR install
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 mkdir -p $fs/usr
47 cp -a $install/usr/bin $fs/usr
48 cp -a $install/usr/lib $fs/usr
49 cp -a $install/usr/share $fs/usr
50 }