On Fri, 22 May 2020, Rafael Sadowski wrote: > On Thu May 21, 2020 at 02:52:24PM -0600, Todd C. Miller wrote: > > On Thu, 21 May 2020 21:03:37 +0200, Paco Esteban wrote: > > > > > For now it does not work for me with the patch you sent. I get: > > > > > > # > > > github.com/gohugoio/hugo/vendor/github.com/bep/golibsass/internal/libsass > > > c99func.c:2:10: fatal error: '../../libsass_src/src/c99func.c' file not > > > found > > > > > > I'll take a deeper look tomorrow probably. > > That could be useful for SASS themes users. FLAVOR note is missing in > pkg/DESCR. The diff below builds fine.
It builds now and works with one of the SASS themes I've found. I added the flavor description, diff at the end. Thank you Todd and Rafael. Comments ? ok ? Index: Makefile =================================================================== RCS file: /home/cvs/ports/www/hugo/Makefile,v retrieving revision 1.20 diff -u -p -r1.20 Makefile --- Makefile 21 May 2020 16:37:44 -0000 1.20 +++ Makefile 22 May 2020 07:51:18 -0000 @@ -26,6 +26,16 @@ ALL_TARGET = github.com/gohugoio/hugo SEPARATE_BUILD = Yes +FLAVORS = extended +FLAVOR ?= + +.if ${FLAVOR:Mextended} +MODGO_FLAGS += --tags extended +LIB_DEPENDS += www/libsass +WANTLIB += sass +MAKE_ENV += CGO_CPPFLAGS='-I${LOCALBASE}/include -DUSE_LIBSASS_SRC' CGO_LDFLAGS='-L${LOCALBASE}/lib -lsass' +.endif + post-build: cd ${MODGO_WORKSPACE}/bin/ && ./hugo gen man Index: pkg/DESCR =================================================================== RCS file: /home/cvs/ports/www/hugo/pkg/DESCR,v retrieving revision 1.1.1.1 diff -u -p -r1.1.1.1 DESCR --- pkg/DESCR 11 Jun 2018 21:17:14 -0000 1.1.1.1 +++ pkg/DESCR 22 May 2020 07:56:30 -0000 @@ -4,3 +4,7 @@ Hugo takes a directory with content and them into a full HTML website. Hugo relies on Markdown files with front matter for metadata. + +Flavors: + extended - build hugo extended version with Sass/SCSS + support amongst others -- Paco Esteban. 0x5818130B8A6DBC03