- Build extra (dcraw, nikon-curve) executables to better adhere to port
description and simply provide more functionality by default (install dcraw as ufraw-dcraw to avoid conflict with `graphics/dcraw' port) - Make heavy (due to `graphics/gimp-app' dependency) GIMP plugin off by default: this port is most often used for quick command line raw conversion, and GIMP pulls way too much stuff unfortunately - Make Gtk+2 GUI optional (X-less users should appreciate) - Remove explicit USE_GNOME components (inherited though the mandatory dependencies) - Disable LensFun support by default since processing Canon CR2 files results in segmentation fault in lf_lens_interpolate_vignetting() - Ensure that users' selection of OPTIONS is upheld (remove exists(...) checks) - Rephrase some options' texts, pass --disable-silent-rules option to configure script so that build logs could be more useful - Bump PORTREVISION due to numerous important changes Feature safe: yes
This commit is contained in:
parent
803b50bffd
commit
0f4c8ffe53
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=286662
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= ufraw
|
||||
PORTVERSION= 0.18
|
||||
PORTREVISION= 0
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= graphics gnome
|
||||
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
|
||||
|
||||
@ -19,13 +19,12 @@ LICENSE= GPLv2
|
||||
LIB_DEPENDS= jpeg.11:${PORTSDIR}/graphics/jpeg \
|
||||
tiff.4:${PORTSDIR}/graphics/tiff \
|
||||
png.6:${PORTSDIR}/graphics/png \
|
||||
gtkimageview.0:${PORTSDIR}/x11-toolkits/gtkimageview \
|
||||
lcms.1:${PORTSDIR}/graphics/lcms
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_ARGS= --disable-silent-rules --enable-extras
|
||||
USE_GETTEXT= yes
|
||||
USE_GMAKE= yes
|
||||
USE_GNOME= gtk20 glib20 gnomehack intltool intlhack libartlgpl2 pkgconfig
|
||||
|
||||
CPPFLAGS+= -I${LOCALBASE}/include
|
||||
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
|
||||
@ -35,36 +34,15 @@ MAN1= ufraw.1
|
||||
|
||||
OPTIONS= CONTRAST "Enable contrast setting" on \
|
||||
DST "Use local time for timestamps" off \
|
||||
EXIV2 "EXIF support via exiv2 library" on \
|
||||
EXIV2 "Enable EXIF support via exiv2 library" on \
|
||||
LENSFUN "Enable LensFun library support" off \
|
||||
FITS "Enable FITS output support" off \
|
||||
GIMP "Install GIMP UFRaw plugin" on \
|
||||
LENSFUN "Build with LensFun library support" on
|
||||
GIMP "Install GIMP UFRaw plugin" off \
|
||||
GTK "Build the Gtk+2 GUI" on
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if !defined(WITHOUT_EXIV2)
|
||||
LIB_DEPENDS+= exiv2.10:${PORTSDIR}/graphics/exiv2
|
||||
.else
|
||||
PC_FALSE+= exiv2
|
||||
.endif
|
||||
|
||||
.if !defined(WITHOUT_GIMP)
|
||||
LIB_DEPENDS+= gimp-2.0.0:${PORTSDIR}/graphics/gimp-app
|
||||
PLIST_SUB+= GIMP=""
|
||||
.else
|
||||
PC_FALSE+= gimp
|
||||
PLIST_SUB+= GIMP="@comment "
|
||||
.endif
|
||||
|
||||
.if !defined(WITHOUT_LENSFUN) || exists(${LOCALBASE}/lib/lensfun.so.2)
|
||||
LIB_DEPENDS+= lensfun.2:${PORTSDIR}/graphics/lensfun
|
||||
.endif
|
||||
|
||||
.if defined(WITH_FITS) || exists(${LOCALBASE}/lib/libcfitsio.so)
|
||||
LIB_DEPENDS+= cfitsio.0:${PORTSDIR}/astro/cfitsio
|
||||
.endif
|
||||
|
||||
.if !defined(WITHOUT_CONTRAST)
|
||||
.if defined(WITH_CONTRAST)
|
||||
CONFIGURE_ARGS+= --enable-contrast
|
||||
.endif
|
||||
|
||||
@ -72,11 +50,43 @@ CONFIGURE_ARGS+= --enable-contrast
|
||||
CONFIGURE_ARGS+= --enable-dst-correction
|
||||
.endif
|
||||
|
||||
.if defined(WITH_EXIV2)
|
||||
LIB_DEPENDS+= exiv2.10:${PORTSDIR}/graphics/exiv2
|
||||
.else
|
||||
PC_FALSE+= exiv2
|
||||
.endif
|
||||
|
||||
.if defined(WITH_LENSFUN)
|
||||
LIB_DEPENDS+= lensfun.2:${PORTSDIR}/graphics/lensfun
|
||||
.else
|
||||
PC_FALSE+= lensfun
|
||||
.endif
|
||||
|
||||
.if defined(WITH_FITS)
|
||||
LIB_DEPENDS+= cfitsio.0:${PORTSDIR}/astro/cfitsio
|
||||
.else
|
||||
PC_FALSE+= cfitsio
|
||||
.endif
|
||||
|
||||
.if defined(WITH_GIMP)
|
||||
LIB_DEPENDS+= gimp-2.0.0:${PORTSDIR}/graphics/gimp-app
|
||||
PLIST_SUB+= GIMP=""
|
||||
.else
|
||||
PC_FALSE+= gimp
|
||||
PLIST_SUB+= GIMP="@comment "
|
||||
.endif
|
||||
|
||||
.if defined(WITH_GTK)
|
||||
LIB_DEPENDS+= gtkimageview.0:${PORTSDIR}/x11-toolkits/gtkimageview
|
||||
PLIST_FILES+= bin/ufraw
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e '18s|^$$|#include <sys/types.h>|' \
|
||||
${WRKSRC}/dcraw.h
|
||||
@${REINPLACE_CMD} -e '/@schemasdir/s|datadir|sysconfdir|' \
|
||||
${WRKSRC}/Makefile.in
|
||||
# Avoid conflict with `graphics/dcraw' and rename the binary
|
||||
@${REINPLACE_CMD} -e '/@schemasdir/s|datadir|sysconfdir| ; \
|
||||
s|dcraw\$$(EXEEXT)|${PORTNAME}-&|' ${WRKSRC}/Makefile.in
|
||||
.for i in ${PC_FALSE}
|
||||
@${REINPLACE_CMD} -e '/PKG_CONFIG.*${i}/s|$$PKG_CONFIG|${FALSE}|' \
|
||||
${WRKSRC}/configure
|
||||
|
@ -1,5 +1,6 @@
|
||||
bin/ufraw
|
||||
bin/nikon-curve
|
||||
bin/ufraw-batch
|
||||
bin/ufraw-dcraw
|
||||
%%GIMP%%libexec/gimp/2.2/plug-ins/ufraw-gimp
|
||||
share/locale/ca/LC_MESSAGES/ufraw.mo
|
||||
share/locale/cs/LC_MESSAGES/ufraw.mo
|
||||
|
Loading…
Reference in New Issue
Block a user