jca fadeb1002a Update to hugo-0.42
From Kevin Wondratsch (maintainer) + clue stick from sthen@
2018-06-14 11:57:19 +00:00

35 lines
684 B
Makefile

# $OpenBSD: Makefile,v 1.2 2018/06/14 11:57:19 jca Exp $
ONLY_FOR_ARCHS = ${GO_ARCHS}
COMMENT = fast and flexible static site generator
DISTNAME = hugo-0.42
CATEGORIES = www
HOMEPAGE = https://gohugo.io/
MAINTAINER = Kevin Wondratsch <bsd@kwondratsch.com>
#Apache License 2.0
PERMIT_PACKAGE_CDROM = Yes
WANTLIB += c pthread
MASTER_SITES = https://files.fairydust.space/
MODULES = lang/go
ALL_TARGET = github.com/gohugoio/hugo
SEPARATE_BUILD = Yes
post-build:
cd ${MODGO_WORKSPACE}/bin/ && ./hugo gen man
do-install:
${INSTALL_PROGRAM} ${MODGO_WORKSPACE}/bin/hugo ${PREFIX}/bin/
${INSTALL_MAN} ${MODGO_WORKSPACE}/bin/man/*.1 ${PREFIX}/man/man1/
.include <bsd.port.mk>