svn commit: r406051 - in head/graphics/squish: . files

Mikhail Teterin mi at FreeBSD.org
Wed Jan 13 15:42:41 UTC 2016


Author: mi
Date: Wed Jan 13 15:42:39 2016
New Revision: 406051
URL: https://svnweb.freebsd.org/changeset/ports/406051

Log:
  Up until now the port installed only a static version of libsquish
  -- because the upstream's makefile only built that. Add our own
  little makefile, that properly builds both static and shared variants
  using bsd.lib.mk
  
  PR:		206125
  Approved by:	Reinier de Blois (maintainer)

Added:
  head/graphics/squish/files/
  head/graphics/squish/files/BSDmakefile   (contents, props changed)
Modified:
  head/graphics/squish/Makefile

Modified: head/graphics/squish/Makefile
==============================================================================
--- head/graphics/squish/Makefile	Wed Jan 13 15:26:49 2016	(r406050)
+++ head/graphics/squish/Makefile	Wed Jan 13 15:42:39 2016	(r406051)
@@ -3,7 +3,7 @@
 
 PORTNAME=	squish
 PORTVERSION=	1.10
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	graphics
 MASTER_SITES=	http://libsquish.googlecode.com/files/
 
@@ -12,11 +12,12 @@ COMMENT=	Open source DXT compression lib
 
 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

Added: head/graphics/squish/files/BSDmakefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/squish/files/BSDmakefile	Wed Jan 13 15:42:39 2016	(r406051)
@@ -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 <bsd.lib.mk>


More information about the svn-ports-head mailing list