Files
Joshua Root 096c8690f6 graphics/*: set github.tarball_from explicitly
In preparation for changing the default.
2025-01-21 01:01:29 +11:00

50 lines
2.0 KiB
Tcl

# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
PortGroup github 1.0
github.setup pts sam2p 0.49.4 v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
revision 8
categories graphics
license GPL-2
maintainers {takeshi @tenomoto} openmaintainer
description convert raster images to PostScript, PDF etc
long_description \
sam2p is a UNIX command line utility written in ANSI C++ \
that converts many raster (bitmap) image formats into \
Adobe PostScript or PDF files and several other formats. \
The images are not vectorized. \
sam2p gives full control to the user to specify \
standards-compliance, compression, and bit depths. \
In some cases sam2p can compress an image 100 times smaller \
than the PostScript output of many other common image converters. \
sam2p provides ZIP, RLE and LZW (de)compression filters \
even on Level1 PostScript devices.
checksums rmd160 c2edf19e86c5c0daf494b8e7ef28493787748ea4 \
sha256 bbeff481ddfb579c5cdc3b4c0832576a8af509efebe9f9de952c98e591f37d2b \
size 1767887
depends_build port:tif22pnm \
port:lzw_codec
depends_lib path:include/turbojpeg.h:libjpeg-turbo \
port:netpbm
depends_run port:ghostscript
configure.args --enable-lzw \
--enable-gif
destroot {
xinstall -m 755 ${worksrcpath}/${name} ${destroot}${prefix}/bin
xinstall -d -m 755 ${destroot}${prefix}/share/doc
xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}
xinstall -m 644 ${worksrcpath}/README ${destroot}${prefix}/share/doc/${name}
xinstall -d -m 755 ${destroot}${prefix}/share/${name}
foreach d {examples contrib} {
file copy ${worksrcpath}/${d} ${destroot}${prefix}/share/${name}
}
}