Index: head/misc/Makefile =================================================================== --- head/misc/Makefile (revision 456690) +++ head/misc/Makefile (revision 456691) @@ -1,524 +1,525 @@ # $FreeBSD$ # COMMENT = Miscellaneous utilities SUBDIR += R-cran-mime SUBDIR += achievo SUBDIR += aclgen SUBDIR += amanda-client SUBDIR += amanda-perl-wrapper SUBDIR += amanda-server SUBDIR += amfm SUBDIR += ansiweather SUBDIR += apparix SUBDIR += artikulate SUBDIR += asbutton SUBDIR += asr-manpages SUBDIR += astrolog SUBDIR += auto-multiple-choice SUBDIR += bb SUBDIR += bbjd SUBDIR += bdelta SUBDIR += bestfit SUBDIR += bibletime SUBDIR += biblical-curse SUBDIR += binclock SUBDIR += biosfont-demos SUBDIR += birthday SUBDIR += bogosort SUBDIR += bottlerocket SUBDIR += boxes SUBDIR += brs SUBDIR += bsod SUBDIR += buffer SUBDIR += cave SUBDIR += cdcollect SUBDIR += chef SUBDIR += chmlib SUBDIR += chord2html SUBDIR += cinnamon-translations SUBDIR += clex SUBDIR += cldr-emoji-annotation SUBDIR += cloc SUBDIR += clpbar SUBDIR += cmatrix SUBDIR += colortail SUBDIR += colwide SUBDIR += compat10x SUBDIR += compat11x SUBDIR += compat4x SUBDIR += compat5x SUBDIR += compat6x SUBDIR += compat7x SUBDIR += compat8x SUBDIR += compat9x SUBDIR += countrycodes SUBDIR += cpuid SUBDIR += crosspad SUBDIR += crosti SUBDIR += cs SUBDIR += cstream SUBDIR += dahdi SUBDIR += dahdi-kmod SUBDIR += dahdi-kmod26 SUBDIR += ddate SUBDIR += deco SUBDIR += dejagnu SUBDIR += delay SUBDIR += detachtty SUBDIR += diction SUBDIR += digitemp SUBDIR += display SUBDIR += dnetc SUBDIR += dphys-config SUBDIR += dtach SUBDIR += dvorak7min SUBDIR += dvorakng SUBDIR += e2fsprogs-libblkid SUBDIR += e2fsprogs-libuuid SUBDIR += elixir-mime SUBDIR += elixir-uuid SUBDIR += elscreen SUBDIR += erlang-mimerl SUBDIR += erlang-mimetypes SUBDIR += esniper SUBDIR += estic SUBDIR += excel-writer SUBDIR += exercism SUBDIR += explosions SUBDIR += fbless SUBDIR += felis SUBDIR += figlet SUBDIR += figlet-fonts SUBDIR += findutils SUBDIR += firestring SUBDIR += flag SUBDIR += floatator SUBDIR += fortune-mod-bible SUBDIR += fortune-mod-bofh SUBDIR += fortune-mod-epictetus SUBDIR += fortune-mod-freebsd-classic SUBDIR += fortune-mod-futurama SUBDIR += fortune-mod-psalms SUBDIR += fortuneit SUBDIR += fpc-chm SUBDIR += free42 SUBDIR += freebsd-doc-all SUBDIR += freebsd-doc-bn SUBDIR += freebsd-doc-da SUBDIR += freebsd-doc-de SUBDIR += freebsd-doc-el SUBDIR += freebsd-doc-en SUBDIR += freebsd-doc-es SUBDIR += freebsd-doc-fr SUBDIR += freebsd-doc-hu SUBDIR += freebsd-doc-it SUBDIR += freebsd-doc-ja SUBDIR += freebsd-doc-ko SUBDIR += freebsd-doc-mn SUBDIR += freebsd-doc-nl SUBDIR += freebsd-doc-pl SUBDIR += freebsd-doc-pt SUBDIR += freebsd-doc-ru SUBDIR += freebsd-doc-sr SUBDIR += freebsd-doc-tr SUBDIR += freebsd-doc-zh_cn SUBDIR += freebsd-doc-zh_tw SUBDIR += freebsd-release-manifests SUBDIR += freeguide SUBDIR += ftdi-eeprom SUBDIR += fxload SUBDIR += gcstar SUBDIR += gctpc SUBDIR += geekcode SUBDIR += getopt SUBDIR += gimp-help-ca SUBDIR += gimp-help-da SUBDIR += gimp-help-el SUBDIR += gimp-help-en SUBDIR += gimp-help-en_GB SUBDIR += gimp-help-es SUBDIR += gimp-help-it SUBDIR += gimp-help-nl SUBDIR += gimp-help-nn SUBDIR += gimp-help-sl SUBDIR += gimp-help-sv SUBDIR += gkrellm-gamma SUBDIR += gkrellm-helium SUBDIR += gkrellm-xkb SUBDIR += gkrellmbgchg2 SUBDIR += gkrellmlaunch2 SUBDIR += gkrellshoot2 SUBDIR += gkrellweather2 SUBDIR += gkx86info2 SUBDIR += gnome-devel-docs SUBDIR += gnome-icon-theme SUBDIR += gnome-icon-theme-extras SUBDIR += gnome-mime-data SUBDIR += gnome-osd SUBDIR += gnome-user-docs SUBDIR += gnu-watch SUBDIR += gnuit SUBDIR += gnuls SUBDIR += gnustep-examples SUBDIR += gone SUBDIR += gonvert SUBDIR += gplink SUBDIR += granulate SUBDIR += grc SUBDIR += gregexp SUBDIR += gtkfind SUBDIR += gwhich SUBDIR += hb SUBDIR += hello SUBDIR += help2man SUBDIR += heyu2 SUBDIR += hicolor-icon-theme SUBDIR += histring SUBDIR += hotkeys SUBDIR += hulgalugha SUBDIR += imerge SUBDIR += img2xterm SUBDIR += ini_file_manager SUBDIR += inplace SUBDIR += ipa_conv SUBDIR += ipbt SUBDIR += iselect SUBDIR += iso-codes SUBDIR += jargon SUBDIR += jbidwatcher SUBDIR += kbdscan SUBDIR += kcd SUBDIR += kde-thumbnailer-chm SUBDIR += kde-thumbnailer-epub SUBDIR += kde-thumbnailer-fb2 SUBDIR += kde4-l10n SUBDIR += kde4-l10n-bg SUBDIR += kde4-l10n-bs SUBDIR += kde4-l10n-ca SUBDIR += kde4-l10n-ca_valencia SUBDIR += kde4-l10n-cs SUBDIR += kde4-l10n-da SUBDIR += kde4-l10n-el SUBDIR += kde4-l10n-en_GB SUBDIR += kde4-l10n-es SUBDIR += kde4-l10n-et SUBDIR += kde4-l10n-eu SUBDIR += kde4-l10n-fa SUBDIR += kde4-l10n-fi SUBDIR += kde4-l10n-ga SUBDIR += kde4-l10n-gl SUBDIR += kde4-l10n-hi SUBDIR += kde4-l10n-hr SUBDIR += kde4-l10n-ia SUBDIR += kde4-l10n-id SUBDIR += kde4-l10n-is SUBDIR += kde4-l10n-it SUBDIR += kde4-l10n-kk SUBDIR += kde4-l10n-km SUBDIR += kde4-l10n-lt SUBDIR += kde4-l10n-lv SUBDIR += kde4-l10n-mr SUBDIR += kde4-l10n-nb SUBDIR += kde4-l10n-nds SUBDIR += kde4-l10n-nl SUBDIR += kde4-l10n-nn SUBDIR += kde4-l10n-pa SUBDIR += kde4-l10n-ro SUBDIR += kde4-l10n-sk SUBDIR += kde4-l10n-sl SUBDIR += kde4-l10n-sr SUBDIR += kde4-l10n-sv SUBDIR += kde4-l10n-tr SUBDIR += kde4-l10n-ug SUBDIR += kde4-l10n-wa SUBDIR += kde4-xdg-env SUBDIR += kdeedu4 SUBDIR += kdeutils4 SUBDIR += kenny SUBDIR += kgeography SUBDIR += klettres SUBDIR += krecipes-kde4 SUBDIR += ktouch SUBDIR += kwordquiz SUBDIR += latex-mk SUBDIR += lazyread SUBDIR += lc SUBDIR += lesspipe SUBDIR += libeatmydata SUBDIR += libisocodes SUBDIR += libkdeedu SUBDIR += libmetalink + SUBDIR += libpostal SUBDIR += libpri SUBDIR += libsupertone SUBDIR += libutf SUBDIR += lifelines SUBDIR += lingoteach SUBDIR += linm SUBDIR += localedata SUBDIR += logsurfer SUBDIR += loop SUBDIR += lv SUBDIR += lxde-common SUBDIR += magicpoint SUBDIR += man.el SUBDIR += mbuffer SUBDIR += mc SUBDIR += mc-light SUBDIR += mdp SUBDIR += metalink-checker SUBDIR += metalink-editor SUBDIR += metalink-tools SUBDIR += metromap SUBDIR += mime-support SUBDIR += mirmon SUBDIR += mmv SUBDIR += mtail SUBDIR += mtx SUBDIR += najitool SUBDIR += newer SUBDIR += nms SUBDIR += nsf SUBDIR += numchar SUBDIR += nut SUBDIR += ondir SUBDIR += opencyc SUBDIR += openr2 SUBDIR += orville-write SUBDIR += osinfo-db SUBDIR += ossp-uuid SUBDIR += otter SUBDIR += owrep SUBDIR += p5-Acme-ButFirst SUBDIR += p5-Array-Compare SUBDIR += p5-Array-Diff SUBDIR += p5-Array-FileReader SUBDIR += p5-Array-IntSpan SUBDIR += p5-Array-LineReader SUBDIR += p5-Array-PrintCols SUBDIR += p5-Array-RefElem SUBDIR += p5-Asterisk SUBDIR += p5-Asterisk-FastAGI SUBDIR += p5-Bot-Training SUBDIR += p5-Bot-Training-MegaHAL SUBDIR += p5-Bot-Training-StarCraft SUBDIR += p5-Business-EDI SUBDIR += p5-Business-Hours SUBDIR += p5-Business-ISBN SUBDIR += p5-Business-ISBN-Data SUBDIR += p5-Business-ISIN SUBDIR += p5-Business-ISMN SUBDIR += p5-Business-ISSN SUBDIR += p5-Business-UPS SUBDIR += p5-Chatbot-Eliza SUBDIR += p5-Data-Buffer SUBDIR += p5-File-CounterFile SUBDIR += p5-File-Sort SUBDIR += p5-Geo-Cache SUBDIR += p5-Geo-Coder-Bing SUBDIR += p5-Geo-Coder-Google SUBDIR += p5-Geo-Coder-Googlev3 SUBDIR += p5-Geo-Coder-Mapquest SUBDIR += p5-Geo-Coder-Multimap SUBDIR += p5-Geo-Coder-Multiple SUBDIR += p5-Geo-Coder-Navteq SUBDIR += p5-Geo-Coder-OSM SUBDIR += p5-Geo-Coder-OpenCage SUBDIR += p5-Geo-Coder-Ovi SUBDIR += p5-Geo-Coder-PlaceFinder SUBDIR += p5-Geo-Coder-TomTom SUBDIR += p5-Geo-GeoNames SUBDIR += p5-Geo-Postcodes SUBDIR += p5-Geo-Postcodes-DK SUBDIR += p5-Geo-Postcodes-NO SUBDIR += p5-Geo-Weather SUBDIR += p5-Geography-Countries SUBDIR += p5-I18N-Charset SUBDIR += p5-I18N-LangTags SUBDIR += p5-LEGO-RCX SUBDIR += p5-List-Compare SUBDIR += p5-List-Util-WeightedRoundRobin SUBDIR += p5-Locale-Codes SUBDIR += p5-Locale-Geocode SUBDIR += p5-Locale-Msgcat SUBDIR += p5-Locale-SubCountry SUBDIR += p5-Locale-US SUBDIR += p5-Net-vCard SUBDIR += p5-Norge SUBDIR += p5-OSSP-uuid SUBDIR += p5-Software-License SUBDIR += p5-Software-License-CCpack SUBDIR += p5-Test-Dir SUBDIR += p5-Text-FIGlet SUBDIR += p5-Tie-DxHash SUBDIR += p5-Zen-Koans SUBDIR += pantry SUBDIR += parley SUBDIR += pastebinit SUBDIR += patchutils SUBDIR += pauker SUBDIR += pciids SUBDIR += pdmenu SUBDIR += pear-Services_Weather SUBDIR += pear-Text_Figlet SUBDIR += pecl-timezonedb SUBDIR += pfm SUBDIR += php56-calendar SUBDIR += php70-calendar SUBDIR += php71-calendar SUBDIR += php72-calendar SUBDIR += phraze SUBDIR += pinfo SUBDIR += pipe SUBDIR += podsleuth SUBDIR += posixtestsuite SUBDIR += proxyper SUBDIR += pspresent SUBDIR += ptsort SUBDIR += py-YABT SUBDIR += py-cinder SUBDIR += py-colorbrewer SUBDIR += py-crudini SUBDIR += py-fuzzy SUBDIR += py-glance SUBDIR += py-osd SUBDIR += py-palettable SUBDIR += py-pexpect SUBDIR += py-powerline-status SUBDIR += py-progressbar SUBDIR += py-progressbar231 SUBDIR += py-pyfiglet SUBDIR += py-pyprind SUBDIR += py-python-geohash SUBDIR += py-qt4-demo SUBDIR += py-qt4-doc SUBDIR += py-qt5-demo SUBDIR += py-qt5-doc SUBDIR += py-socli SUBDIR += py-spdx SUBDIR += py-spdx-lookup SUBDIR += py-tqdm SUBDIR += py-yolk SUBDIR += pylize SUBDIR += qbrew SUBDIR += qlas SUBDIR += qmetro SUBDIR += qt4-doc SUBDIR += qt4-l10n SUBDIR += qt4-qtconfig SUBDIR += qt4-qtdemo SUBDIR += qt5-doc SUBDIR += qt5-examples SUBDIR += qt5-l10n SUBDIR += qt5ct SUBDIR += qtchooser SUBDIR += raspberrypi-userland SUBDIR += raspbsd-led SUBDIR += ree SUBDIR += rfc SUBDIR += ringtonetools SUBDIR += rname SUBDIR += rpl SUBDIR += rtfm SUBDIR += rubygem-dotenv SUBDIR += rubygem-dotenv-rails SUBDIR += rubygem-dotenv-rails-rails5 SUBDIR += rubygem-dotenv-rails-rails50 SUBDIR += rubygem-iesd SUBDIR += rubygem-mime-types SUBDIR += rubygem-mime-types-data SUBDIR += rubygem-mime-types1 SUBDIR += rubygem-mime-types29 SUBDIR += rubygem-mimemagic SUBDIR += rubygem-rabbit SUBDIR += rubygem-vpim SUBDIR += rump SUBDIR += saaghar SUBDIR += seabios SUBDIR += sent SUBDIR += seq2 SUBDIR += shared-mime-info SUBDIR += shc SUBDIR += shuffle SUBDIR += shuffle-db SUBDIR += since SUBDIR += skyutils SUBDIR += sloccount SUBDIR += sls SUBDIR += smssend SUBDIR += solarized SUBDIR += spamcalc SUBDIR += sshbuddy SUBDIR += sssnips SUBDIR += susv2 SUBDIR += susv3 SUBDIR += susv4 SUBDIR += sword SUBDIR += table.el SUBDIR += talkfilters SUBDIR += tcb SUBDIR += team SUBDIR += telbook SUBDIR += tellico-kde4 SUBDIR += tempcontrol SUBDIR += termatrix SUBDIR += teseq SUBDIR += timediff SUBDIR += tkcron SUBDIR += tkinfo SUBDIR += tkregexp SUBDIR += tkrunit SUBDIR += toilet SUBDIR += tpp SUBDIR += translate SUBDIR += ttyrec SUBDIR += tudu SUBDIR += tvbrowser SUBDIR += typetrainer SUBDIR += uk-phone SUBDIR += uk-postcodes SUBDIR += umodunpack SUBDIR += unclutter SUBDIR += unclutter-xfixes SUBDIR += unicode-emoji SUBDIR += upclient SUBDIR += us-zipcodes SUBDIR += usbids SUBDIR += usbrh-libusb SUBDIR += utftools SUBDIR += valspeak SUBDIR += vdmfec SUBDIR += vera SUBDIR += vifm SUBDIR += viz SUBDIR += whichman SUBDIR += window SUBDIR += wmScoreBoard SUBDIR += wmcalendar SUBDIR += wmjulia SUBDIR += wmpal SUBDIR += wmtunlo SUBDIR += wmweather+ SUBDIR += wmwork SUBDIR += wotsap SUBDIR += xd SUBDIR += xdelta SUBDIR += xdelta3 SUBDIR += xdg-menu SUBDIR += xfce4-appfinder SUBDIR += xfce4-weather-plugin SUBDIR += xfce4-wm-themes SUBDIR += xgas SUBDIR += xiphos SUBDIR += xless SUBDIR += xosd SUBDIR += xpns SUBDIR += xtail SUBDIR += xtar SUBDIR += xtypo SUBDIR += yaunc SUBDIR += ytree SUBDIR += zoneinfo .include Index: head/misc/libpostal/Makefile =================================================================== --- head/misc/libpostal/Makefile (nonexistent) +++ head/misc/libpostal/Makefile (revision 456691) @@ -0,0 +1,58 @@ +# $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 + +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_MAN} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} + +.include Property changes on: head/misc/libpostal/Makefile ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/misc/libpostal/distinfo =================================================================== --- head/misc/libpostal/distinfo (nonexistent) +++ head/misc/libpostal/distinfo (revision 456691) @@ -0,0 +1,3 @@ +TIMESTAMP = 1513006366 +SHA256 (openvenues-libpostal-v1.0.0_GH0.tar.gz) = 3035af7e15b2894069753975d953fa15a86d968103913dbf8ce4b8aa26231644 +SIZE (openvenues-libpostal-v1.0.0_GH0.tar.gz) = 5537587 Property changes on: head/misc/libpostal/distinfo ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/misc/libpostal/files/patch-configure.ac =================================================================== --- head/misc/libpostal/files/patch-configure.ac (nonexistent) +++ head/misc/libpostal/files/patch-configure.ac (revision 456691) @@ -0,0 +1,11 @@ +--- configure.ac.orig 2017-04-07 21:40:27 UTC ++++ configure.ac +@@ -19,7 +19,7 @@ AC_CONFIG_HEADERS([config.h]) + AC_PROG_CC_C99 + AC_PROG_INSTALL + +-LDFLAGS="$LDFLAGS -L/usr/local/lib" ++#LDFLAGS="$LDFLAGS -L/usr/local/lib" + + # Checks for libraries. + AC_SEARCH_LIBS([log], Property changes on: head/misc/libpostal/files/patch-configure.ac ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/misc/libpostal/files/patch-src_Makefile.am =================================================================== --- head/misc/libpostal/files/patch-src_Makefile.am (nonexistent) +++ head/misc/libpostal/files/patch-src_Makefile.am (revision 456691) @@ -0,0 +1,74 @@ +--- src/Makefile.am.orig 2017-04-07 21:40:27 UTC ++++ src/Makefile.am +@@ -1,11 +1,11 @@ + # Inherited from autoconf / user-specified + CFLAGS_CONF = @CFLAGS@ +-CFLAGS_BASE = -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR='"$(datadir)/libpostal"' -g $(CFLAGS_CONF) ++CFLAGS_BASE = -Wall -Wextra -Wno-unused-function -Wformat -Werror=format-security -Winit-self -Wno-sign-compare -DLIBPOSTAL_DATA_DIR='"$(datadir)"' $(CFLAGS_CONF) + CFLAGS_O0 = $(CFLAGS_BASE) -O0 + CFLAGS_O1 = $(CFLAGS_BASE) -O1 + CFLAGS_O2 = $(CFLAGS_BASE) -O2 + CFLAGS_O3 = $(CFLAGS_BASE) -O3 +-DEFAULT_INCLUDES = -I.. -I/usr/local/include ++DEFAULT_INCLUDES = -I.. + + # Wonky but have to be able to override the user's optimization level to compile the scanner + # as it takes an unreasonably long time to compile with the optimizer on. +@@ -14,7 +14,7 @@ CFLAGS = + lib_LTLIBRARIES = libpostal.la + libpostal_la_SOURCES = libpostal.c address_dictionary.c transliterate.c tokens.c trie.c trie_search.c trie_utils.c string_utils.c file_utils.c numex.c utf8proc/utf8proc.c cmp/cmp.c normalize.c features.c unicode_scripts.c address_parser.c address_parser_io.c averaged_perceptron.c crf.c crf_context.c sparse_matrix.c averaged_perceptron_tagger.c graph.c graph_builder.c language_classifier.c language_features.c logistic_regression.c logistic.c minibatch.c float_utils.c ngrams.c + libpostal_la_LIBADD = libscanner.la $(CBLAS_LIBS) +-libpostal_la_CFLAGS = $(CFLAGS_O2) ++libpostal_la_CFLAGS = $(CFLAGS_BASE) + libpostal_la_LDFLAGS = -version-info @LIBPOSTAL_SO_VERSION@ + + dist_bin_SCRIPTS = libpostal_data +@@ -30,37 +30,37 @@ noinst_PROGRAMS = libpostal bench addres + + libpostal_SOURCES = main.c json_encode.c + libpostal_LDADD = libpostal.la +-libpostal_CFLAGS = $(CFLAGS_O3) ++libpostal_CFLAGS = $(CFLAGS_BASE) + bench_SOURCES = bench.c + bench_LDADD = libpostal.la libscanner.la $(CBLAS_LIBS) +-bench_CFLAGS = $(CFLAGS_O3) ++bench_CFLAGS = $(CFLAGS_BASE) + address_parser_SOURCES = address_parser_cli.c json_encode.c linenoise/linenoise.c libpostal.c address_parser.c address_parser_io.c averaged_perceptron.c crf.c crf_context.c sparse_matrix.c graph.c graph_builder.c float_utils.c averaged_perceptron_tagger.c address_dictionary.c normalize.c features.c unicode_scripts.c transliterate.c trie.c trie_search.c trie_utils.c string_utils.c tokens.c file_utils.c utf8proc/utf8proc.c ngrams.c numex.c language_classifier.c language_features.c logistic_regression.c logistic.c minibatch.c + address_parser_LDADD = libscanner.la $(CBLAS_LIBS) +-address_parser_CFLAGS = $(CFLAGS_O3) ++address_parser_CFLAGS = $(CFLAGS_BASE) + + build_address_dictionary_SOURCES = address_dictionary_builder.c address_dictionary.c file_utils.c string_utils.c trie.c trie_search.c utf8proc/utf8proc.c +-build_address_dictionary_CFLAGS = $(CFLAGS_O3) ++build_address_dictionary_CFLAGS = $(CFLAGS_BASE) + build_numex_table_SOURCES = numex_table_builder.c numex.c file_utils.c string_utils.c tokens.c trie.c trie_search.c utf8proc/utf8proc.c +-build_numex_table_CFLAGS = $(CFLAGS_O3) ++build_numex_table_CFLAGS = $(CFLAGS_BASE) + build_trans_table_SOURCES = transliteration_table_builder.c transliterate.c trie.c trie_search.c file_utils.c string_utils.c utf8proc/utf8proc.c +-build_trans_table_CFLAGS = $(CFLAGS_O3) ++build_trans_table_CFLAGS = $(CFLAGS_BASE) + address_parser_train_SOURCES = address_parser_train.c address_parser.c address_parser_io.c averaged_perceptron.c crf.c crf_context.c sparse_matrix.c graph.c graph_builder.c float_utils.c averaged_perceptron_trainer.c crf_trainer.c crf_trainer_averaged_perceptron.c averaged_perceptron_tagger.c address_dictionary.c normalize.c features.c unicode_scripts.c transliterate.c trie.c trie_search.c trie_utils.c string_utils.c tokens.c file_utils.c shuffle.c utf8proc/utf8proc.c ngrams.c + address_parser_train_LDADD = libscanner.la $(CBLAS_LIBS) +-address_parser_train_CFLAGS = $(CFLAGS_O3) ++address_parser_train_CFLAGS = $(CFLAGS_BASE) + + address_parser_test_SOURCES = address_parser_test.c address_parser.c address_parser_io.c averaged_perceptron.c crf.c crf_context.c sparse_matrix.c graph.c graph_builder.c float_utils.c averaged_perceptron_tagger.c address_dictionary.c normalize.c features.c unicode_scripts.c transliterate.c trie.c trie_search.c trie_utils.c string_utils.c tokens.c file_utils.c utf8proc/utf8proc.c ngrams.c + address_parser_test_LDADD = libscanner.la $(CBLAS_LIBS) +-address_parser_test_CFLAGS = $(CFLAGS_O3) ++address_parser_test_CFLAGS = $(CFLAGS_BASE) + + language_classifier_train_SOURCES = language_classifier_train.c language_classifier.c language_features.c language_classifier_io.c logistic_regression_trainer.c logistic_regression.c logistic.c sparse_matrix.c sparse_matrix_utils.c features.c minibatch.c float_utils.c stochastic_gradient_descent.c ftrl.c regularization.c cartesian_product.c normalize.c transliterate.c trie.c trie_search.c trie_utils.c address_dictionary.c string_utils.c file_utils.c utf8proc/utf8proc.c unicode_scripts.c shuffle.c + language_classifier_train_LDADD = libscanner.la $(CBLAS_LIBS) +-language_classifier_train_CFLAGS = $(CFLAGS_O3) ++language_classifier_train_CFLAGS = $(CFLAGS_BASE) + language_classifier_SOURCES = language_classifier_cli.c language_classifier.c language_features.c logistic_regression.c logistic.c sparse_matrix.c features.c minibatch.c float_utils.c normalize.c transliterate.c trie.c trie_search.c trie_utils.c address_dictionary.c string_utils.c file_utils.c utf8proc/utf8proc.c unicode_scripts.c + language_classifier_LDADD = libscanner.la $(CBLAS_LIBS) +-language_classifier_CFLAGS = $(CFLAGS_O3) ++language_classifier_CFLAGS = $(CFLAGS_BASE) + language_classifier_test_SOURCES = language_classifier_test.c language_classifier.c language_classifier_io.c language_features.c logistic_regression.c logistic.c sparse_matrix.c features.c minibatch.c float_utils.c normalize.c transliterate.c trie.c trie_search.c trie_utils.c address_dictionary.c string_utils.c file_utils.c utf8proc/utf8proc.c unicode_scripts.c + language_classifier_test_LDADD = libscanner.la $(CBLAS_LIBS) +-language_classifier_test_CFLAGS = $(CFLAGS_O3) ++language_classifier_test_CFLAGS = $(CFLAGS_BASE) + + + pkginclude_HEADERS = libpostal.h Property changes on: head/misc/libpostal/files/patch-src_Makefile.am ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/misc/libpostal/files/patch-src_libpostal__data =================================================================== --- head/misc/libpostal/files/patch-src_libpostal__data (nonexistent) +++ head/misc/libpostal/files/patch-src_libpostal__data (revision 456691) @@ -0,0 +1,23 @@ +--- src/libpostal_data.orig 2017-04-07 21:40:27 UTC ++++ src/libpostal_data +@@ -78,9 +78,9 @@ download_multipart() { + else + max=$size; + fi; +- printf "%s\0%s\0%s\0%s\0%s\0" "$i" "$offset" "$max" "$url" "$part_filename" ++ printf "%s\0%s\0%s\0%s\0%s\0%s\0%s\0" "x" "$i" "$offset" "$max" "$url" "$part_filename" + offset=$((offset+CHUNK_SIZE)) +- done | xargs -0 -n 5 -P $NUM_WORKERS sh -c "$DOWNLOAD_PART" -- ++ done | xargs -0 -n 6 -P $NUM_WORKERS sh -c "$DOWNLOAD_PART" -- + + > $local_path + +@@ -176,6 +176,8 @@ if [ $COMMAND = "download" ]; then + download_file $LIBPOSTAL_LANG_CLASS_UPDATED_PATH $LIBPOSTAL_DATA_DIR $lang_class_s3_prefix $LIBPOSTAL_LANG_CLASS_FILE "language classifier data file" $LANGUAGE_CLASSIFIER_MODULE_DIR + fi + ++ chown -R root:wheel $LIBPOSTAL_DATA_DIR ++ + if [ "$LIBPOSTAL_DATA_DIR_VERSION" != "$LIBPOSTAL_VERSION_STRING" ]; then + echo $LIBPOSTAL_VERSION_STRING > $LIBPOSTAL_DATA_VERSION_FILE; + fi Property changes on: head/misc/libpostal/files/patch-src_libpostal__data ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/misc/libpostal/files/patch-src_sparkey_Makefile.am =================================================================== --- head/misc/libpostal/files/patch-src_sparkey_Makefile.am (nonexistent) +++ head/misc/libpostal/files/patch-src_sparkey_Makefile.am (revision 456691) @@ -0,0 +1,15 @@ +--- src/sparkey/Makefile.am.orig 2017-04-07 21:40:27 UTC ++++ src/sparkey/Makefile.am +@@ -1,5 +1,5 @@ + CFLAGS_CONF = @CFLAGS@ +-CFLAGS = -I/usr/local/include -O2 -Wall -Wextra -Wfloat-equal -Wshadow -Wpointer-arith -Werror -pedantic $(CFLAGS_CONF) ++CFLAGS = -Wall -Wextra -Wfloat-equal -Wshadow -Wpointer-arith -Werror -pedantic $(CFLAGS_CONF) + + noinst_LTLIBRARIES = libsparkey.la + libsparkey_la_SOURCES = endiantools.h hashheader.h logheader.h \ +@@ -8,4 +8,4 @@ logreader.c returncodes.c util.c buf.h h + sparkey.h util.h endiantools.c \ + hashheader.c hashreader.c logheader.c logwriter.c MurmurHash3.c \ + sparkey-internal.h +-libsparkey_la_LDFLAGS = -L/usr/local/lib ++#libsparkey_la_LDFLAGS = -L/usr/local/lib Property changes on: head/misc/libpostal/files/patch-src_sparkey_Makefile.am ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/misc/libpostal/files/patch-test_Makefile.am =================================================================== --- head/misc/libpostal/files/patch-test_Makefile.am (nonexistent) +++ head/misc/libpostal/files/patch-test_Makefile.am (revision 456691) @@ -0,0 +1,20 @@ +--- test/Makefile.am.orig 2017-04-07 21:40:27 UTC ++++ test/Makefile.am +@@ -1,9 +1,9 @@ +-CFLAGS_BASE = -Wfloat-equal -Wpointer-arith -std=gnu99 -DLIBPOSTAL_DATA_DIR='"$(datadir)/libpostal"' -g ++CFLAGS_BASE = -Wfloat-equal -Wpointer-arith -std=gnu99 -DLIBPOSTAL_DATA_DIR='"$(datadir)"' + CFLAGS_O0 = $(CFLAGS_BASE) -O0 + CFLAGS_O1 = $(CFLAGS_BASE) -O1 + CFLAGS_O2 = $(CFLAGS_BASE) -O2 + CFLAGS_O3 = $(CFLAGS_BASE) -O3 +-DEFAULT_INCLUDES = -I.. -I/usr/local/include ++DEFAULT_INCLUDES = -I.. + + CFLAGS = $(CFLAGS_BASE) + +@@ -11,4 +11,4 @@ TESTS = test_libpostal + noinst_PROGRAMS = test_libpostal + test_libpostal_SOURCES = test.c test_expand.c test_parser.c test_transliterate.c test_numex.c test_trie.c test_string_utils.c test_crf_context.c + test_libpostal_LDADD = ../src/libpostal.la $(CBLAS_LIBS) +-test_libpostal_CFLAGS = $(CFLAGS_O3) ++test_libpostal_CFLAGS = $(CFLAGS_BASE) Property changes on: head/misc/libpostal/files/patch-test_Makefile.am ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/misc/libpostal/files/pkg-message.in =================================================================== --- head/misc/libpostal/files/pkg-message.in (nonexistent) +++ head/misc/libpostal/files/pkg-message.in (revision 456691) @@ -0,0 +1,4 @@ +%%PORTNAME%% requires model data (about 1.5GB) which can be downloaded using +the following command: + +# %%PREFIX%%/bin/libpostal_data download all %%LIBPOSTAL_DATADIR%% Property changes on: head/misc/libpostal/files/pkg-message.in ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/misc/libpostal/pkg-descr =================================================================== --- head/misc/libpostal/pkg-descr (nonexistent) +++ head/misc/libpostal/pkg-descr (revision 456691) @@ -0,0 +1,6 @@ +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. + +WWW: https://github.com/openvenues/libpostal Property changes on: head/misc/libpostal/pkg-descr ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/misc/libpostal/pkg-plist =================================================================== --- head/misc/libpostal/pkg-plist (nonexistent) +++ head/misc/libpostal/pkg-plist (revision 456691) @@ -0,0 +1,9 @@ +bin/address_parser +bin/libpostal +bin/libpostal_data +include/libpostal/libpostal.h +%%STATIC%%lib/libpostal.a +lib/libpostal.so +lib/libpostal.so.1 +lib/libpostal.so.1.0.0 +libdata/pkgconfig/libpostal.pc Property changes on: head/misc/libpostal/pkg-plist ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property