mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-03 07:42:10 +01:00
69 lines
2.0 KiB
Plaintext
69 lines
2.0 KiB
Plaintext
# Contributor: Cameron Banta <cbanta@gmail.com>
|
|
# Maintainer: Cameron Banta <cbanta@gmail.com>
|
|
pkgname=ghostscript
|
|
pkgver=9.04
|
|
pkgrel=0
|
|
pkgdesc="An interpreter for the PostScript language and for PDF"
|
|
url="http://ghostscript.com/"
|
|
arch="all"
|
|
license="GPL3"
|
|
makedepends="autoconf automake jpeg-dev libpng-dev jasper-dev expat-dev zlib-dev tiff-dev
|
|
freetype-dev libiconv-dev lcms-dev"
|
|
subpackages="$pkgname-doc $pkgname-dev"
|
|
source="http://downloads.ghostscript.com/public/$pkgname-$pkgver.tar.gz"
|
|
|
|
prepare() {
|
|
cd "$srcdir/$pkgname-$pkgver"
|
|
|
|
# force it to use system-libs
|
|
rm -rf jpeg libpng zlib jasper expat tiff lcms
|
|
|
|
# fix parallel builds
|
|
sed -i -e 's/ECHO_XE/ECHOGS_XE/g' \
|
|
-e 's/^\($(GLOBJ)md5.$(OBJ) :.*\)/\1 $(ECHOGS_XE)/' \
|
|
base/lib.mak || return 1
|
|
|
|
./autogen.sh \
|
|
--prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--mandir=/usr/share/man \
|
|
--infodir=/usr/share/info \
|
|
--docdir=/usr/share/doc/"$pkgname" \
|
|
--enable-dynamic \
|
|
--with-system-libtiff \
|
|
--without-ijs --without-x \
|
|
--with-jbig2dec \
|
|
--without-omni \
|
|
--with-drivers=FILES \
|
|
--with-fontpath=/usr/share/fonts/Type1:/usr/share/fonts \
|
|
--disable-cups --disable-gtk \
|
|
--disable-compile-inits # needed for linking with system-zlib
|
|
}
|
|
|
|
build(){
|
|
cd "$srcdir/$pkgname-$pkgver"
|
|
make so all || return 1
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir/$pkgname-$pkgver"
|
|
make -j1 DESTDIR="${pkgdir}" install soinstall || return 1
|
|
|
|
#create empty dir for future fonts
|
|
mkdir -p "${pkgdir}"/usr/share/fonts/Type1
|
|
|
|
# license and copying
|
|
install -m644 -D "$srcdir/$pkgname-$pkgver/LICENSE" \
|
|
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
|
install -m644 -D "$srcdir/$pkgname-$pkgver/doc/COPYING" \
|
|
"$pkgdir/usr/share/licenses/$pkgname/COPYING"
|
|
|
|
# make the doc and examples more alpine like
|
|
# (the --docdir above doesn't seem to work so good)
|
|
mkdir -p "$pkgdir/usr/share/doc/$pkgname"
|
|
mv "$pkgdir/usr/share/$pkgname/$pkgver/doc" "$pkgdir/usr/share/doc/$pkgname"
|
|
mv "$pkgdir/usr/share/$pkgname/$pkgver/examples" "$pkgdir/usr/share/doc/$pkgname"
|
|
}
|
|
|
|
md5sums="9c2fb4af1eb609d09dba5bb0fa76173a ghostscript-9.04.tar.gz"
|