2014-07-24 16:54:08 +00:00
|
|
|
# Template file for 'ipe'
|
|
|
|
pkgname=ipe
|
2016-01-25 12:06:05 +00:00
|
|
|
version=7.2.2
|
2016-02-05 23:30:27 +00:00
|
|
|
revision=2
|
2016-01-02 15:18:37 +00:00
|
|
|
_tools_commit=e5b23399a83d69fd5bb5d4645ef7325b4b57435b
|
2015-07-27 10:22:09 +00:00
|
|
|
hostmakedepends="pkg-config"
|
2015-10-25 14:29:51 +00:00
|
|
|
makedepends="qt5-devel lua52-devel libjpeg-turbo-devel cairo-devel poppler-devel"
|
2014-07-24 16:54:08 +00:00
|
|
|
short_desc="Drawing editor for creating figures in PDF or EPS formats"
|
|
|
|
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
|
2014-11-29 22:56:56 +00:00
|
|
|
license="GPL-3, GPL-2"
|
2015-09-09 11:52:00 +00:00
|
|
|
homepage="http://ipe.otfried.org/"
|
2015-11-23 10:42:30 +00:00
|
|
|
distfiles="https://dl.bintray.com/otfried/generic/ipe/${version%.*}/${pkgname}-${version}-src.tar.gz
|
2015-10-25 14:29:51 +00:00
|
|
|
https://github.com/otfried/ipe-tools/archive/$_tools_commit.tar.gz"
|
2016-01-25 12:06:05 +00:00
|
|
|
checksum="a70181492ac2d83546b5c88cb15da382b906d905ea3babe700bf98c822821d68
|
2016-01-02 15:18:37 +00:00
|
|
|
60a96ad4674fc8f3c2d8bd8ab789734dbb47cabed09a178f595b0e478a526442"
|
2014-11-29 23:22:24 +00:00
|
|
|
|
2014-12-06 14:30:54 +00:00
|
|
|
post_extract() {
|
2015-07-27 10:22:09 +00:00
|
|
|
mv $XBPS_BUILDDIR/ipe-tools* ipe-tools
|
2015-05-13 18:46:35 +00:00
|
|
|
|
|
|
|
sed -i 's/xlocale.h/locale.h/g' src/ipelib/ipeplatform.cpp
|
|
|
|
sed -i '/cstdio/i#include <sys/types.h>' src/include/ipebase.h
|
2014-11-29 23:22:24 +00:00
|
|
|
}
|
2014-07-24 16:54:08 +00:00
|
|
|
|
|
|
|
do_build() {
|
2015-10-01 20:07:55 +00:00
|
|
|
make ${makejobs} -C src IPEPREFIX=/usr LUA_PACKAGE=lua5.2
|
2014-12-06 14:30:54 +00:00
|
|
|
make ${makejobs} -C ipe-tools/figtoipe
|
|
|
|
make ${makejobs} -C ipe-tools/pdftoipe
|
2014-07-24 16:54:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
2014-11-29 23:22:24 +00:00
|
|
|
make -C src install IPEPREFIX=/usr LUA_PACKAGE=lua INSTALL_ROOT=${DESTDIR}
|
2014-12-06 14:30:54 +00:00
|
|
|
vbin ipe-tools/figtoipe/figtoipe
|
|
|
|
vbin ipe-tools/pdftoipe/pdftoipe
|
|
|
|
vbin ipe-tools/svgtoipe/svgtoipe.py svgtoipe
|
2014-07-24 16:54:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
ipe-devel_package() {
|
2014-11-23 13:57:08 +00:00
|
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
2014-11-29 22:56:56 +00:00
|
|
|
short_desc+=" - development files"
|
2014-11-23 13:57:08 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove "usr/lib/*.so"
|
|
|
|
vmove "usr/share/ipe/$version/doc"
|
|
|
|
}
|
2014-07-24 16:54:08 +00:00
|
|
|
}
|