2012-11-30 08:39:40 +01:00
|
|
|
# Created by: Mark Murray <markm@FreeBSD.org>
|
2005-04-10 17:28:18 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2006-11-01 19:41:43 +01:00
|
|
|
PORTNAME= ufraw
|
2011-09-20 22:19:55 +02:00
|
|
|
PORTVERSION= 0.18
|
2012-07-31 17:29:26 +02:00
|
|
|
PORTREVISION= 4
|
2011-12-17 18:41:57 +01:00
|
|
|
CATEGORIES= graphics
|
2009-08-22 02:23:13 +02:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
|
2006-11-01 19:41:43 +01:00
|
|
|
|
2012-05-14 11:48:12 +02:00
|
|
|
MAINTAINER= rodrigo@bebik.net
|
2011-12-17 18:41:57 +01:00
|
|
|
COMMENT= Read and manipulate raw images from various digital cameras
|
2006-11-01 19:41:43 +01:00
|
|
|
|
2011-11-30 07:15:03 +01:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2012-11-30 08:39:40 +01:00
|
|
|
LIB_DEPENDS= jpeg:${PORTSDIR}/graphics/jpeg \
|
|
|
|
tiff:${PORTSDIR}/graphics/tiff \
|
2012-06-01 07:26:28 +02:00
|
|
|
png15:${PORTSDIR}/graphics/png \
|
2012-11-30 08:39:40 +01:00
|
|
|
lcms:${PORTSDIR}/graphics/lcms
|
2006-11-01 19:41:43 +01:00
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
2011-11-30 11:14:01 +01:00
|
|
|
CONFIGURE_ARGS= --disable-silent-rules --enable-extras
|
2006-11-01 19:41:43 +01:00
|
|
|
USE_GETTEXT= yes
|
|
|
|
USE_GMAKE= yes
|
|
|
|
|
2011-11-30 07:15:03 +01:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
|
|
|
|
PC_FALSE= cinepaint
|
|
|
|
|
|
|
|
MAN1= ufraw.1
|
2009-05-27 13:32:02 +02:00
|
|
|
|
2012-11-30 08:39:40 +01:00
|
|
|
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
|
2012-11-30 09:48:41 +01:00
|
|
|
FITS_DESC= FITS output support
|
2012-11-30 08:39:40 +01:00
|
|
|
GIMP_DESC= Install GIMP plugin
|
2009-05-27 13:32:02 +02:00
|
|
|
|
2011-12-17 18:41:57 +01:00
|
|
|
.include <bsd.port.options.mk>
|
2009-05-27 13:32:02 +02:00
|
|
|
|
2012-11-30 08:39:40 +01:00
|
|
|
.if ${PORT_OPTIONS:MCONTRAST}
|
2011-11-30 11:14:01 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-contrast
|
2006-06-04 19:51:54 +02:00
|
|
|
.endif
|
2011-11-30 07:15:03 +01:00
|
|
|
|
2012-11-30 08:39:40 +01:00
|
|
|
.if ${PORT_OPTIONS:MDST}
|
2011-11-30 11:14:01 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-dst-correction
|
|
|
|
.endif
|
|
|
|
|
2012-11-30 08:39:40 +01:00
|
|
|
.if ${PORT_OPTIONS:MEXIV2}
|
|
|
|
LIB_DEPENDS+= exiv2:${PORTSDIR}/graphics/exiv2
|
2007-07-17 13:35:32 +02:00
|
|
|
.else
|
2011-11-30 11:14:01 +01:00
|
|
|
PC_FALSE+= exiv2
|
2007-07-17 13:35:32 +02:00
|
|
|
.endif
|
2011-11-30 07:15:03 +01:00
|
|
|
|
2012-11-30 08:39:40 +01:00
|
|
|
.if ${PORT_OPTIONS:MLENSFUN}
|
|
|
|
LIB_DEPENDS+= lensfun:${PORTSDIR}/graphics/lensfun
|
2011-11-30 11:14:01 +01:00
|
|
|
.else
|
|
|
|
PC_FALSE+= lensfun
|
2009-05-27 13:32:02 +02:00
|
|
|
.endif
|
2011-11-30 07:15:03 +01:00
|
|
|
|
2012-11-30 08:39:40 +01:00
|
|
|
.if ${PORT_OPTIONS:MFITS}
|
|
|
|
LIB_DEPENDS+= cfitsio:${PORTSDIR}/astro/cfitsio
|
2011-11-30 11:14:01 +01:00
|
|
|
.else
|
|
|
|
PC_FALSE+= cfitsio
|
2009-10-16 15:16:58 +02:00
|
|
|
.endif
|
2011-11-30 07:15:03 +01:00
|
|
|
|
2012-11-30 08:39:40 +01:00
|
|
|
.if ${PORT_OPTIONS:MGIMP}
|
|
|
|
LIB_DEPENDS+= gimp-2.0:${PORTSDIR}/graphics/gimp-app
|
2011-11-30 11:14:01 +01:00
|
|
|
PLIST_SUB+= GIMP=""
|
|
|
|
.else
|
2012-06-11 10:00:16 +02:00
|
|
|
CONFIGURE_ARGS+=--without-gimp
|
2011-11-30 11:14:01 +01:00
|
|
|
PC_FALSE+= gimp
|
|
|
|
PLIST_SUB+= GIMP="@comment "
|
2009-12-04 23:28:56 +01:00
|
|
|
.endif
|
2011-11-30 07:15:03 +01:00
|
|
|
|
2012-11-30 08:39:40 +01:00
|
|
|
.if ${PORT_OPTIONS:MGTK2}
|
|
|
|
LIB_DEPENDS+= gtkimageview:${PORTSDIR}/x11-toolkits/gtkimageview
|
2011-11-30 11:14:01 +01:00
|
|
|
PLIST_FILES+= bin/ufraw
|
2012-06-11 10:00:16 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--without-gtk
|
2009-12-04 23:28:56 +01:00
|
|
|
.endif
|
2006-06-04 19:51:54 +02:00
|
|
|
|
2012-11-30 08:39:40 +01:00
|
|
|
.if ${PORT_OPTIONS:MGNOME}
|
2011-12-17 18:41:57 +01:00
|
|
|
CATEGORIES+= gnome
|
|
|
|
USE_GNOME= desktopfileutils gconf2
|
|
|
|
CONFIGURE_ARGS+= --enable-mime
|
|
|
|
GCONF_SCHEMAS= ${PORTNAME}.schemas
|
|
|
|
PLIST_SUB+= GNOME=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= GNOME="@comment "
|
|
|
|
.endif
|
|
|
|
|
2006-11-01 19:41:43 +01:00
|
|
|
post-patch:
|
2011-11-30 07:15:03 +01:00
|
|
|
@${REINPLACE_CMD} -e '18s|^$$|#include <sys/types.h>|' \
|
|
|
|
${WRKSRC}/dcraw.h
|
2011-12-17 18:41:57 +01:00
|
|
|
# Fix GConf2 schemas installation path; unconditionalize installation of
|
|
|
|
# .desktop file; avoid conflict with `graphics/dcraw' (rename the binary)
|
2011-11-30 11:14:01 +01:00
|
|
|
@${REINPLACE_CMD} -e '/@schemasdir/s|datadir|sysconfdir| ; \
|
2011-12-17 18:41:57 +01:00
|
|
|
/@app/s|@INSTALL_MIME_TRUE@|| ; \
|
2011-11-30 11:14:01 +01:00
|
|
|
s|dcraw\$$(EXEEXT)|${PORTNAME}-&|' ${WRKSRC}/Makefile.in
|
2007-08-01 10:49:15 +02:00
|
|
|
.for i in ${PC_FALSE}
|
2011-11-30 07:15:03 +01:00
|
|
|
@${REINPLACE_CMD} -e '/PKG_CONFIG.*${i}/s|$$PKG_CONFIG|${FALSE}|' \
|
|
|
|
${WRKSRC}/configure
|
2007-08-01 10:49:15 +02:00
|
|
|
.endfor
|
2006-11-01 19:41:43 +01:00
|
|
|
|
2009-10-16 15:16:58 +02:00
|
|
|
pre-build:
|
2011-11-30 07:15:03 +01:00
|
|
|
@${INSTALL_SCRIPT} ${LOCALBASE}/share/glib-2.0/gettext/mkinstalldirs \
|
|
|
|
${WRKSRC}
|
2009-10-16 15:16:58 +02:00
|
|
|
|
2011-12-17 18:41:57 +01:00
|
|
|
post-install:
|
2012-11-30 08:39:40 +01:00
|
|
|
.if ${PORT_OPTIONS:MGNOME}
|
2011-12-17 18:41:57 +01:00
|
|
|
@${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>
|