summaryrefslogtreecommitdiff
path: root/devel/cdecl/Makefile
blob: bfc35242f8bc3a5fc9fe32dcd62e889d34b0c7aa (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
# $NetBSD: Makefile,v 1.32 2021/06/16 23:08:42 dholland Exp $

DISTNAME=	cdecl-2.5
PKGREVISION=	3
CATEGORIES=	devel
MASTER_SITES=	# ftp://ftp.netsw.org/softeng/lang/c/tools/cdecl/

MAINTAINER=	pkgsrc-users@NetBSD.org
COMMENT=	Utility to explain and compose C and C++ declarations

BUILD_TARGET=		cdecl
USE_TOOLS+=		lex yacc
INSTALL_MAKE_FLAGS=	PREFIX=${DESTDIR}${PREFIX} \
			MANDIR=${DESTDIR}${PREFIX}/${PKGMANDIR}/man1

EGDIR=			${PREFIX}/share/examples/cdecl
INSTALLATION_DIRS=	bin ${EGDIR} ${PKGMANDIR}/man1

post-install:
	${INSTALL_DATA} ${WRKSRC}/testset* ${DESTDIR}${EGDIR}

# missing rl_completion_matches
.include "../../devel/readline/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"