aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/hugin/Makefile
blob: 695271842155ab1c144e2c57329c1962501b1f53 (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
# Created by: Carlos Eduardo G. Carvalho <cartola@openit.com.br>
# $FreeBSD$

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

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

LIB_DEPENDS=    libIlmImf.so:graphics/OpenEXR \
        libImath.so:graphics/ilmbase \
        libboost_thread.so:devel/boost-libs \
        liblcms2.so:graphics/lcms2 \
        libexiv2.so:graphics/exiv2 \
        libfftw3.so:math/fftw3 \
        libpano13.so:graphics/libpano13 \
        libsqlite3.so:databases/sqlite3 \
        libvigraimpex.so:graphics/vigra \
        libpng.so:graphics/png \
        libtiff.so:graphics/tiff
# gmake is really needed at _runtime_.   Do not remove it from this list.
RUN_DEPENDS=    enblend>=4.1.4:graphics/enblend \
        exiftool:graphics/p5-Image-ExifTool \
        gmake:devel/gmake

USES=       cmake compiler:c++11-lib desktop-file-utils \
        gettext jpeg pkgconfig shared-mime-info shebangfix tar:bzip2
CMAKE_ARGS= -DwxWidgets_CONFIG_EXECUTABLE=${WX_CONFIG}
USE_WX=     3.0+
USE_GL=     glew glut
INSTALLS_ICONS= yes

SHEBANG_FILES=  src/hugin_script_interface/hpi.py \
        src/hugin_script_interface/plugins/*.py \
        src/hugin_script_interface/plugins-dev/*.py

OPTIONS_DEFINE=     PANOMATIC AUTOPANOSIFTC PYTHON
OPTIONS_DEFAULT=    PANOMATIC PYTHON
OPTIONS_SUB=        yes

PANOMATIC_DESC=     Install graphics/panomatic
PANOMATIC_RUN_DEPENDS=  panomatic:graphics/panomatic

AUTOPANOSIFTC_DESC= Install graphics/autopano-sift-c
AUTOPANOSIFTC_RUN_DEPENDS=  autopano:graphics/autopano-sift-c

PYTHON_DESC=        Python Scripting Interface
PYTHON_USES=        python:2.7
PYTHON_BUILD_DEPENDS=   swig3.0:devel/swig30
PYTHON_BINARY_ALIAS=    swig=swig3.0
PYTHON_CMAKE_ON=    -DBUILD_HSI=ON
PYTHON_CMAKE_OFF=   -DBUILD_HSI=OFF

.include <bsd.port.mk>