C library for parsing/normalizing street addresses around the world, powered by statistical NLP and open geo data. This library helps convert the free-form addresses that humans use into clean normalized forms suitable for machine comparison and full-text indexing. OK rsadowski@
42 lines
868 B
Makefile
42 lines
868 B
Makefile
# $OpenBSD: Makefile,v 1.1.1.1 2018/08/06 09:15:11 fcambus Exp $
|
|
|
|
COMMENT = library for parsing/normalizing street addresses
|
|
|
|
GH_ACCOUNT = openvenues
|
|
GH_PROJECT = libpostal
|
|
GH_TAGNAME = v1.0.0
|
|
|
|
SHARED_LIBS += postal 0.0 # 1.0
|
|
|
|
CATEGORIES = geo
|
|
|
|
MAINTAINER = Frederic Cambus <fcambus@openbsd.org>
|
|
|
|
# MIT
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
WANTLIB += c m
|
|
|
|
AUTOMAKE_VERSION = 1.15
|
|
AUTOCONF_VERSION = 2.69
|
|
|
|
BUILD_DEPENDS = ${MODGNU_AUTOCONF_DEPENDS} \
|
|
${MODGNU_AUTOMAKE_DEPENDS} \
|
|
devel/libtool
|
|
|
|
CONFIGURE_STYLE = gnu
|
|
|
|
CONFIGURE_ARGS = --datadir=${LOCALSTATEDIR}/db --disable-data-download
|
|
|
|
NO_TEST = Yes
|
|
|
|
pre-configure:
|
|
cd ${WRKSRC} && ${SETENV} AUTOCONF_VERSION=${AUTOCONF_VERSION} \
|
|
AUTOMAKE_VERSION=${AUTOMAKE_VERSION} ./bootstrap.sh
|
|
|
|
post-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/address_parser ${PREFIX}/bin
|
|
rm ${PREFIX}/bin/libpostal_data
|
|
|
|
.include <bsd.port.mk>
|