summaryrefslogtreecommitdiff
path: root/pkgtools/pkg_comp/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'pkgtools/pkg_comp/Makefile')
-rw-r--r--pkgtools/pkg_comp/Makefile46
1 files changed, 46 insertions, 0 deletions
diff --git a/pkgtools/pkg_comp/Makefile b/pkgtools/pkg_comp/Makefile
new file mode 100644
index 00000000000..97ee4ff704b
--- /dev/null
+++ b/pkgtools/pkg_comp/Makefile
@@ -0,0 +1,46 @@
+# $NetBSD: Makefile,v 1.57 2017/02/17 21:25:46 jmmv Exp $
+
+DISTNAME= pkg_comp-2.0
+CATEGORIES= sysutils
+MASTER_SITES= ${MASTER_SITE_GITHUB:=jmmv/}pkg_comp/releases/download/pkg_comp-2.0/
+
+MAINTAINER= jmmv@NetBSD.org
+COMMENT= Automates builds of packages and manages pkgsrc trees
+LICENSE= modified-bsd
+
+DEPENDS= sandboxctl>=1.0:../../sysutils/sandboxctl
+
+GNU_CONFIGURE= yes
+TEST_TARGET= check
+USE_LANGUAGES= # empty
+USE_TOOLS= pkg-config
+
+PKG_SYSCONFSUBDIR= pkg_comp
+CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
+CONFIGURE_ARGS+= PKG_COMP_CONFSUBDIR=
+INSTALL_MAKE_FLAGS+= pkg_comp_confdir=${EGDIR}
+EGDIR= ${PREFIX}/share/examples/pkg_comp
+CONF_FILES+= ${EGDIR}/default.conf ${PKG_SYSCONFDIR}/default.conf
+CONF_FILES+= ${EGDIR}/extra.mk.conf ${PKG_SYSCONFDIR}/extra.mk.conf
+CONF_FILES+= ${EGDIR}/sandbox.conf ${PKG_SYSCONFDIR}/sandbox.conf
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.pkg_comp
+PKG_SUPPORTED_OPTIONS= tests
+PKG_SUGGESTED_OPTIONS= tests
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mtests)
+. include "../../devel/atf/buildlink3.mk"
+PLIST_SUBST+= TESTS=
+.else
+CONFIGURE_ARGS+= --with-atf=no
+PLIST_SUBST+= TESTS=@comment
+
+post-install:
+ rm -rf "${PREFIX}/share/tests/pkg_comp"
+.endif
+
+BUILDLINK_API_DEPENDS.shtk+= shtk>=1.7
+.include "../../devel/shtk/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"