Last active
October 4, 2017 12:00
-
-
Save earnubs/b3c3d234058f54b65fad7c70d97ce2e0 to your computer and use it in GitHub Desktop.
node6 sunos node-sass pkg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# $NetBSD$ | |
PORTNAME= node-sass | |
PORTVERSION= 4.5.3 | |
DISTNAME= v${PORTVERSION} | |
PKGNAME= node6-sass-binding-${DISTNAME} | |
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} | |
CATEGORIES= meta-pkgs | |
MASTER_SITES= ${MASTER_SITE_GITHUB:=sass/} | |
USE_TOOLS+= gmake | |
USE_LANGUAGES= c c++ | |
PYTHON_FOR_BUILD_ONLY= yes | |
MAINTAINER= stephen.stewart@freeagent.com | |
HOMEPAGE= https://github.com/sass/node-sass | |
COMMENT= Node-sass smartos bindings | |
LICENSE= mit | |
BUILD_DEPENDS= nodejs>6:../../lang/nodejs6 | |
INSTALLATION_DIRS= share/fa-node-sass/ | |
do-build: | |
cd ${WRKSRC} && \ | |
${MAKE_ENV} PYTHON=${PYTHONBIN} npm_config_directory=${WRKSRC} npm_config_target=6.9.1 npm_config_python=${PYTHONBIN} npm_config_jobs=4 npm install && \ | |
${MAKE_ENV} PYTHON=${PYTHONBIN} npm_config_directory=${WRKSRC} npm_config_target=6.9.1 npm_config_python=${PYTHONBIN} npm_config_jobs=4 node scripts/build --force | |
do-install: | |
${INSTALL_LIB} ${WRKSRC}/vendor/sunos-x64-48/binding.node $(DESTDIR)$(PREFIX)/share/fa-node-sass/ | |
.include "../../lang/python/pyversion.mk" | |
.include "../../mk/bsd.pkg.mk" |
Author
earnubs
commented
Oct 2, 2017
•
CXX=/opt/local/gcc49/bin/g++ npm_config_target=6.9.1 ...
fixed it, but pkglint complains about the absolute path :(
... which is also mentioned in https://wiki.smartos.org/display/DOC/Building+node.js+Binary+Addons+on+SmartMachines (hat tip @1stvamp)
#smartos, freenode, 4-OCT-2017
10:14 AM <beowulf> [...] pkglint complains about my hardcoded path in CXX (CXX=/opt/local/gcc49/bin/g++) but without that, g++ is failing to find node headers, any ideas?
10:22 AM <jperkin> beowulf: [...] if you add ${MAKE_ENV} to the call then that should automatically set stuff like CXX=${CXX:Q}
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment