2009-11-17 10:12:08 +01:00
|
|
|
# Ports collection makefile for: saga
|
|
|
|
# Date created: 13 November 2009
|
2010-09-04 14:53:44 +02:00
|
|
|
# Whom: Rainer Hurling <rhurlin@gwdg.de>
|
2009-11-17 10:12:08 +01:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= saga
|
2010-09-04 14:53:44 +02:00
|
|
|
PORTVERSION= 2.0.5
|
2009-11-17 10:12:08 +01:00
|
|
|
CATEGORIES= math
|
|
|
|
MASTER_SITES= SF/saga-gis/SAGA%20-%20${PORTVERSION:C/\.[[:digit:]]*$//}/SAGA%20${PORTVERSION}
|
2010-09-04 14:53:44 +02:00
|
|
|
DISTNAME= ${PORTNAME}_${PORTVERSION}_src
|
2009-11-17 10:12:08 +01:00
|
|
|
|
|
|
|
MAINTAINER= rhurlin@gwdg.de
|
|
|
|
COMMENT= System for Automated Geoscientific Analyses
|
|
|
|
|
2009-11-28 00:17:38 +01:00
|
|
|
LIB_DEPENDS= proj.6:${PORTSDIR}/graphics/proj \
|
2010-08-03 15:35:21 +02:00
|
|
|
gdal.15:${PORTSDIR}/graphics/gdal \
|
2009-11-17 10:12:08 +01:00
|
|
|
jasper.4:${PORTSDIR}/graphics/jasper \
|
2010-09-04 14:53:44 +02:00
|
|
|
tiff.4:${PORTSDIR}/graphics/tiff \
|
|
|
|
iodbc.3:${PORTSDIR}/databases/libiodbc
|
2009-11-17 10:12:08 +01:00
|
|
|
|
2010-09-04 14:53:44 +02:00
|
|
|
USE_WX= 2.8
|
2009-11-17 10:12:08 +01:00
|
|
|
USE_LDCONFIG= yes
|
|
|
|
GNU_CONFIGURE= yes
|
2010-09-04 14:53:44 +02:00
|
|
|
USE_AUTOTOOLS= libtool:22
|
2009-11-17 10:12:08 +01:00
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
2010-09-04 14:53:44 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
|
|
USE_DOS2UNIX= dlg_about.cpp
|
2009-11-17 10:12:08 +01:00
|
|
|
|
2010-09-04 14:53:44 +02:00
|
|
|
MAN1= saga_cmd.1 saga_gui.1
|
|
|
|
|
|
|
|
DESKTOP_ENTRIES= "SAGA GIS" "${COMMENT}" "${DATADIR}/saga_icon_32.xpm" \
|
|
|
|
"saga_gui" "Application;Math;" true
|
|
|
|
|
|
|
|
OPTIONS= UC "Enable Unicode Support" On \
|
|
|
|
HARU "Enable Haru Free PDF Library (optional)" Off
|
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if defined(WITH_UC)
|
|
|
|
WITH_UNICODE= yes
|
|
|
|
CONFIGURE_ARGS+= --enable-unicode
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-unicode
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_HARU)
|
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/lib/libhpdf.so:${PORTSDIR}/print/libharu
|
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/lib/libhpdf.so:${PORTSDIR}/print/libharu
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
CONFIGURE_ARGS+= CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
|
|
|
|
.endif
|
2009-11-17 10:12:08 +01:00
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@for f in `${FIND} '${WRKSRC}' -name Makefile.in` \
|
|
|
|
${WRKSRC}/configure; do \
|
|
|
|
${REINPLACE_CMD} -e's|wx-config |${WX_CONFIG} |g' "$$f"; \
|
|
|
|
done
|
|
|
|
@${REINPLACE_CMD} -e 's,malloc.h,stdlib.h,' \
|
2010-09-04 14:53:44 +02:00
|
|
|
${WRKSRC}/configure \
|
|
|
|
${WRKSRC}/src/saga_core/saga_api/api_core.h \
|
2009-11-17 10:12:08 +01:00
|
|
|
${WRKSRC}/src/saga_core/saga_api/api_memory.cpp \
|
2010-09-04 14:53:44 +02:00
|
|
|
${WRKSRC}/src/modules_io/esri_e00/io_esri_e00/e00compr/cpl_port.h \
|
|
|
|
${WRKSRC}/src/modules_io/grid/io_grid_grib2/g2clib-1.0.4/enc_png.c \
|
2009-11-17 10:12:08 +01:00
|
|
|
${WRKSRC}/src/modules_projection/pj_georeference/pj_georeference/lmdif0.c
|
|
|
|
|
|
|
|
post-install:
|
2010-09-04 14:53:44 +02:00
|
|
|
${MKDIR} ${DATADIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/src/saga_core/saga_gui/res/saga_tip.txt ${DATADIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/src/saga_core/saga_gui/res/xpm/saga_icon_32.xpm ${DATADIR}
|
2009-11-17 10:12:08 +01:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|