diff --git a/graphics/squish/Makefile b/graphics/squish/Makefile index 2e63a32328da..77d487dad118 100644 --- a/graphics/squish/Makefile +++ b/graphics/squish/Makefile @@ -1,30 +1,31 @@ # Created by: Reinier de Blois # $FreeBSD$ PORTNAME= squish PORTVERSION= 1.10 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= graphics MASTER_SITES= http://libsquish.googlecode.com/files/ MAINTAINER= rddeblois@gmail.com COMMENT= Open source DXT compression library LICENSE= MIT -USES= gmake +USES= uidfix MAKE_ENV= INSTALL_DIR=${STAGEDIR}${PREFIX} PLIST_FILES= include/squish.h \ - lib/libsquish.a -CXXFLAGS+= -fPIC -include limits.h + lib/libsquish.a lib/libsquish.so.1 lib/libsquish.so +MAKEFILE= ${FILESDIR}/BSDmakefile +USE_LDCONFIG= yes OPTIONS_RADIO= RG1 OPTIONS_RADIO_RG1= ALTIVEC SSE OPTIONS_DEFAULT_amd64= SSE ALTIVEC_DESC= Use Altivec instructions RG1_DESC= Optimizations Selection ALTIVEC_CXXFLAGS= -DSQUISH_USE_ALTIVEC=1 -maltivec SSE_CXXFLAGS= -DSQUISH_USE_SSE=2 -msse2 .include diff --git a/graphics/squish/files/BSDmakefile b/graphics/squish/files/BSDmakefile new file mode 100644 index 000000000000..cd1235207e66 --- /dev/null +++ b/graphics/squish/files/BSDmakefile @@ -0,0 +1,15 @@ +LIB= squish +SHLIB_MAJOR= 1 +SRCS!= echo *.cpp +NO_PROFILE= yes + +CXXFLAGS+= -include limits.h -I${.CURDIR} + +LIBDIR= ${PREFIX}/lib +INCSDIR= ${PREFIX}/include +INCS= squish.h +# The below two are needed until PR 206126 is resolved +INCSOWN= ${LIBOWN} +INCSGRP= ${LIBGRP} + +.include