1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00

- Convert to new options framework

- Drop ABI version numbers from LIB_DEPENDS
- Trim Makefile header

PR:		ports/174003
Submitted by:	Rodrigo (ros) OSORIO <rodrigo@bebik.net> (maintainer)
Feature safe:	yes
This commit is contained in:
Jason E. Hale 2012-11-30 07:39:40 +00:00
parent 371f582eaf
commit 7f4391d0ca
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=307995

View File

@ -1,9 +1,5 @@
# New ports collection makefile for: UFRaw
# Date created: Sun 10 Apr 2005 14:44:15 BST
# Whom: Mark Murray <markm@FreeBSD.org>
#
# Created by: Mark Murray <markm@FreeBSD.org>
# $FreeBSD$
#
PORTNAME= ufraw
PORTVERSION= 0.18
@ -16,10 +12,10 @@ COMMENT= Read and manipulate raw images from various digital cameras
LICENSE= GPLv2
LIB_DEPENDS= jpeg.11:${PORTSDIR}/graphics/jpeg \
tiff.4:${PORTSDIR}/graphics/tiff \
LIB_DEPENDS= jpeg:${PORTSDIR}/graphics/jpeg \
tiff:${PORTSDIR}/graphics/tiff \
png15:${PORTSDIR}/graphics/png \
lcms.1:${PORTSDIR}/graphics/lcms
lcms:${PORTSDIR}/graphics/lcms
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-silent-rules --enable-extras
@ -32,45 +28,46 @@ PC_FALSE= cinepaint
MAN1= ufraw.1
OPTIONS= CONTRAST "Enable contrast setting option" on \
DST "Use local time for timestamps" off \
EXIV2 "Enable EXIF support via exiv2 library" on \
LENSFUN "Enable LensFun library support" on \
FITS "Enable FITS output support" off \
GIMP "Install GIMP plugin" off \
GTK "Build Gtk+2 GUI" on \
GNOME "Register .desktop file and GConf2 schemas" off
OPTIONS_DEFINE= CONTRAST DST EXIV2 LENSFUN FITS GIMP GTK2 GNOME
OPTIONS_DEFAULT=CONTRAST EXIV2 LENSFUN GTK2
CONTRAST_DESC= Enable contrast setting option
DST_DESC= Use local time for timestamps
EXIV2_DESC= Enable EXIF support via exiv2 library
LENSFUN_DESC= Enable LensFun library support
FITS_DESC= Enable FITS output support
GIMP_DESC= Install GIMP plugin
.include <bsd.port.options.mk>
.if defined(WITH_CONTRAST)
.if ${PORT_OPTIONS:MCONTRAST}
CONFIGURE_ARGS+= --enable-contrast
.endif
.if defined(WITH_DST)
.if ${PORT_OPTIONS:MDST}
CONFIGURE_ARGS+= --enable-dst-correction
.endif
.if defined(WITH_EXIV2)
LIB_DEPENDS+= exiv2.12:${PORTSDIR}/graphics/exiv2
.if ${PORT_OPTIONS:MEXIV2}
LIB_DEPENDS+= exiv2:${PORTSDIR}/graphics/exiv2
.else
PC_FALSE+= exiv2
.endif
.if defined(WITH_LENSFUN)
LIB_DEPENDS+= lensfun.2:${PORTSDIR}/graphics/lensfun
.if ${PORT_OPTIONS:MLENSFUN}
LIB_DEPENDS+= lensfun:${PORTSDIR}/graphics/lensfun
.else
PC_FALSE+= lensfun
.endif
.if defined(WITH_FITS)
LIB_DEPENDS+= cfitsio.0:${PORTSDIR}/astro/cfitsio
.if ${PORT_OPTIONS:MFITS}
LIB_DEPENDS+= cfitsio:${PORTSDIR}/astro/cfitsio
.else
PC_FALSE+= cfitsio
.endif
.if defined(WITH_GIMP)
LIB_DEPENDS+= gimp-2.0.0:${PORTSDIR}/graphics/gimp-app
.if ${PORT_OPTIONS:MGIMP}
LIB_DEPENDS+= gimp-2.0:${PORTSDIR}/graphics/gimp-app
PLIST_SUB+= GIMP=""
.else
CONFIGURE_ARGS+=--without-gimp
@ -78,14 +75,14 @@ PC_FALSE+= gimp
PLIST_SUB+= GIMP="@comment "
.endif
.if defined(WITH_GTK)
LIB_DEPENDS+= gtkimageview.0:${PORTSDIR}/x11-toolkits/gtkimageview
.if ${PORT_OPTIONS:MGTK2}
LIB_DEPENDS+= gtkimageview:${PORTSDIR}/x11-toolkits/gtkimageview
PLIST_FILES+= bin/ufraw
.else
CONFIGURE_ARGS+=--without-gtk
.endif
.if defined(WITH_GNOME)
.if ${PORT_OPTIONS:MGNOME}
CATEGORIES+= gnome
USE_GNOME= desktopfileutils gconf2
CONFIGURE_ARGS+= --enable-mime
@ -113,7 +110,7 @@ pre-build:
${WRKSRC}
post-install:
.if defined(WITH_GNOME)
.if ${PORT_OPTIONS:MGNOME}
@${SETENV} GCONF_CONFIG_SOURCE=${GCONF_CONFIG_SOURCE} \
gconftool-2 --makefile-install-rule \
${PREFIX}/etc/gconf/schemas/${PORTNAME}.schemas