blob: eaee76baf6e3460c56e94586b5e3f250816c8c28 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# New ports collection makefile for: rawtherapee
# Date created: 01/10/2010
# Whom: stas
#
# $FreeBSD$
#
PORTNAME= rawtherapee
PORTVERSION= 3.0
PORTREVISION= 1
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.11:${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 ${PTHREAD_CFLAGS}
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
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>
|