mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-21 04:06:46 +00:00
aff42c7199
most cases, the failure mode is the same. Also, mark them broken on mips when necessary. While here, pet portlint. Approved by: portmgr (tier-2 blanket)
63 lines
1.7 KiB
Makefile
63 lines
1.7 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= libpostal
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 1.0.0
|
|
CATEGORIES= misc geography
|
|
|
|
MAINTAINER= dg@syrec.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'
|
|
BROKEN_powerpc64= fails to compile: unrecognized command line option "-Wno-c++11-narrowing"
|
|
|
|
RUN_DEPENDS= curl:ftp/curl
|
|
|
|
USES= autoreconf libtool localbase
|
|
GNU_CONFIGURE= yes
|
|
USE_LDCONFIG= yes
|
|
CONFIGURE_ARGS= --datadir=${LIBPOSTAL_DATADIR} \
|
|
--disable-data-download
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= openvenues
|
|
TEST_TARGET= check
|
|
|
|
LIBPOSTAL_DATADIR?= /var/db/${PORTNAME}
|
|
|
|
SUB_FILES= pkg-message
|
|
SUB_LIST= PORTNAME=${PORTNAME} \
|
|
LIBPOSTAL_DATADIR=${LIBPOSTAL_DATADIR}
|
|
|
|
PORTDOCS= README.md
|
|
|
|
OPTIONS_DEFINE= CBLAS DOCS SSE2 STATIC
|
|
CBLAS_DESC= Build with CBLAS/OPENBLAS
|
|
SSE2_DESC= Enable SSE2 optimization
|
|
OPTIONS_SUB= yes
|
|
|
|
CBLAS_BUILD_DEPENDS= ${LOCALBASE}/include/cblas.h:math/cblas
|
|
CBLAS_LIB_DEPENDS= libopenblas.so:math/openblas
|
|
CBLAS_CONFIGURE_WITH= cblas=${LOCALBASE}/lib/libopenblas.so
|
|
|
|
SSE2_CONFIGURE_ENABLE= sse2
|
|
|
|
STATIC_CONFIGURE_ENABLE= static
|
|
|
|
pre-configure:
|
|
@cd ${WRKSRC} && ${SH} bootstrap.sh
|
|
|
|
post-install:
|
|
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libpostal.so
|
|
${INSTALL_PROGRAM} ${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>
|