Index: head/www/py-libsass/Makefile =================================================================== --- head/www/py-libsass/Makefile (revision 483814) +++ head/www/py-libsass/Makefile (revision 483815) @@ -1,29 +1,27 @@ # Created by: Yuri Victorovich # $FreeBSD$ PORTNAME= libsass DISTVERSION= 0.15.1 CATEGORIES= www python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= yuri@FreeBSD.org COMMENT= Straightforward binding of libsass for Python LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE -BROKEN_powerpc64= fails to compile: cc1plus: error: unrecognized command line option -std=c++0x - RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR} LIB_DEPENDS= libsass.so:textproc/libsass -USES= localbase python +USES= compiler:c++11-lang localbase python USE_PYTHON= autoplist distutils MAKE_ENV= SYSTEM_SASS=1 post-install: @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/_sass.so .include Index: head/www/py-libsass/files/patch-setup.py =================================================================== --- head/www/py-libsass/files/patch-setup.py (revision 483814) +++ head/www/py-libsass/files/patch-setup.py (revision 483815) @@ -1,11 +1,29 @@ ---- setup.py.orig 2017-11-16 05:28:26 UTC +--- setup.py.orig 2018-09-16 19:57:43 UTC +++ setup.py @@ -37,7 +37,7 @@ def _maybe_clang(flags): compiler.linker_so[0] = os.environ['CXX'] return compiler distutils.sysconfig.customize_compiler = customize_compiler - flags[:] = ['-c', '-O3'] + flags + ['-stdlib=libc++'] -+ flags[:] = ['-c'] + flags + ['-stdlib=libc++'] ++ flags[:] = ['-c'] + flags def _maybe_macos(flags): +@@ -59,7 +59,7 @@ if system_sass: + _maybe_macos(flags) + + if platform.system() == 'FreeBSD': +- link_flags = ['-fPIC', '-lc++'] ++ link_flags = ['-fPIC'] + else: + link_flags = ['-fPIC', '-lstdc++'] + libraries = ['sass'] +@@ -173,7 +173,7 @@ else: + f.write(cencode_body) + + if platform.system() == 'FreeBSD': +- link_flags = ['-fPIC', '-lc++'] ++ link_flags = ['-fPIC'] + else: + link_flags = ['-fPIC', '-lstdc++'] +