mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
- Reenable LensFun library support by default as I believe it should not
crash anymore (and thus bump port revision) - Provide GNOME option to register .desktop file and GConf2 schemas (off by default) - Include <bsd.port.options.mk> instead of <bsd.port.pre.mk> after OPTIONS to avoid having to define WANT_GNOME - Minor non-functional Makefile adjustments Reviewed by: gnome@ (feedback from marcus, dougb, bsam)
This commit is contained in:
parent
72fd1ce002
commit
ecd25b51ff
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=287554
2 changed files with 34 additions and 10 deletions
|
@ -7,12 +7,12 @@
|
||||||
|
|
||||||
PORTNAME= ufraw
|
PORTNAME= ufraw
|
||||||
PORTVERSION= 0.18
|
PORTVERSION= 0.18
|
||||||
PORTREVISION= 1
|
PORTREVISION= 2
|
||||||
CATEGORIES= graphics gnome
|
CATEGORIES= graphics
|
||||||
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
|
||||||
|
|
||||||
MAINTAINER= ports@FreeBSD.org
|
MAINTAINER= ports@FreeBSD.org
|
||||||
COMMENT= Read and manipulate raw images from digital cameras
|
COMMENT= Read and manipulate raw images from various digital cameras
|
||||||
|
|
||||||
LICENSE= GPLv2
|
LICENSE= GPLv2
|
||||||
|
|
||||||
|
@ -32,15 +32,16 @@ PC_FALSE= cinepaint
|
||||||
|
|
||||||
MAN1= ufraw.1
|
MAN1= ufraw.1
|
||||||
|
|
||||||
OPTIONS= CONTRAST "Enable contrast setting" on \
|
OPTIONS= CONTRAST "Enable contrast setting option" on \
|
||||||
DST "Use local time for timestamps" off \
|
DST "Use local time for timestamps" off \
|
||||||
EXIV2 "Enable EXIF support via exiv2 library" on \
|
EXIV2 "Enable EXIF support via exiv2 library" on \
|
||||||
LENSFUN "Enable LensFun library support" off \
|
LENSFUN "Enable LensFun library support" on \
|
||||||
FITS "Enable FITS output support" off \
|
FITS "Enable FITS output support" off \
|
||||||
GIMP "Install GIMP UFRaw plugin" off \
|
GIMP "Install GIMP plugin" off \
|
||||||
GTK "Build the Gtk+2 GUI" on
|
GTK "Build Gtk+2 GUI" on \
|
||||||
|
GNOME "Register .desktop file and GConf2 schemas" off
|
||||||
|
|
||||||
.include <bsd.port.pre.mk>
|
.include <bsd.port.options.mk>
|
||||||
|
|
||||||
.if defined(WITH_CONTRAST)
|
.if defined(WITH_CONTRAST)
|
||||||
CONFIGURE_ARGS+= --enable-contrast
|
CONFIGURE_ARGS+= --enable-contrast
|
||||||
|
@ -81,11 +82,23 @@ LIB_DEPENDS+= gtkimageview.0:${PORTSDIR}/x11-toolkits/gtkimageview
|
||||||
PLIST_FILES+= bin/ufraw
|
PLIST_FILES+= bin/ufraw
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
.if defined(WITH_GNOME)
|
||||||
|
CATEGORIES+= gnome
|
||||||
|
USE_GNOME= desktopfileutils gconf2
|
||||||
|
CONFIGURE_ARGS+= --enable-mime
|
||||||
|
GCONF_SCHEMAS= ${PORTNAME}.schemas
|
||||||
|
PLIST_SUB+= GNOME=""
|
||||||
|
.else
|
||||||
|
PLIST_SUB+= GNOME="@comment "
|
||||||
|
.endif
|
||||||
|
|
||||||
post-patch:
|
post-patch:
|
||||||
@${REINPLACE_CMD} -e '18s|^$$|#include <sys/types.h>|' \
|
@${REINPLACE_CMD} -e '18s|^$$|#include <sys/types.h>|' \
|
||||||
${WRKSRC}/dcraw.h
|
${WRKSRC}/dcraw.h
|
||||||
# Avoid conflict with `graphics/dcraw' and rename the binary
|
# 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| ; \
|
@${REINPLACE_CMD} -e '/@schemasdir/s|datadir|sysconfdir| ; \
|
||||||
|
/@app/s|@INSTALL_MIME_TRUE@|| ; \
|
||||||
s|dcraw\$$(EXEEXT)|${PORTNAME}-&|' ${WRKSRC}/Makefile.in
|
s|dcraw\$$(EXEEXT)|${PORTNAME}-&|' ${WRKSRC}/Makefile.in
|
||||||
.for i in ${PC_FALSE}
|
.for i in ${PC_FALSE}
|
||||||
@${REINPLACE_CMD} -e '/PKG_CONFIG.*${i}/s|$$PKG_CONFIG|${FALSE}|' \
|
@${REINPLACE_CMD} -e '/PKG_CONFIG.*${i}/s|$$PKG_CONFIG|${FALSE}|' \
|
||||||
|
@ -96,4 +109,12 @@ pre-build:
|
||||||
@${INSTALL_SCRIPT} ${LOCALBASE}/share/glib-2.0/gettext/mkinstalldirs \
|
@${INSTALL_SCRIPT} ${LOCALBASE}/share/glib-2.0/gettext/mkinstalldirs \
|
||||||
${WRKSRC}
|
${WRKSRC}
|
||||||
|
|
||||||
.include <bsd.port.post.mk>
|
post-install:
|
||||||
|
.if defined(WITH_GNOME)
|
||||||
|
@${SETENV} GCONF_CONFIG_SOURCE=${GCONF_CONFIG_SOURCE} \
|
||||||
|
gconftool-2 --makefile-install-rule \
|
||||||
|
${PREFIX}/etc/gconf/schemas/${PORTNAME}.schemas
|
||||||
|
@-update-desktop-database
|
||||||
|
.endif
|
||||||
|
|
||||||
|
.include <bsd.port.mk>
|
||||||
|
|
|
@ -2,6 +2,7 @@ bin/nikon-curve
|
||||||
bin/ufraw-batch
|
bin/ufraw-batch
|
||||||
bin/ufraw-dcraw
|
bin/ufraw-dcraw
|
||||||
%%GIMP%%libexec/gimp/2.2/plug-ins/ufraw-gimp
|
%%GIMP%%libexec/gimp/2.2/plug-ins/ufraw-gimp
|
||||||
|
share/applications/ufraw.desktop
|
||||||
share/locale/ca/LC_MESSAGES/ufraw.mo
|
share/locale/ca/LC_MESSAGES/ufraw.mo
|
||||||
share/locale/cs/LC_MESSAGES/ufraw.mo
|
share/locale/cs/LC_MESSAGES/ufraw.mo
|
||||||
share/locale/da/LC_MESSAGES/ufraw.mo
|
share/locale/da/LC_MESSAGES/ufraw.mo
|
||||||
|
@ -25,6 +26,8 @@ share/pixmaps/ufraw.png
|
||||||
@dirrmtry share/locale/sr@latin/LC_MESSAGES
|
@dirrmtry share/locale/sr@latin/LC_MESSAGES
|
||||||
@dirrmtry share/locale/sr@latin
|
@dirrmtry share/locale/sr@latin
|
||||||
@dirrmtry share/applications
|
@dirrmtry share/applications
|
||||||
|
%%GNOME%%@exec %D/bin/update-desktop-database > /dev/null || /usr/bin/true
|
||||||
|
%%GNOME%%@unexec %D/bin/update-desktop-database > /dev/null || /usr/bin/true
|
||||||
%%GIMP%%@dirrmtry libexec/gimp/2.2/plug-ins
|
%%GIMP%%@dirrmtry libexec/gimp/2.2/plug-ins
|
||||||
%%GIMP%%@dirrmtry libexec/gimp/2.2
|
%%GIMP%%@dirrmtry libexec/gimp/2.2
|
||||||
%%GIMP%%@dirrmtry libexec/gimp
|
%%GIMP%%@dirrmtry libexec/gimp
|
||||||
|
|
Loading…
Add table
Reference in a new issue