mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
515db2ed10
GCC 4.2 in FreeBSD 8.X/9.X base is now too old to compile OpenEXR, so GCC-based systems will upgrade to the default ports compiler (GCC 4.7 currently.) Add two patches to OpenEXR to permit building it in a live system with the older OpenEXR version installed. Bug report filed to upstream Github at https://github.com/openexr/openexr/issues/130 Couple OpenEXR more tightly to ilmbase and require its exact .so version. Add UPDATING note, and bump PORTREVISION of all dependent ports. Proto-STAGE hugin-devel, and mark it IGNORE because hugin is newer. Approved by: portmgr (implicit for bumping PORTREVISION on unstaged ports)
86 lines
2.2 KiB
Makefile
86 lines
2.2 KiB
Makefile
# Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= refocus
|
|
PORTVERSION= 0.9.0
|
|
PORTREVISION= 1
|
|
CATEGORIES= graphics
|
|
MASTER_SITES= SF
|
|
PKGNAMEPREFIX= gimp-
|
|
PKGNAMESUFFIX= -plugin
|
|
|
|
MAINTAINER= lioux@FreeBSD.org
|
|
COMMENT= GIMP plugin to "refocus" images through FIR Wiener filtering
|
|
|
|
LICENSE= GPLv2
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/gimp-2.0.pc:${PORTSDIR}/graphics/gimp-app
|
|
RUN_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/gimp-2.0.pc:${PORTSDIR}/graphics/gimp-app
|
|
|
|
OPTIONS_DEFINE= ATLAS DOCS OPTIMIZED_CFLAGS
|
|
OPTIONS_DEFAULT= OPTIMIZED_CFLAGS
|
|
|
|
ATLAS_DESC= Build with optimized math/atlas instead of builtin
|
|
|
|
USES= gettext gmake pathfix pkgconfig
|
|
|
|
# GCC required due to fortran dependency, e.g., math/atlas
|
|
USE_GCC= yes
|
|
|
|
USE_AUTOTOOLS= aclocal autoconf automake
|
|
AUTOMAKE_ARGS= --add-missing
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ENV= GIMPTOOL=${LOCALBASE}/bin/gimptool-2.0
|
|
|
|
GIMP_PLUGIN_DIR= libexec/gimp/2.2/plug-ins
|
|
|
|
# installed files
|
|
PLIST_FILES= ${GIMP_PLUGIN_DIR}/${PORTNAME}
|
|
|
|
# installed dirs
|
|
PLIST_DIRSTRY= libexec/gimp/2.2/plug-ins \
|
|
libexec/gimp/2.2 \
|
|
libexec/gimp
|
|
|
|
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 <bsd.port.options.mk>
|
|
|
|
# math/atlas library
|
|
.if ${PORT_OPTIONS:MATLAS}
|
|
BUILD_DEPENDS+= \
|
|
${LOCALBASE}/include/f2c.h:${PORTSDIR}/lang/f2c \
|
|
${LOCALBASE}/include/clapack.h:${PORTSDIR}/math/atlas
|
|
RUN_DEPENDS+= \
|
|
${LOCALBASE}/include/clapack.h:${PORTSDIR}/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}
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/doc/*html ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/doc/*pdf ${STAGEDIR}${DOCSDIR}
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|