From ee57b82aa4530a0a14098ab282a0a77c13f33762 Mon Sep 17 00:00:00 2001 From: Martin Wilke Date: Sat, 25 Jun 2011 07:53:49 +0000 Subject: [PATCH] The squish library (abbreviated to libsquish) is an open source DXT compression library written in C++. WWW: http://code.google.com/p/libsquish/ PR: ports/155712 Submitted by: Reinier de Blois --- graphics/Makefile | 1 + graphics/squish/Makefile | 39 +++++++++++++++++++++++++++++++++++++++ graphics/squish/distinfo | 2 ++ graphics/squish/pkg-descr | 4 ++++ 4 files changed, 46 insertions(+) create mode 100644 graphics/squish/Makefile create mode 100644 graphics/squish/distinfo create mode 100644 graphics/squish/pkg-descr diff --git a/graphics/Makefile b/graphics/Makefile index ca427e42450f..38adf71c38af 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -889,6 +889,7 @@ SUBDIR += solang SUBDIR += spcaview SUBDIR += springgraph + SUBDIR += squish SUBDIR += sswf SUBDIR += stamp SUBDIR += stl2pov diff --git a/graphics/squish/Makefile b/graphics/squish/Makefile new file mode 100644 index 000000000000..882e2e372595 --- /dev/null +++ b/graphics/squish/Makefile @@ -0,0 +1,39 @@ +# New ports collection makefile for: squish +# Date created: 08 Mar 2011 +# Whom: Reinier de Blois +# +# $FreeBSD$ +# + +PORTNAME= squish +PORTVERSION= 1.10 +CATEGORIES= graphics +MASTER_SITES= http://libsquish.googlecode.com/files/ + +MAINTAINER= me@rdb.name +COMMENT= Open source DXT compression library + +LICENSE= MIT +USE_GMAKE= YES +PLIST_FILES= include/squish.h \ + lib/libsquish.a +OPTIONS= ALTIVEC "Use Altivec instructions" off \ + SSE "Use SSE2 instructions" off + +.include + +.if defined(WITH_ALTIVEC) && defined(WITH_SSE) +IGNORE= cannot build with both WITH_ALTIVEC and WITH_SSE +.endif + +CXXFLAGS+= -fPIC + +.if defined(WITH_ALTIVEC) +CXXFLAGS+= -DSQUISH_USE_ALTIVEC=1 -maltivec +.endif + +.if defined(WITH_SSE) +CXXFLAGS+= -DSQUISH_USE_SSE=2 -msse +.endif + +.include diff --git a/graphics/squish/distinfo b/graphics/squish/distinfo new file mode 100644 index 000000000000..ca001ca2af33 --- /dev/null +++ b/graphics/squish/distinfo @@ -0,0 +1,2 @@ +SHA256 (squish-1.10.tar.gz) = aec3428badafdbb3b0ed1ea3a385a8029e65694282459f61b4a538963e8cada3 +SIZE (squish-1.10.tar.gz) = 45009 diff --git a/graphics/squish/pkg-descr b/graphics/squish/pkg-descr new file mode 100644 index 000000000000..cd99183d9f58 --- /dev/null +++ b/graphics/squish/pkg-descr @@ -0,0 +1,4 @@ +The squish library (abbreviated to libsquish) is an open +source DXT compression library written in C++. + +WWW: http://code.google.com/p/libsquish/