blob: c2dfb92b1ceec6c0d3fc08331bddf331c57e211d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
# $NetBSD: Makefile,v 1.113 2021/04/21 11:42:32 adam Exp $
DISTNAME= pkgin-20.12.1
PKGREVISION= 1
CATEGORIES= pkgtools
MASTER_SITES= ${MASTER_SITE_GITHUB:=NetBSDfr/}
GITHUB_TAG= v${PKGVERSION_NOREV}
MAINTAINER= jperkin@joyent.com
HOMEPAGE= http://pkgin.net/
COMMENT= Apt / yum like tool for managing pkgsrc binary packages
LICENSE= modified-bsd
EGDIR= ${PREFIX}/share/examples/${PKGBASE}
CONF_FILES= ${EGDIR}/repositories.conf.example \
${PKG_SYSCONFDIR}/${PKGBASE}/repositories.conf
OWN_DIRS+= ${PKG_SYSCONFDIR}/${PKGBASE}
OWN_DIRS+= ${VARBASE}/db/pkgin
INSTALLATION_DIRS+= bin ${PKGMANDIR}/man1 ${EGDIR}
BUILD_DEFS+= PKGIN_REPOSITORY_URL
BUILD_DEFS+= VARBASE
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --disable-maintainer-mode
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
CONFIGURE_ARGS+= --with-dbdir=${VARBASE}/db/pkgin
CONFIGURE_ARGS+= --with-machine-arch=${MACHINE_ARCH}
CONFIGURE_ARGS+= --with-pkg-install=${PKG_TOOLS_BIN}
CONFIGURE_ARGS+= --with-libarchive=${BUILDLINK_PREFIX.libarchive}
CONFIGURE_ARGS+= --with-libfetch=${BUILDLINK_PREFIX.libfetch}
CONFIGURE_ARGS+= --with-openssl=${BUILDLINK_PREFIX.openssl}
CONFIGURE_ARGS+= --with-sqlite3=${BUILDLINK_PREFIX.sqlite3}
USE_FEATURES= nbcompat
.include "../../mk/bsd.prefs.mk"
SUBST_CLASSES.NetBSD+= osrel
SUBST_STAGE.osrel= pre-configure
SUBST_MESSAGE.osrel= Adjusting repository OS release
SUBST_FILES.osrel= REPOSITORIES
SUBST_SED.osrel= -e "s|@OSREL@|${OS_VERSION:C/_.*//}|"
CFLAGS.SunOS+= -D_FILE_OFFSET_BITS=64
DEPENDS+= pkg_install>=20200701:../../pkgtools/pkg_install
# those have official repositories
.if !empty(PKGIN_REPOSITORY_URL)
pre-install:
${ECHO} ${PKGIN_REPOSITORY_URL} >> ${WRKSRC}/repositories.conf
.elif ${OPSYS} == "NetBSD" || ${OPSYS} == "DragonFly" || ${OPSYS} == "Minix"
pre-install:
${GREP} -i ${OPSYS} ${WRKSRC}/REPOSITORIES >> \
${WRKSRC}/repositories.conf
.endif
post-install:
${INSTALL_DATA} ${WRKSRC}/repositories.conf \
${DESTDIR}${EGDIR}/repositories.conf.example
${INSTALL_DATA} ${WRKSRC}/preferred.conf \
${DESTDIR}${EGDIR}/preferred.conf.example
.include "../../archivers/libarchive/buildlink3.mk"
.include "../../databases/sqlite3/buildlink3.mk"
.include "../../net/libfetch/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|