From owner-svn-ports-all@freebsd.org Wed Jul 26 20:32:07 2017 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0D854DAFBDE; Wed, 26 Jul 2017 20:32:07 +0000 (UTC) (envelope-from pawel@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D917875EEE; Wed, 26 Jul 2017 20:32:06 +0000 (UTC) (envelope-from pawel@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v6QKW6lR075414; Wed, 26 Jul 2017 20:32:06 GMT (envelope-from pawel@FreeBSD.org) Received: (from pawel@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v6QKW6Eg075413; Wed, 26 Jul 2017 20:32:06 GMT (envelope-from pawel@FreeBSD.org) Message-Id: <201707262032.v6QKW6Eg075413@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pawel set sender to pawel@FreeBSD.org using -f From: Pawel Pekala Date: Wed, 26 Jul 2017 20:32:06 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r446696 - head/graphics/gimp-refocus-plugin X-SVN-Group: ports-head X-SVN-Commit-Author: pawel X-SVN-Commit-Paths: head/graphics/gimp-refocus-plugin X-SVN-Commit-Revision: 446696 X-SVN-Commit-Repository: ports 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.23 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: Wed, 26 Jul 2017 20:32:07 -0000 Author: pawel Date: Wed Jul 26 20:32:05 2017 New Revision: 446696 URL: https://svnweb.freebsd.org/changeset/ports/446696 Log: - Add LICENSE_FILE - Convert to options helpers - Add missing dependencies found by stage-qa - Remove USE_GCC it's only needed for ATLAS option and is handled by USES=fortran now - Fix build with ATLAS=on by providing correct lapack libs - Remove obvious comments Modified: head/graphics/gimp-refocus-plugin/Makefile Modified: head/graphics/gimp-refocus-plugin/Makefile ============================================================================== --- head/graphics/gimp-refocus-plugin/Makefile Wed Jul 26 20:18:20 2017 (r446695) +++ head/graphics/gimp-refocus-plugin/Makefile Wed Jul 26 20:32:05 2017 (r446696) @@ -3,7 +3,7 @@ PORTNAME= refocus PORTVERSION= 0.9.0 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= graphics MASTER_SITES= SF PKGNAMEPREFIX= gimp- @@ -13,66 +13,47 @@ MAINTAINER= ports@FreeBSD.org COMMENT= GIMP plugin to "refocus" images through FIR Wiener filtering LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/COPYING -BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/gimp-2.0.pc:graphics/gimp-app -RUN_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/gimp-2.0.pc:graphics/gimp-app +LIB_DEPENDS= libgimp-2.0.so:graphics/gimp-app \ + libfreetype.so:print/freetype2 \ + libfontconfig.so:x11-fonts/fontconfig -OPTIONS_DEFINE= ATLAS DOCS OPTIMIZED_CFLAGS -OPTIONS_DEFAULT= OPTIMIZED_CFLAGS - -ATLAS_DESC= Build with optimized math/atlas instead of builtin - USES= autoreconf gettext gmake pathfix pkgconfig - -# GCC required due to fortran dependency, e.g., math/atlas -USE_GCC= yes - GNU_CONFIGURE= yes CONFIGURE_ENV= GIMPTOOL=${LOCALBASE}/bin/gimptool-2.0 +USE_GNOME= atk cairo gdkpixbuf2 glib20 gtk20 pango GIMP_PLUGIN_DIR= libexec/gimp/2.2/plug-ins -# installed files PLIST_FILES= ${GIMP_PLUGIN_DIR}/${PORTNAME} +PORTDOCS= * +OPTIONS_DEFINE= ATLAS DOCS OPTIMIZED_CFLAGS +OPTIONS_DEFAULT= OPTIMIZED_CFLAGS + +ATLAS_DESC= Build with optimized math/atlas instead of builtin +ATLAS_USES= blaslapack:atlas fortran +ATLAS_BUILD_DEPENDS= f2c>0:lang/f2c +ATLAS_CONFIGURE_ON= --with-lapack-libs="${LAPACKLIB} ${BLASLIB}" \ + --with-lapack-includes="-I${LOCALBASE}/include" + +OPTIMIZED_CFLAGS_CFLAGS= -O3 + post-patch: @${FIND} ${WRKSRC} -name Makefile.am \ -exec ${REINPLACE_CMD} -e "s|; make|; ${MAKE_CMD}|" {} \; @${REINPLACE_CMD} -e "s|%%WRKSRC%%|${WRKSRC}|" \ ${WRKSRC}/configure.in -.include - -# math/atlas library -.if ${PORT_OPTIONS:MATLAS} -BUILD_DEPENDS+= \ - ${LOCALBASE}/include/f2c.h:lang/f2c \ - ${LOCALBASE}/include/clapack.h:math/atlas -RUN_DEPENDS+= \ - ${LOCALBASE}/include/clapack.h:math/atlas - -CONFIGURE_ARGS+= --with-lapack-libs="-L${LOCALBASE}/lib -latlas -lblas -lcblas -llapack" \ - --with-lapack-includes="-I${LOCALBASE}/include" -.endif - -# optimized CFLAGS -.if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS} -CFLAGS+= -O3 -.endif - -# documentation -PORTDOCS= * - do-install: -# plugin @${MKDIR} ${STAGEDIR}${PREFIX}/${GIMP_PLUGIN_DIR}/ ${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME} \ ${STAGEDIR}${PREFIX}/${GIMP_PLUGIN_DIR}/ -# docs -.if ${PORT_OPTIONS:MDOCS} + +do-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/doc/*html ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/doc/*pdf ${STAGEDIR}${DOCSDIR} -.endif .include