aboutsummaryrefslogtreecommitdiff
path: root/graphics/rawtherapee/Makefile
diff options
context:
space:
mode:
authorStanislav Sedov <stas@FreeBSD.org>2010-01-11 05:04:14 +0000
committerStanislav Sedov <stas@FreeBSD.org>2010-01-11 05:04:14 +0000
commitdcb3e8aa5942a482f435df0712a2b0cb8479b905 (patch)
tree65653ef93bb2d66d23e9bba4e94d74a5f7974fe7 /graphics/rawtherapee/Makefile
parentc226497465e8604ea18a07a3c0f3a6e7b1ac6106 (diff)
downloadports-dcb3e8aa5942a482f435df0712a2b0cb8479b905.tar.gz
ports-dcb3e8aa5942a482f435df0712a2b0cb8479b905.zip
Notes
Diffstat (limited to 'graphics/rawtherapee/Makefile')
-rw-r--r--graphics/rawtherapee/Makefile55
1 files changed, 55 insertions, 0 deletions
diff --git a/graphics/rawtherapee/Makefile b/graphics/rawtherapee/Makefile
new file mode 100644
index 000000000000..cf635024220d
--- /dev/null
+++ b/graphics/rawtherapee/Makefile
@@ -0,0 +1,55 @@
+# New ports collection makefile for: rawtherapee
+# Date created: 01/10/2010
+# Whom: stas
+#
+# $FreeBSD$
+#
+
+PORTNAME= rawtherapee
+PORTVERSION= 3.0
+CATEGORIES= graphics
+MASTER_SITES= http://www.rawtherapee.com/
+DISTNAME= ${PORTNAME}${PORTVERSION:S,.,,g}src
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= stas@FreeBSD.org
+COMMENT= A powerful RAW image processing application
+
+LIB_DEPENDS= gtkmm-2.4.1:${PORTSDIR}/x11-toolkits/gtkmm24 \
+ iptcdata.3:${PORTSDIR}/graphics/libiptcdata \
+ jpeg.10:${PORTSDIR}/graphics/jpeg \
+ lcms.1:${PORTSDIR}/graphics/lcms \
+ png:${PORTSDIR}/graphics/png \
+ tiff.4:${PORTSDIR}/graphics/tiff
+
+USE_CMAKE= yes
+USE_GNOME= gtk20 glib20
+USE_LDCONFIG= yes
+CFLAGS+= -I${LOCALBASE}/include -fPIC
+LDFLAGS+= -L${LOCALBASE}/lib
+CMAKE_ENV= CFLAGS="${CFLAGS}" \
+ LDFLAGS="${LDFLAGS}"
+SUB_FILES= rawtherapee
+SUB_LIST= RTDIR="${RTDIR}"
+
+WRKSRC= ${WRKDIR}/RawTherapee${PORTVERSION:S,.,,g}
+RTDIR= ${PREFIX}/libdata/${PORTNAME}
+
+OPTIONS= OPTIMIZED_CFLAGS "Use optimized CFLAGS" on
+
+.include <bsd.port.pre.mk>
+
+.if !defined(WITHOUT_OPTIMIZED_CFLAGS)
+CFLAGS+= -O3 -ffast-math -fexpensive-optimizations \
+ -funroll-loops -msse
+.endif
+
+do-install:
+ ${INSTALL_DATA} ${WRKSRC}/rtengine/librtengine.so ${PREFIX}/lib
+ ${MKDIR} ${RTDIR}/
+ ${INSTALL_PROGRAM} ${WRKSRC}/rtgui/rth ${RTDIR}/
+ (cd ${WRKSRC}/release && ${COPYTREE_SHARE} \* ${RTDIR}/)
+ ${INSTALL_DATA} ${WRKSRC}/options.lin ${RTDIR}/options
+ ${INSTALL_SCRIPT} ${WRKDIR}/rawtherapee ${PREFIX}/bin/
+
+.include <bsd.port.post.mk>