1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-15 03:14:23 +00:00
freebsd-ports/misc/libpostal/Makefile
Jan Beich 923364d365 misc/libpostal: unbreak CBLAS=on after r523749
=======================<phase: lib-depends    >============================
===>   libpostal-1.1_1 depends on shared library: libopenblas.so - not found
===>   Installing existing package /packages/All/openblas-0.3.7,1.txz
Installing openblas-0.3.7,1...
pkg-static: openblas-0.3.7,1 conflicts with cblas-1.0_12 (installs files into the same place).  Problematic file: /usr/local/include/cblas.h

Failed to install the following 1 package(s): /packages/All/openblas-0.3.7,1.txz
*** Error code 70

PR:		231371
2020-01-22 13:01:32 +00:00

70 lines
1.7 KiB
Makefile

# $FreeBSD$
PORTNAME= libpostal
DISTVERSIONPREFIX= v
DISTVERSION= 1.1
DISTVERSIONSUFFIX= -alpha
PORTREVISION= 1
CATEGORIES= misc geography
PATCH_SITES= https://github.com/${GH_ACCOUNT}/${PORTNAME}/commit/
PATCHFILES= 21601eb4b8941b8d6d9b795b1d6db4bd376f5b28.patch:-p1
MAINTAINER= dmgk@FreeBSD.org
COMMENT= Library for parsing/normalizing street addresses around the world
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
BROKEN_mips= fails to compile: tagger.h:5: redefinition of typedef 'tagger_feature_function'
BROKEN_mips64= fails to compile: tagger.h:5: redefinition of typedef 'tagger_feature_function'
RUN_DEPENDS= curl:ftp/curl
USES= autoreconf libtool localbase
USE_GITHUB= yes
GH_ACCOUNT= openvenues
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --datadir=${LIBPOSTAL_DATADIR} \
--disable-data-download \
--disable-static
TEST_TARGET= check
SUB_FILES= pkg-message
SUB_LIST= PORTNAME=${PORTNAME} \
LIBPOSTAL_DATADIR=${LIBPOSTAL_DATADIR}
PORTDOCS= README.md
OPTIONS_DEFINE= CBLAS DOCS SSE2
OPTIONS_SUB= yes
CBLAS_DESC= Build with CBLAS/OPENBLAS
SSE2_DESC= Enable SSE2 optimization
CBLAS_LIB_DEPENDS= libopenblas.so:math/openblas
CBLAS_CONFIGURE_WITH= cblas=${LOCALBASE}/lib/libopenblas.so
SSE2_CONFIGURE_ENABLE= sse2
LIBPOSTAL_DATADIR?= /var/db/${PORTNAME}
pre-configure:
@cd ${WRKSRC} && ${SH} bootstrap.sh
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libpostal.so
${INSTALL_SCRIPT} ${WRKSRC}/src/address_parser ${STAGEDIR}${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/src/libpostal ${STAGEDIR}${PREFIX}/bin
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>