blob: fe7d86fe457742e372c567d79adaeac4f7be1055 (
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
|
# $NetBSD: Makefile,v 1.25 2017/12/29 11:59:13 plunky Exp $
#
DISTNAME= pkg_select-20090308
PKGREVISION= 7
CATEGORIES= pkgtools
MASTER_SITES= ftp://ftp.NetBSD.org/pub/NetBSD/misc/imil/
MAINTAINER= imil@gcu.info
COMMENT= Curses based pkgsrc system browser / manager
LICENSE= original-bsd
USE_FEATURES= cdefs
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
INSTALLATION_DIRS+= ${EXAMPLEDIR} share/pkg_select
EXAMPLEDIR= ${PREFIX}/share/examples/${PKGBASE}
CONF_FILES= ${EXAMPLEDIR}/${PKGBASE}.conf.example \
${PKG_SYSCONFDIR}/${PKGBASE}.conf
.include "../../mk/compiler.mk"
.if !empty(PKGSRC_COMPILER:Mclang)
BUILDLINK_TRANSFORM+= rm:-Wno-traditional
.elif !empty(PKGSRC_COMPILER:Mgcc)
CFLAGS+= -Wno-error=unused-but-set-variable
.endif
SUBST_CLASSES+= path
SUBST_STAGE.path= pre-configure
SUBST_MESSAGE.path= Adjusting path.
SUBST_FILES.path= Makefile pkg_select.1 ${PKGBASE}.conf.example
SUBST_SED.path= -e "s|/usr/pkgsrc|${PKGSRCDIR}|g"
SUBST_SED.path+= -e "s|/usr/pkg/etc|${PKG_SYSCONFDIR}|g"
SUBST_SED.path+= -e "s|/usr/pkg/|${PREFIX}/|g"
SUBST_SED.path+= -e "s|/var/db/pkg|${PKG_DBDIR}|g"
SUBST_SED.path+= -e "s|/usr/bin/make|${MAKE}|g"
CFLAGS+= -DPKGTOOLS_PATH=\"${PKG_TOOLS_BIN}\"
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/pkg_select ${DESTDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/${PKGBASE}.conf.example \
${DESTDIR}${EXAMPLEDIR}
${INSTALL_DATA} ${WRKSRC}/mirrors.cvs \
${DESTDIR}${PREFIX}/share/pkg_select
${INSTALL_DATA} ${WRKSRC}/mirrors.ftp \
${DESTDIR}${PREFIX}/share/pkg_select
${INSTALL_MAN} ${WRKSRC}/pkg_select.1 \
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
.include "../../mk/curses.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|