1
0
forked from ports/contrib

36 lines
933 B
Plaintext
Raw Normal View History

2014-07-07 17:13:01 +10:00
# Description: Spell checking utility for GTK+ applications.
2020-07-12 18:48:11 +00:00
# URL: http://gtkspell.sourceforge.net/
2014-11-10 23:28:07 +11:00
# Maintainer: Danny Rawlins, crux at romster dot me
2021-04-26 23:09:53 +10:00
# Depends on: aspell-en enchant gtk gtk-doc xorg-libxdamage intltool
2014-07-07 17:13:01 +10:00
name=gtkspell
version=2.0.16
2021-04-26 23:09:53 +10:00
release=4
2017-11-28 08:42:01 +11:00
source=(https://downloads.sourceforge.net/project/$name/$version/$name-$version.tar.gz
enchant-2.patch)
2014-07-07 17:13:01 +10:00
build() {
cd $name-$version
2021-04-26 23:09:53 +10:00
# Fix intltoolize broken file, see upstream #577133
sed -i -e "s:'\^\$\$lang\$\$':\^\$\$lang\$\$:g" po/Makefile.in.in
2018-01-31 22:38:54 +11:00
patch -p1 -i $SRC/enchant-2.patch
gtkdocize
autoreconf -fvi
2014-07-07 17:13:01 +10:00
rm -f $SRC/po/*.{po,gmo}
sed -i \
-e 's/USE_NLS=yes/USE_NLS=no/' \
-e 's/ENABLE_NLS 1/ENABLE_NLS 0/' configure
sed -i -e 's/SUBDIRS = gtkspell examples docs po/SUBDIRS = gtkspell examples po/' Makefile.in
./configure --prefix=/usr
2018-01-31 22:38:54 +11:00
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
2014-07-07 17:13:01 +10:00
make
make DESTDIR=$PKG install
}