freebsd-ports/graphics/ufraw/Makefile
Stefan Eßer bcaf25a8c8 Fix CONFLICTS entries of multiple ports
There have been lots of missing CONFLICTS_INSTALL entries, either
because conflicting ports were added without updating existing ports,
due to name changes of generated packages, due to mis-understanding
the format and semantics of the conflicts entries, or just due to
typoes in package names.

This patch is the result of a comparison of all files contained in
the official packages with each other. This comparison was based on
packages built with default options and may therefore have missed
further conflicts with optionally installed files.

Where possible, version numbers in conflicts entries have been
generalized, some times taking advantage of the fact that a port
cannot conflict with itself (due to logic in bsd.port.mk that
supresses the pattern match result in that case).

A few ports that set the conflicts variables depending on complex
conditions (e.g. port options), have been left unmodified, despite
probably containing outdated package names.

These changes should only affect the installation of locally built
ports, not the package building with poudriere. They should give an
early indication of the install conflict in cases where currently
the pkg command aborts an installation when it detects that an
existing file would be overwritten,

Approved by:	portmgr (implicit)
2022-01-10 16:15:39 +01:00

81 lines
2.3 KiB
Makefile

# Created by: Mark Murray <markm@FreeBSD.org>
PORTNAME= ufraw
PORTVERSION= 0.22.20210424
PORTREVISION= 1
CATEGORIES= graphics
MAINTAINER= rodrigo@FreeBSD.org
COMMENT= Read and manipulate raw images from various digital cameras
LICENSE= GPLv2
LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \
libfreetype.so:print/freetype2 \
libjasper.so:graphics/jasper \
liblcms2.so:graphics/lcms2 \
libpng.so:graphics/png \
libtiff.so:graphics/tiff
USES= autoreconf compiler:c++11-lang desktop-file-utils gettext \
gmake gnome jpeg pkgconfig
USE_GITHUB= yes
GH_ACCOUNT= sergiomb2
GH_TAGNAME= f34669b
USE_GNOME+= cairo gdkpixbuf2 glib20 gtk20
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-extras \
--enable-jasper
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -lpthread -L${LOCALBASE}/lib
CONFLICTS_INSTALL= dcraw
OPTIONS_DEFINE= CONTRAST DST EXIV2 FITS GIMP GNOME GTK2 LENSFUN
OPTIONS_DEFAULT= CONTRAST EXIV2 GTK2 LENSFUN
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
FITS_LIB_DEPENDS= libcfitsio.so:astro/cfitsio
FITS_CONFIGURE_WITH= cfitsio
GIMP_IMPLIES= GTK2
GIMP_LIB_DEPENDS= libbabl-0.1.so:x11/babl \
libgegl-0.4.so:graphics/gegl \
libgimp-2.0.so:graphics/gimp-app \
libjson-glib-1.0.so:devel/json-glib
GIMP_CONFIGURE_WITH= gimp
GNOME_USE= GNOME=gconf2
GNOME_CONFIGURE_ENABLE= mime
GNOME_VARS= CATEGORIES+=gnome \
GCONF_SCHEMAS=${PORTNAME}.schemas
GTK2_LIB_DEPENDS= libgtkimageview.so:x11-toolkits/gtkimageview
GTK2_CONFIGURE_WITH= gtk
LENSFUN_LIB_DEPENDS= liblensfun.so:graphics/lensfun
post-patch:
${GREP} -Ilrs 'default(none)' ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e 's/default(none)//g'
@${REINPLACE_CMD} -e 's|$$(datadir)/gconf/schemas|${PREFIX}/etc/gconf/schemas|g' \
${WRKSRC}/Makefile.am
post-patch-EXIV2-off:
@${REINPLACE_CMD} -e 's|exiv2 >= 0.20|exiv2 < 0|g' \
${WRKSRC}/configure.ac
post-patch-LENSFUN-off:
@${REINPLACE_CMD} -e 's|lensfun >= 0.2.5|lensfun < 0|g' \
${WRKSRC}/configure.ac
post-install:
${INSTALL_DATA} ${WRKSRC}/ufraw.desktop ${STAGEDIR}${DESKTOPDIR}
.include <bsd.port.mk>