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. Rafael > > Looks like they changed the name of the define in a newer version > of hugo. The following works for me. > > - todd > > Index: Makefile > =================================================================== > RCS file: /cvs/ports/www/hugo/Makefile,v > retrieving revision 1.20 > diff -u -p -u -r1.20 Makefile > --- Makefile 21 May 2020 16:37:44 -0000 1.20 > +++ Makefile 21 May 2020 20:48:23 -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 > >