1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00
freebsd-ports/graphics/ufraw/Makefile
Dmitry Marakasov 30a00f2227 Most commonly used build systems support silent builds, when they
hide actual commands executed and only show short summary line (like
"CC foo.c"). CMake and ninja enable this by default, some autotools
using ports do as well. This is unacceptable because we need complete
build logs at any time, so we now switch to verbose build logs
unconditionally. Note that this change deliberately affects ALL
builds and not only package builds on cluster, because we need to
be sure that user experiencing failure can always provide informative
build log regardless of settings and without rerunning the build.

Change summary:

- Always do verbose builds for cmake, ninja and GNU configure (the
  latter includes check if --disable-silent-rules is actually supported
  by the configure script; there are isolated cases when it's not true)
- Remove CMAKE_VERBOSE, NINJA_VERBOSE and
  CONFIGURE_ARGS=--disable-silent-rules from all ports which set them
  for this is no longer needed
- Revert hacks for --disable-silent-rules support priorly committed
  to biology/ncbi-blast+ and net-p2p/mldonkey - no longer needed as well

Submitted by:	amdmi3
Reviewed by:	mat
Exp-run by:	antoine
Approved by:	portmgr (mat, antoine)
Differential Revision:	D7534
2016-09-09 19:42:46 +00:00

68 lines
2.0 KiB
Makefile

# Created by: Mark Murray <markm@FreeBSD.org>
# $FreeBSD$
PORTNAME= ufraw
PORTVERSION= 0.22
PORTREVISION= 3
CATEGORIES= graphics
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
MAINTAINER= rodrigo@FreeBSD.org
COMMENT= Read and manipulate raw images from various digital cameras
LICENSE= GPLv2
LIB_DEPENDS= libtiff.so:graphics/tiff \
libpng.so:graphics/png \
liblcms2.so:graphics/lcms2
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-extras
USES= desktop-file-utils gettext gmake jpeg pkgconfig
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -lpthread -L${LOCALBASE}/lib
PC_FALSE= cinepaint
OPTIONS_DEFINE= CONTRAST DST EXIV2 LENSFUN FITS GIMP GTK2 GNOME
OPTIONS_DEFAULT=CONTRAST EXIV2 LENSFUN GTK2
OPTIONS_SUB= yes
CONTRAST_DESC= Enable contrast setting option
DST_DESC= Use local time for timestamps
FITS_DESC= FITS output support
GIMP_DESC= Install GIMP plugin
CONTRAST_CONFIGURE_ENABLE= contrast
DST_CONFIGURE_ENABLE= dst-correction
EXIV2_LIB_DEPENDS= libexiv2.so:graphics/exiv2
EXIV2_VARS_OFF= PC_FALSE+=exiv2
LENSFUN_LIB_DEPENDS= liblensfun.so:graphics/lensfun
LENSFUN_VARS_OFF= PC_FALSE+=lensfun
FITS_LIB_DEPENDS= libcfitsio.so:astro/cfitsio
FITS_VARS_OFF= PC_FALSE+=cfitsio
GIMP_LIB_DEPENDS= libgimp-2.0.so:graphics/gimp-app
GIMP_CONFIGURE_WITH= gimp
GIMP_VARS_OFF= PC_FALSE+=gimp
GIMP_IMPLIES= GTK2
GTK2_LIB_DEPENDS= libgtkimageview.so:x11-toolkits/gtkimageview
GTK2_CONFIGURE_WITH= gtk
GNOME_USE= GNOME=gconf2
GNOME_CONFIGURE_ENABLE= mime
GNOME_VARS= CATEGORIES+=gnome GCONF_SCHEMAS=${PORTNAME}.schemas
post-patch:
@${REINPLACE_CMD} -e '18s|^$$|#include <sys/types.h>|' \
${WRKSRC}/dcraw.h
# Fix GConf2 schemas installation path; unconditionalize installation of
# .desktop file; avoid conflict with `graphics/dcraw' (rename the binary)
@${REINPLACE_CMD} -e '/@schemasdir/s|datadir|sysconfdir| ; \
/@app/s|@INSTALL_MIME_TRUE@|| ; \
s|dcraw\$$(EXEEXT)|${PORTNAME}-&|' ${WRKSRC}/Makefile.in
.for i in ${PC_FALSE}
@${REINPLACE_CMD} -e '/PKG_CONFIG.*${i}/s|$$PKG_CONFIG|${FALSE}|' \
${WRKSRC}/configure
.endfor
.include <bsd.port.mk>