aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/hugin/Makefile
blob: 7bc1d6a2bcc603a553375aca01972cc04d5d1f2a (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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
# New ports collection makefile for:   hugin
# Date created:        26 august 2004
# Whom:                cartola (Carlos E. G. Carvalho)
#
# $FreeBSD$
#

PORTNAME=   hugin
PORTVERSION=    2009.4.0
PORTREVISION=   4
CATEGORIES= graphics
MASTER_SITES=   SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION:R}

MAINTAINER= vd@FreeBSD.org
COMMENT=    A GUI for Panorama Tools, to stitch panoramic images

LIB_DEPENDS=    tiff:${PORTSDIR}/graphics/tiff \
        jpeg:${PORTSDIR}/graphics/jpeg \
        png:${PORTSDIR}/graphics/png \
        IlmImf:${PORTSDIR}/graphics/OpenEXR \
        exiv2:${PORTSDIR}/graphics/exiv2 \
        pano13:${PORTSDIR}/graphics/libpano13 \
        boost_python:${PORTSDIR}/devel/boost-python-libs \
        IlmImf:${PORTSDIR}/graphics/OpenEXR \
        Imath:${PORTSDIR}/graphics/ilmbase
# gmake is really needed at _runtime_, do not remove it from below
RUN_DEPENDS=    enblend>=3.1.r20080615:${PORTSDIR}/graphics/enblend \
        exiftool:${PORTSDIR}/graphics/p5-Image-ExifTool \
        gmake:${PORTSDIR}/devel/gmake

OPTIONS=    PANOMATIC "Install graphics/panomatic" on \
        AUTOPANOSIFT "Install graphics/autopano-sift" off \
        AUTOPANOSIFTC "Install graphics/autopano-sift-c" on

USE_CMAKE=  yes

CMAKE_ARGS= -DwxWidgets_CONFIG_EXECUTABLE=${WX_CONFIG}
CMAKE_VERBOSE=  yes
CMAKE_USE_PTHREAD=  yes

USE_WX=     2.8+

USE_GETTEXT=    yes

USE_GL=     glew glut

MAN1=       \
        PTBatcherGUI.1 \
        align_image_stack.1 \
        autooptimiser.1 \
        calibrate_lens.1 \
        celeste_standalone.1 \
        cpclean.1 \
        fulla.1 \
        hugin.1 \
        hugin_hdrmerge.1 \
        hugin_stitch_project.1 \
        nona.1 \
        nona_gui.1 \
        pto2mk.1 \
        tca_correct.1 \
        vig_optimize.1

#DOCSDIR=   ${PREFIX}/share/hugin/xrc/data

# workaround a bug in cmake (?). Without this we get an error like:
# cd /usr/ports/graphics/hugin/work/hugin-0.7.r3135/src/hugin1/base_wx && /usr/bin/c++   -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -D_THREAD_SAFE -O2 -fno-strict-aliasing -pipe -pthread;-D_THREAD_SAFE -O3 -DNDEBUG -I/usr/ports/graphics/hugin/work/hugin-0.7.r3135/src -I/usr/ports/graphics/hugin/work/hugin-0.7.r3135/src/hugin_base -I/usr/ports/graphics/hugin/work/hugin-0.7.r3135/src/foreign -I/usr/ports/graphics/hugin/work/hugin-0.7.r3135/src/foreign/vigra -I/usr/local/include -I/usr/local/include/OpenEXR -isystem /usr/local/lib/wx/include/gtk2-ansi-release-2.8 -isystem /usr/local/include/wx-2.8 -I/usr/ports/graphics/hugin/work/hugin-0.7.r3135/src/hugin1 -o CMakeFiles/huginbasewx.dir/ImageCache.o -c /usr/ports/graphics/hugin/work/hugin-0.7.r3135/src/hugin1/base_wx/ImageCache.cpp
# c++: No input files specified
# with cmake 2.6.0. It works with cmake 2.4.8.
post-configure:
    ${REINPLACE_CMD} \
        's/-pthread;-D_THREAD_SAFE/-pthread -D_THREAD_SAFE/g' \
        ${WRKSRC}/src/hugin1/base_wx/CMakeFiles/huginbasewx.dir/flags.make \
        ${WRKSRC}/src/hugin1/hugin/CMakeFiles/hugin.dir/flags.make \
        ${WRKSRC}/src/hugin1/hugin/CMakeFiles/hugin.dir/link.txt \
        ${WRKSRC}/src/hugin1/nona_gui/CMakeFiles/nona_gui.dir/flags.make \
        ${WRKSRC}/src/hugin1/nona_gui/CMakeFiles/nona_gui.dir/link.txt \
        ${WRKSRC}/src/hugin1/ptbatcher/CMakeFiles/PTBatcher.dir/flags.make \
        ${WRKSRC}/src/hugin1/ptbatcher/CMakeFiles/PTBatcher.dir/link.txt \
        ${WRKSRC}/src/hugin1/ptbatcher/CMakeFiles/PTBatcherGUI.dir/flags.make \
        ${WRKSRC}/src/hugin1/ptbatcher/CMakeFiles/PTBatcherGUI.dir/link.txt \
        ${WRKSRC}/src/hugin1/stitch_project/CMakeFiles/hugin_stitch_project.dir/flags.make \
        ${WRKSRC}/src/hugin1/stitch_project/CMakeFiles/hugin_stitch_project.dir/link.txt

.include <bsd.port.pre.mk>

# see the commit log message for Makefile rev 1.43
.if ${OSVERSION} < 700000
USE_GCC=    4.2
.endif

.if defined(WITH_PANOMATIC)
RUN_DEPENDS+=   panomatic:${PORTSDIR}/graphics/panomatic
.endif

.if defined(WITH_AUTOPANOSIFT)
.if defined(WITH_AUTOPANOSIFTC)
BROKEN= autopano-sift and autopano-sift-c are mutually exclusive,\
    please run 'make config' again and select at most one of them
.endif
RUN_DEPENDS+=   autopanog:${PORTSDIR}/graphics/autopano-sift
.endif

.if defined(WITH_AUTOPANOSIFTC)
RUN_DEPENDS+=   autopano:${PORTSDIR}/graphics/autopano-sift-c
.endif

.include <bsd.port.post.mk>