Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / pkgtools / nih / Makefile
blobda20a73083e3a43b6b6e6ede20a6a12f3acfadaf
1 # $NetBSD: Makefile,v 1.18 2012/09/11 23:19:35 asau Exp $
3 DISTNAME= pkgnih-0.11.0
4 PKGNAME= ${DISTNAME:S/pkgnih/nih/}
5 CATEGORIES= pkgtools
6 MASTER_SITES= ftp://ftp.NetBSD.org/pub/NetBSD/misc/cheusov/nih/ \
7 http://mova.org/~cheusov/pub/pkgnih/
9 MAINTAINER= cheusov@NetBSD.org
10 HOMEPAGE= https://github.com/cheusov/pkgnih
11 COMMENT= Package manager for pkgsrc
12 LICENSE= 2-clause-bsd
14 DEPENDS+= pkg_summary-utils>=0.60.0:../../pkgtools/pkg_summary-utils
15 DEPENDS+= digest-[0-9]*:../../pkgtools/digest
16 DEPENDS+= pkg_install>=20100915:../../pkgtools/pkg_install
18 BUILD_DEPENDS+= mk-configure>=0.21.0:../../devel/mk-configure
20 CONFLICTS= pkg_status-[0-9]*
21 SUPERSEDES= pkgnih-[0-9]*
23 BUILD_TARGET= all all-doc
24 INSTALL_TARGET= install install-doc
26 EGDIR= ${PREFIX}/share/examples/nih
28 CONF_FILES= ${EGDIR}/nih.conf \
29 ${PKG_SYSCONFDIR}/nih/config
31 MAKE_DIRS+= ${PKG_SYSCONFDIR}/nih
33 REPLACE_INTERPRETER+= runawk
34 REPLACE.runawk.old= .*runawk
35 REPLACE.runawk.new= ${PREFIX}/bin/runawk
36 REPLACE_FILES.runawk= nih/pkg_update_plan.in nih/cmp2hr.in \
37 nih/pkg_create_fake.in nih/analyse_conflicts.in
39 MAKE_ENV+= PKGSRCDIR=${PKGSRCDIR}
40 MAKE_ENV+= PACKAGES=${PACKAGES}
41 MAKE_ENV+= PKG_DBDIR=${PKG_DBDIR}
42 MAKE_ENV+= REAL_ROOT_USER=${REAL_ROOT_USER}
43 MAKE_ENV+= REAL_ROOT_GROUP=${REAL_ROOT_GROUP}
45 .include "../../mk/bsd.prefs.mk"
47 .if ${OPSYS} == NetBSD || ${OPSYS} == FreeBSD || ${OPSYS} == OpenBSD || \
48 ${OPSYS} == DragonFly || ${OPSYS} == MirBSD
49 FTP_CMD=/usr/bin/ftp
50 .else
51 FTP_CMD=${PREFIX}/bin/ftp
52 DEPENDS+= tnftp-[0-9]*:../../net/tnftp
53 .endif
55 MAKE_ENV+= FTP=${FTP_CMD:Q}
57 .if ${OPSYS} =="SunOS" #&& empty(OS_VERSION:M5.11*)
58 REPLACE_SH+= nih/nih.in nih/pkg_status.in
59 .endif
61 .include "../../devel/mk-configure/mk-c.mk"
62 .include "../../mk/bsd.pkg.mk"