pkgsrc/sysutils/s6/Makefile

40 lines
1.3 KiB
Makefile

# $NetBSD: Makefile,v 1.12 2022/08/17 12:11:17 tnn Exp $
DISTNAME= s6-2.11.1.0
CATEGORIES= sysutils
MASTER_SITES= ${HOMEPAGE}
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${MANPAGES_DIST}
MAINTAINER= charlotte@NetBSD.org
HOMEPAGE= https://skarnet.org/software/s6/
COMMENT= The s6 supervision suite
LICENSE= isc
# man-pages version is usually not exactly in-sync with PKGVERSION_NOREV
MANPAGES_VERSION= 2.11.1.0.1
MANPAGES_DIST= s6-man-pages-${MANPAGES_VERSION}.tar.gz
SITES.${MANPAGES_DIST}= -${MASTER_SITE_GITHUB:=flexibeast/s6-man-pages/archive/}v${MANPAGES_VERSION}.tar.gz
USE_TOOLS+= gmake
HAS_CONFIGURE= yes
CONFIGURE_ARGS+= --prefix=${PREFIX}
CONFIGURE_ARGS+= --with-sysdeps=${PREFIX}/lib/skalibs/sysdeps
CONFIGURE_ARGS+= --with-lib=${PREFIX}/lib/execline
CONFIGURE_ARGS+= --with-lib=${PREFIX}/lib/skalibs
CONFIGURE_ARGS+= --with-include=${PREFIX}/include
INSTALLATION_DIRS+= ${PKGMANDIR}/man7 ${PKGMANDIR}/man8
.PHONY: do-install-manpages
post-install: do-install-manpages
do-install-manpages:
cd ${WRKDIR}/${PKGBASE}-man-pages-*; for i in 7 8; do \
for j in man$$i/*.$$i; do \
${INSTALL_MAN} $$j \
${DESTDIR}${PREFIX}/${PKGMANDIR}/man$$i; \
done \
done
.include "../../devel/skalibs/buildlink3.mk"
.include "../../lang/execline/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"