ted: cross compile
This commit is contained in:
parent
d8c88de49f
commit
e2d0a4244b
1 changed files with 23 additions and 11 deletions
|
@ -1,22 +1,34 @@
|
|||
# Template file for 'ted'
|
||||
pkgname=ted
|
||||
version=2.23
|
||||
revision=1
|
||||
revision=2
|
||||
wrksrc=Ted-${version}
|
||||
hostmakedepends="pkg-config"
|
||||
makedepends="zlib-devel pcre-devel libX11-devel libxmp-devel tiff-devel libpng-devel libjpeg-turbo-devel gtk+-devel libpaper-devel"
|
||||
short_desc="An easy rich text processor"
|
||||
build_style=gnu-configure
|
||||
hostmakedepends="pkg-config tar"
|
||||
makedepends="zlib-devel pcre-devel libX11-devel libxmp-devel tiff-devel
|
||||
libpng-devel libjpeg-turbo-devel gtk+-devel libpaper-devel"
|
||||
short_desc="Easy rich text processor"
|
||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||
license="GPL-2"
|
||||
license="GPL-2.0-or-later"
|
||||
homepage="https://nllgg.nl/Ted/"
|
||||
distfiles="http://ftp.nluug.nl/pub/editors/ted/ted-${version}.src.tar.gz"
|
||||
checksum=3fa992c2bc96af3ca788ef941cb5314f4a1d843202efd0201b8b4ee9adbf316c
|
||||
nocross=yes
|
||||
|
||||
post_patch() {
|
||||
vsed -i -e '/YOU MUST BE ROOT/ s/id -u /echo 0 /' tedPackage/configure
|
||||
vsed -i -e 's/@LIBTIFF_LIBS@/-ltiff/g' \
|
||||
-e 's/@LIBPAPER_LIBS@/-lpaper/g' \
|
||||
Ted/makefile.in
|
||||
}
|
||||
|
||||
do_configure() {
|
||||
# replace all newlines with tabs
|
||||
export CONFIGURE_OPTIONS="${configure_args//
|
||||
/ }"
|
||||
vsed -i -e '/^CONFIGURE_OPTIONS[ ]*=/ s/=/ += /' Makefile
|
||||
make $(sed -n '/^[-a-zA-Z0-9_]*\/[Mm]akefile:/ s/:.*//p' Makefile)
|
||||
}
|
||||
|
||||
do_build() {
|
||||
make
|
||||
}
|
||||
|
||||
do_install() {
|
||||
make install DESTDIR="${DESTDIR}"
|
||||
make $makejobs compile.shared
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue