Lines 2-9
Link Here
|
2 |
# $FreeBSD: head/math/saga/Makefile 464084 2018-03-10 17:46:04Z gerald $ |
2 |
# $FreeBSD: head/math/saga/Makefile 464084 2018-03-10 17:46:04Z gerald $ |
3 |
|
3 |
|
4 |
PORTNAME= saga |
4 |
PORTNAME= saga |
5 |
PORTVERSION= 6.1.0 |
5 |
PORTVERSION= 6.3.0 |
6 |
PORTREVISION= 3 |
|
|
7 |
CATEGORIES= math |
6 |
CATEGORIES= math |
8 |
MASTER_SITES= SF/saga-gis/SAGA%20-%20${PORTVERSION:C/\.[[:digit:]]\.[[:digit:]]*$//}/SAGA%20-%20${PORTVERSION} |
7 |
MASTER_SITES= SF/saga-gis/SAGA%20-%20${PORTVERSION:C/\.[[:digit:]]\.[[:digit:]]*$//}/SAGA%20-%20${PORTVERSION} |
9 |
|
8 |
|
Lines 13-24
Link Here
|
13 |
LICENSE= GPLv2 LGPL21 |
12 |
LICENSE= GPLv2 LGPL21 |
14 |
LICENSE_COMB= multi |
13 |
LICENSE_COMB= multi |
15 |
|
14 |
|
16 |
BUILD_DEPENDS= swig3.0:devel/swig30 |
15 |
BUILD_DEPENDS= clang50:devel/llvm50 \ |
|
|
16 |
swig3.0:devel/swig30 |
17 |
LIB_DEPENDS= libfftw3.so:math/fftw3 \ |
17 |
LIB_DEPENDS= libfftw3.so:math/fftw3 \ |
18 |
libgdal.so:graphics/gdal \ |
18 |
libgdal.so:graphics/gdal \ |
19 |
libhpdf.so:print/libharu \ |
19 |
libhpdf.so:print/libharu \ |
20 |
libjasper.so:graphics/jasper \ |
20 |
libjasper.so:graphics/jasper \ |
21 |
liblas.so:devel/liblas12 \ |
21 |
liblas12.so:devel/liblas12 \ |
22 |
libodbc.so:databases/unixODBC \ |
22 |
libodbc.so:databases/unixODBC \ |
23 |
libopencv_core.so:graphics/opencv-core \ |
23 |
libopencv_core.so:graphics/opencv-core \ |
24 |
libopencv_ml.so:graphics/opencv \ |
24 |
libopencv_ml.so:graphics/opencv \ |
Lines 28-37
Link Here
|
28 |
libtiff.so:graphics/tiff |
28 |
libtiff.so:graphics/tiff |
29 |
RUN_DEPENDS:= ${BUILD_DEPENDS} |
29 |
RUN_DEPENDS:= ${BUILD_DEPENDS} |
30 |
|
30 |
|
31 |
USES= autoreconf compiler:gcc-c++11-lib desktop-file-utils dos2unix \ |
31 |
USES= autoreconf compiler:c++11-lib desktop-file-utils dos2unix \ |
32 |
iconv:wchar_t libtool localbase pkgconfig python:2.7 |
32 |
iconv:wchar_t libtool localbase pkgconfig python:2.7 |
33 |
USE_LDCONFIG= yes |
33 |
USE_LDCONFIG= yes |
34 |
USE_CXXSTD= c++11 |
|
|
35 |
USE_WX= 3.0+ |
34 |
USE_WX= 3.0+ |
36 |
CONFIGURE_ARGS= CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" \ |
35 |
CONFIGURE_ARGS= CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" \ |
37 |
--enable-python --with-system-svm |
36 |
--enable-python --with-system-svm |
Lines 39-57
Link Here
|
39 |
GNU_CONFIGURE= yes |
38 |
GNU_CONFIGURE= yes |
40 |
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} |
39 |
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} |
41 |
|
40 |
|
|
|
41 |
CPP= clang-cpp50 |
42 |
CC= clang50 |
43 |
CXX= clang++50 |
42 |
INSTALLS_ICONS= yes |
44 |
INSTALLS_ICONS= yes |
43 |
DOS2UNIX_GLOB= *.cpp *.h |
45 |
DOS2UNIX_GLOB= *.cpp *.h |
44 |
PLIST_SUB= PORTVERSION=${PORTVERSION} |
46 |
PLIST_SUB= PORTVERSION=${PORTVERSION} |
45 |
|
47 |
|
46 |
OPTIONS_DEFINE= PGSQL OPENMP VIGRA |
48 |
OPTIONS_DEFINE= PGSQL OPENMP VIGRA |
47 |
OPTIONS_DEFAULT= PGSQL OPENMP VIGRA |
49 |
OPTIONS_DEFAULT= PGSQL VIGRA |
|
|
50 |
OPTIONS_DEFAULT_amd64= OPENMP |
51 |
OPTIONS_DEFAULT_i386= OPENMP |
48 |
NO_OPTIONS_SORT= yes |
52 |
NO_OPTIONS_SORT= yes |
49 |
OPTIONS_SUB= yes |
53 |
OPTIONS_SUB= yes |
50 |
OPENMP_DESC= Enable Multiprocessing |
54 |
OPENMP_DESC= Enable Multiprocessing (only amd64 and i386) |
51 |
VIGRA_DESC= Enable 'Vision with Generic Algorithms' Library |
55 |
VIGRA_DESC= Enable 'Vision with Generic Algorithms' Library |
52 |
|
56 |
|
|
|
57 |
## TODO: OPENMP_?= Only for archs amd64 and i386 |
53 |
OPENMP_CONFIGURE_ENABLE= openmp |
58 |
OPENMP_CONFIGURE_ENABLE= openmp |
54 |
OPENMP_LDFLAGS= -pthread |
59 |
OPENMP_LIB_DEPEND= libomp.so:devel/openmp |
|
|
60 |
OPENMP_LDFLAGS= -L${LOCALBASE}/lib -lm -pthread |
61 |
#OPENMP_EXTRA_PATCHES= ${PATCHDIR}/ |
55 |
PGSQL_CONFIGURE_OFF= --with-postgresql=no |
62 |
PGSQL_CONFIGURE_OFF= --with-postgresql=no |
56 |
PGSQL_CONFIGURE_ON= --with-postgresql=${LOCALBASE}/bin/pg_config |
63 |
PGSQL_CONFIGURE_ON= --with-postgresql=${LOCALBASE}/bin/pg_config |
57 |
PGSQL_USES= pgsql |
64 |
PGSQL_USES= pgsql |
Lines 90-95
Link Here
|
90 |
.endif |
97 |
.endif |
91 |
@${REINPLACE_CMD} -e 's|PORTVERSION|${PORTVERSION}|' \ |
98 |
@${REINPLACE_CMD} -e 's|PORTVERSION|${PORTVERSION}|' \ |
92 |
${WRKSRC}/src/saga_core/saga_gui/dlg_about.cpp |
99 |
${WRKSRC}/src/saga_core/saga_gui/dlg_about.cpp |
|
|
100 |
|
101 |
post-patch-OPENMP-on: |
102 |
@${REINPLACE_CMD} -e 's|-lgomp|-lomp|' ${WRKSRC}/configure.ac |
93 |
|
103 |
|
94 |
post-configure: |
104 |
post-configure: |
95 |
@${REINPLACE_CMD} -e 's|cd $$(pkgdatadir);|cd ${STAGEDIR}${DATADIR};|g' \ |
105 |
@${REINPLACE_CMD} -e 's|cd $$(pkgdatadir);|cd ${STAGEDIR}${DATADIR};|g' \ |