From owner-svn-ports-all@FreeBSD.ORG Thu Oct 17 23:52:10 2013 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 4D31AE66; Thu, 17 Oct 2013 23:52:10 +0000 (UTC) (envelope-from amdmi3@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 2BAC62BB8; Thu, 17 Oct 2013 23:52:10 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r9HNqAdR032347; Thu, 17 Oct 2013 23:52:10 GMT (envelope-from amdmi3@svn.freebsd.org) Received: (from amdmi3@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r9HNq9DH032345; Thu, 17 Oct 2013 23:52:09 GMT (envelope-from amdmi3@svn.freebsd.org) Message-Id: <201310172352.r9HNq9DH032345@svn.freebsd.org> From: Dmitry Marakasov Date: Thu, 17 Oct 2013 23:52:09 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r330693 - head/graphics/devil X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Oct 2013 23:52:10 -0000 Author: amdmi3 Date: Thu Oct 17 23:52:09 2013 New Revision: 330693 URL: http://svnweb.freebsd.org/changeset/ports/330693 Log: - Support staging - Use new OPTIONS features - Use new LIB_DEPENDS syntax - Fix NVTT option - Add missing SQUISH option - Enable all options by default as upstream does Modified: head/graphics/devil/Makefile head/graphics/devil/pkg-plist Modified: head/graphics/devil/Makefile ============================================================================== --- head/graphics/devil/Makefile Thu Oct 17 23:51:45 2013 (r330692) +++ head/graphics/devil/Makefile Thu Oct 17 23:52:09 2013 (r330693) @@ -12,23 +12,6 @@ DISTNAME= DevIL-${PORTVERSION} MAINTAINER= amdmi3@FreeBSD.org COMMENT= A full featured cross-platform image library -OPTIONS_DEFINE= JPEG JASPER LCMS MNG PNG TIFF X11 SDL NVTT SIMD DOCS -OPTIONS_DEFAULT=JPEG JASPER LCMS MNG PNG TIFF X11 DOCS - -JPEG_DESC= Enable JPEG support -JASPER_DESC= Enable JPEG2000 support -LCMS_DESC= Enable LCMS support -MNG_DESC= Enable MNG support -PNG_DESC= Enable PNG support -TIFF_DESC= Enable TIFF support -X11_DESC= Enable X11 support -SDL_DESC= Enable SDL support -NVTT_DESC= Enable NVidia texture tools support -SIMD_DESC= Enable SIMD autodetection (AltiVec, SSE3,...) - -WRKSRC= ${WRKDIR}/${DISTNAME:L} - -USE_GCC= any USES= pkgconfig USE_AUTOTOOLS= aclocal autoheader automake autoconf libtool ACLOCAL_ARGS= -I m4 -I ${LOCALBASE}/share/aclocal @@ -36,53 +19,55 @@ AUTOMAKE_ARGS= --add-missing --copy --fo CONFIGURE_ARGS= --enable-ILU \ --disable-allegro --disable-directx8 --disable-directx9 USE_LDCONFIG= yes +USE_GCC= any + +WRKSRC= ${WRKDIR}/${DISTNAME:L} CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib -NO_STAGE= yes -.include +PORTDOCS= * -.if ${PORT_OPTIONS:MJPEG} -LIB_DEPENDS+= jpeg:${PORTSDIR}/graphics/jpeg -CONFIGURE_ARGS+=--enable-jpeg -.else -CONFIGURE_ARGS+=--disable-jpeg -.endif +OPTIONS_DEFINE= JPEG JASPER LCMS MNG PNG TIFF EXR X11 SDL SQUISH NVTT SIMD DOCS +OPTIONS_DEFAULT=JPEG JASPER LCMS MNG PNG TIFF EXR X11 SDL SQUISH NVTT DOCS +OPTIONS_DEFAULT_amd64=SIMD -.if ${PORT_OPTIONS:MJASPER} -LIB_DEPENDS+= jasper:${PORTSDIR}/graphics/jasper -CONFIGURE_ARGS+=--enable-jp2 -.else -CONFIGURE_ARGS+=--disable-jp2 -.endif +JPEG_DESC= Enable JPEG support +JASPER_DESC= Enable JPEG2000 support +LCMS_DESC= Enable LCMS support +MNG_DESC= Enable MNG support +PNG_DESC= Enable PNG support +TIFF_DESC= Enable TIFF support +EXR_DESC= Enable EXR support +X11_DESC= Enable X11 support +SDL_DESC= Enable SDL support +SQUISH_DESC= Enable DXT compression via libsquish +NVTT_DESC= Enable NVidia texture tools support +SIMD_DESC= Enable SIMD autodetection (AltiVec, SSE3,...) -.if ${PORT_OPTIONS:MLCMS} -LIB_DEPENDS+= lcms:${PORTSDIR}/graphics/lcms -CONFIGURE_ARGS+=--enable-lcms -.else -CONFIGURE_ARGS+=--disable-lcms -.endif +JPEG_LIB_DEPENDS= libjpeg.so:${PORTSDIR}/graphics/jpeg +JPEG_CONFIGURE_ENABLE= jpeg +JASPER_LIB_DEPENDS= libjasper.so:${PORTSDIR}/graphics/jasper +JASPER_CONFIGURE_ENABLE=jp2 +LCMS_LIB_DEPENDS= liblcms.so:${PORTSDIR}/graphics/lcms +LCMS_CONFIGURE_ENABLE= lcms +MNG_LIB_DEPENDS= libmng.so:${PORTSDIR}/graphics/libmng +MNG_CONFIGURE_ENABLE= mng +PNG_LIB_DEPENDS= libpng.so:${PORTSDIR}/graphics/png +PNG_CONFIGURE_ENABLE= png +TIFF_LIB_DEPENDS= libtiff.so:${PORTSDIR}/graphics/tiff +TIFF_CONFIGURE_ENABLE= tiff +EXR_LIB_DEPENDS= libIlmImf.so:${PORTSDIR}/graphics/OpenEXR +EXR_CONFIGURE_ENABLE= exr +SQUISH_BUILD_DEPENDS= ${LOCALBASE}/lib/libsquish.a:${PORTSDIR}/graphics/squish +SQUISH_CONFIGURE_WITH= libsquish +NVTT_LIB_DEPENDS= libnvtt.so:${PORTSDIR}/graphics/nvidia-texture-tools +NVTT_CONFIGURE_WITH= nvtt -.if ${PORT_OPTIONS:MMNG} -LIB_DEPENDS+= mng:${PORTSDIR}/graphics/libmng -CONFIGURE_ARGS+=--enable-mng -.else -CONFIGURE_ARGS+=--disable-mng -.endif +.include -.if ${PORT_OPTIONS:MPNG} -LIB_DEPENDS+= png15:${PORTSDIR}/graphics/png -.else +.if ! ${PORT_OPTIONS:MPNG} CONFIGURE_ENV+= libpng_app=no -CONFIGURE_ARGS+=--disable-png -.endif - -.if ${PORT_OPTIONS:MTIFF} -LIB_DEPENDS+= tiff:${PORTSDIR}/graphics/tiff -CONFIGURE_ARGS+=--enable-tiff -.else -CONFIGURE_ARGS+=--disable-tiff .endif .if ${PORT_OPTIONS:MX11} @@ -100,13 +85,6 @@ USE_SDL= sdl CONFIGURE_ARGS+=--disable-sdl .endif -.if ${PORT_OPTIONS:MNVTT} -BUILD_DEPENDS+= ${LOCALBASE}/lib/libnvtt.so:${PORTSDIR}/graphics/nvidia-texture-tools -RUN_DEPENDS+= ${LOCALBASE}/lib/libnvtt.so:${PORTSDIR}/graphics/nvidia-texture-tools -.else -CONFIGURE_ARGS+=--without-nvtt -.endif - .if ! ${PORT_OPTIONS:MSIMD} CONFIGURE_ARGS+=--disable-altivec --disable-sse --disable-sse2 --disable-sse3 .endif @@ -119,12 +97,10 @@ post-patch: ${WRKSRC}/src-ILU/ilur/ilur.c post-install: - @${RMDIR} ${DATADIR}/examples -.if ${PORT_OPTIONS:MDOCS} - @${MKDIR} ${DOCSDIR} + @${RMDIR} ${STAGEDIR}${DATADIR}/examples + ${MKDIR} ${STAGEDIR}${DOCSDIR} .for file in AUTHORS CREDITS ChangeLog Libraries.txt README TODO - ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR} .endfor -.endif .include Modified: head/graphics/devil/pkg-plist ============================================================================== --- head/graphics/devil/pkg-plist Thu Oct 17 23:51:45 2013 (r330692) +++ head/graphics/devil/pkg-plist Thu Oct 17 23:52:09 2013 (r330693) @@ -19,12 +19,5 @@ lib/libILU.so.2 libdata/pkgconfig/IL.pc libdata/pkgconfig/ILU.pc %%X11%%libdata/pkgconfig/ILUT.pc -%%PORTDOCS%%%%DOCSDIR%%/AUTHORS -%%PORTDOCS%%%%DOCSDIR%%/CREDITS -%%PORTDOCS%%%%DOCSDIR%%/ChangeLog -%%PORTDOCS%%%%DOCSDIR%%/Libraries.txt -%%PORTDOCS%%%%DOCSDIR%%/README -%%PORTDOCS%%%%DOCSDIR%%/TODO -%%PORTDOCS%%@dirrm %%DOCSDIR%% @dirrm %%DATADIR%% @dirrm include/IL