diff options
author | jhale <jhale@FreeBSD.org> | 2012-11-30 15:39:40 +0800 |
---|---|---|
committer | jhale <jhale@FreeBSD.org> | 2012-11-30 15:39:40 +0800 |
commit | c773009586bf2b7592f84485f45627c99d59275d (patch) | |
tree | 1369b27d255de494fc559e2451699647992e28c7 /graphics | |
parent | 685ff6f3027986ed574e8fd6d331d4c7e62926c6 (diff) | |
download | freebsd-ports-gnome-c773009586bf2b7592f84485f45627c99d59275d.tar.gz freebsd-ports-gnome-c773009586bf2b7592f84485f45627c99d59275d.tar.zst freebsd-ports-gnome-c773009586bf2b7592f84485f45627c99d59275d.zip |
- 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
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/ufraw/Makefile | 57 |
1 files changed, 27 insertions, 30 deletions
diff --git a/graphics/ufraw/Makefile b/graphics/ufraw/Makefile index e67562208232..ca9ada7c337f 100644 --- a/graphics/ufraw/Makefile +++ b/graphics/ufraw/Makefile @@ -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 |