~cypheon/pkgsrc-wip

pkgsrc-wip/cfiles/Makefile -rw-r--r-- 1.2 KiB
5f1bf4f5 — Johann Rudloff Subst PLIST paths for platform specific files for other architectures 6 months ago
                                                                                
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
# $NetBSD$

GITHUB_PROJECT=	cfiles
DISTNAME=	v1.3
PKGNAME=	${GITHUB_PROJECT}-${DISTNAME}
CATEGORIES=	sysutils
MASTER_SITES=	${MASTER_SITE_GITHUB:=mananapr/}
DIST_SUBDIR=	${GITHUB_PROJECT}

MAINTAINER=	nikita@NetBSD.org
HOMEPAGE=	https://github.com/mananapr/cfiles/
COMMENT=	Ncurses file manager written in C with vim like keybindings
LICENSE=	mit

DEPENDS=	fzf-[0-9]*:../../sysutils/fzf

USE_LANGUAGES=	c

WRKSRC=	${WRKDIR}/cfiles-1.3

INSTALLATION_DIRS=	bin ${PKGMANDIR}/man1

SUBST_CLASSES+=		gcc
SUBST_STAGE.gcc=	pre-configure
SUBST_FILES.gcc+=	Makefile
SUBST_SED.gcc+=		-e 's|CC = gcc|CC = cc|g'

SUBST_CLASSES+=		ncurses
SUBST_STAGE.ncurses=	pre-configure
SUBST_MESSAGE.ncurses=	Link with the proper curses type
SUBST_FILES.ncurses=	Makefile
SUBST_SED.ncurses=	-e 's|LIBS =  -lncursesw|LIBS = -l${BUILDLINK_LIBNAME.curses}|g'

SUBST_CLASSES+=		install
SUBST_STAGE.install=	pre-configure
SUBST_FILES.install=	Makefile
SUBST_SED.install+=	-e 's|DEST = /usr/local|DEST = ${DESTDIR}${PREFIX}|g'
SUBST_SED.install+=	-e 's|cp -v|${INSTALL_PROGRAM}|g'

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/cfiles ${DESTDIR}${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/cfiles.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1

.include "../../mk/curses.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"