mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
54 lines
2.0 KiB
Tcl
54 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 cmake 1.1
|
|
PortGroup muniversal 1.0
|
|
|
|
name squish
|
|
version 1.15
|
|
revision 1
|
|
checksums rmd160 01a380439426f5a40ad8f42ada58a09d2f1d3fbb \
|
|
sha256 628796eeba608866183a61d080d46967c9dda6723bc0a3ec52324c85d2147269 \
|
|
size 59199
|
|
|
|
categories graphics
|
|
maintainers nomaintainer
|
|
license MIT
|
|
|
|
description DXT Compression Library
|
|
|
|
long_description DXT compression is a very well-designed compression scheme \
|
|
for colour textures with an optional alpha channel. The \
|
|
${name} library is a cross-platform open source \
|
|
implementation of DXT compression (and decompression).
|
|
|
|
homepage https://sourceforge.net/projects/lib${name}/
|
|
master_sites sourceforge:project/lib${name}
|
|
distname lib${name}-${version}
|
|
extract.suffix .tgz
|
|
extract.mkdir yes
|
|
|
|
patchfiles-append add-pkgconfig-file.diff
|
|
|
|
configure.args -DBUILD_SHARED_LIBS=ON \
|
|
-DBUILD_SQUISH_WITH_OPENMP=OFF
|
|
|
|
array set merger_configure_args {
|
|
arm64 {-DBUILD_SQUISH_WITH_ALTIVEC=OFF -DBUILD_SQUISH_WITH_SSE2=OFF}
|
|
i386 {-DBUILD_SQUISH_WITH_ALTIVEC=OFF -DBUILD_SQUISH_WITH_SSE2=ON}
|
|
ppc {-DBUILD_SQUISH_WITH_ALTIVEC=ON -DBUILD_SQUISH_WITH_SSE2=OFF}
|
|
ppc64 {-DBUILD_SQUISH_WITH_ALTIVEC=ON -DBUILD_SQUISH_WITH_SSE2=OFF}
|
|
x86_64 {-DBUILD_SQUISH_WITH_ALTIVEC=OFF -DBUILD_SQUISH_WITH_SSE2=ON}
|
|
}
|
|
|
|
if {!${universal_possible} || ![variant_isset universal]} {
|
|
if {[info exists merger_configure_args(${configure.build_arch})]} {
|
|
configure.args-append {*}$merger_configure_args(${configure.build_arch})
|
|
}
|
|
}
|
|
|
|
post-destroot {
|
|
reinplace -E "s/\(Version: \).*/\\1${version}/" \
|
|
${destroot}${prefix}/share/pkgconfig/lib${name}.pc
|
|
}
|