diff options
-rw-r--r-- | graphics/Makefile | 1 | ||||
-rw-r--r-- | graphics/squish/Makefile | 39 | ||||
-rw-r--r-- | graphics/squish/distinfo | 2 | ||||
-rw-r--r-- | graphics/squish/pkg-descr | 4 |
4 files changed, 46 insertions, 0 deletions
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 <me@rdb.name> +# +# $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 <bsd.port.options.mk> + +.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 <bsd.port.mk> 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/ |