wok-current view notecase/receipt @ rev 14321

notecase: add LDFLAGS
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Apr 07 22:05:54 2013 +0200 (2013-04-07)
parents 70d569bf17ed
children 1c40dce382b3
line source
1 # SliTaz package receipt
3 PACKAGE="notecase"
4 VERSION="1.9.8"
5 CATEGORY="office"
6 SHORT_DESC="Hierarchical note manager (aka. outliner)."
7 MAINTAINER="cooltaz@fastmail.fm"
8 DEPENDS="gtk+ xorg-libXdamage gcc-lib-base"
9 BUILD_DEPENDS="gtk+-dev pixman-dev gtksourceview-dev gnome-vfs-dev"
10 TARBALL="$PACKAGE-${VERSION}_src.tar.gz"
11 WEB_SITE="http://notecase.sourceforge.net/"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
13 TAGS="office notes"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
19 cd $src
20 export LDFLAGS="-Wl,--copy-dt-needed-entries -lX11"
21 busybox patch -p1 -i $stuff/notecase-1.9.8_gcc4.u || return 1
23 # Disable gnome-vfs support
24 sed -i /'AUTODETECT_GNOME_VFS=1'/d Makefile
25 sed -i /'HAVE_GNOME_VFS=1'/d Makefile
26 sed -i /'AUTODETECT_GTKSOURCEVIEW=1'/d Makefile
27 sed -i s/'install -D'/'install'/ Makefile
28 # Compile
29 make 2>&1 | grep -v gtksourceview.h
30 # Locale trick (Makefile use install -D)
31 cd po
32 for i in `ls *.po | cut -f1 -d.`
33 do
34 mkdir -p $src/_pkg/usr/share/locale/$i/LC_MESSAGES
35 done
36 cd ..
37 # Install
38 make DESTDIR=$PWD/_pkg install
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr/share/applications
45 cp -a $stuff/notecase.desktop $fs/usr/share/applications
46 cp -a $_pkg/usr/bin $fs/usr
47 cp -a $_pkg/usr/share/mime $fs/usr/share
48 }