1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00
freebsd-ports/misc/libemos/Makefile
Yuri Victorovich e7e275f5fc misc/libemos: Fix build by adding USES=localbase:ldflags
Otherwise some libraries weren't found.

Reported by:	fallout
2023-11-19 01:59:10 -08:00

31 lines
829 B
Makefile

PORTNAME= libemos
DISTVERSION= 4.5.9
DISTVERSIONSUFFIX= -Source
PORTREVISION= 4
CATEGORIES= misc
MASTER_SITES= https://confluence.ecmwf.int/download/attachments/3473472/
MAINTAINER= yuri@FreeBSD.org
COMMENT= Interpolation library for meteorological software
WWW= https://confluence.ecmwf.int/display/EMOS/Emoslib
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libeccodes.so:science/eccodes \
libfftw3.so:math/fftw3 \
libpng.so:graphics/png
USES= cmake:noninja compiler:c11 fortran localbase:ldflags
CMAKE_ON= BUILD_SHARED_LIBS # not respected: https://jira.ecmwf.int/browse/SUP-2691
CMAKE_OFF= HAVE_TESTS
FFLAGS+= -std=legacy
LDFLAGS+= -leccodes
post-stage: # installs the file from eccodes: https://jira.ecmwf.int/browse/SUP-2693
@${RM} ${STAGEDIR}${PREFIX}/bin/bufr_filter
.include <bsd.port.mk>