Index: head/databases/grass7/Makefile =================================================================== --- head/databases/grass7/Makefile +++ head/databases/grass7/Makefile @@ -39,7 +39,7 @@ RUN_DEPENDS= ${PY_NUMPY} \ ${PYTHON_SITELIBDIR}/six.py:devel/py-six@${PY_FLAVOR} -USES= blaslapack compiler:c11 gl gmake gnome iconv \ +USES= blaslapack compiler:features gl gmake gnome iconv \ jpeg perl5 pkgconfig python:3.6+ readline shebangfix xorg SHEBANG_GLOB= *.py SHEBANG_LANG= nviz @@ -65,6 +65,8 @@ --enable-largefile \ --with-wxwidgets=${WX_CONFIG} \ --with-proj-share=${LOCALBASE}/share/proj \ + --with-proj-includes=${LOCALBASE}/include \ + --with-proj-libs=${LOCALBASE}/lib \ --with-geos=${LOCALBASE}/bin/geos-config \ --with-gdal=${LOCALBASE}/bin/gdal-config \ --with-pthread=yes \ @@ -135,8 +137,16 @@ PLIST_SUB+= WOSBRK="@comment " .else PLIST_SUB+= WOSBRK="" +.endif +.if ${ARCH} == "i386" && ${OSVERSION} < 1200000 +# clang 7.x and 8.x do not build properly on 11i386 +CPP= clang-cpp${LLVM_DEFAULT} +CC= clang${LLVM_DEFAULT} +CXX= clang++${LLVM_DEFAULT} +BUILD_DEPENDS+= clang${LLVM_DEFAULT}:devel/llvm${LLVM_DEFAULT} .endif + .if !defined (GRASS_INST_DIR) GRASS_INST_DIR= ${PORTNAME}${VER} .endif @@ -144,10 +154,6 @@ MANDIRS= ${PREFIX}/grass${VER}/docs/man/man1 post-patch: -# ${REINPLACE_CMD} -e \ -# 's|-lblas|${BLASLIB}|g ; \ -# s|-llapack|${LAPACKLIB}|g ; \ -# s|g2c|f2c|g' ${WRKSRC}/configure ${REINPLACE_CMD} -e \ 's|make -C|$$(MAKE) -C| ; \ /^BINDIR/s|=.*|= $${DESTDIR}$${UNIX_BIN}| ; \