summaryrefslogtreecommitdiff
path: root/devel/cqual/Makefile
blob: 11ec458c661fa08af384bcb4de7d80ff226dd01f (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
# $NetBSD: Makefile,v 1.31 2020/08/31 18:07:18 wiz Exp $

DISTNAME=		cqual-0.991
PKGREVISION=		18
CATEGORIES=		devel
MASTER_SITES=		${MASTER_SITE_SOURCEFORGE:=cqual/}

MAINTAINER=		pkgsrc-users@NetBSD.org
HOMEPAGE=		http://www.cs.umd.edu/~jfoster/cqual/
COMMENT=		Tool for adding type qualifiers to C

MAKE_JOBS_SAFE=		no
USE_PKGLOCALEDIR=	yes
GNU_CONFIGURE=		yes
USE_TOOLS+=		gmake perl:run bison m4

REPLACE_PERL+=		bin/*
INFO_FILES=		yes

BUILDLINK_TRANSFORM=	rm:-Werror
INSTALLATION_DIRS=	share/doc/cqual share/examples/cqual

.include "options.mk"

# These files used to be generated by an Emacs LISP file.
# That file needed to be patched for Emacs 24 (see patch-src_build-basics_el
# and patch-src_build-types_el), and with Emacs > 24 it doesn't work at all.
# All generated types became nil, which led to compile errors.
post-patch:
	cd ${FILESDIR} && ${CP} *.c ${WRKSRC}/src
	cd ${WRKSRC}/src && ${TOUCH} AST_defs.h AST_types.h

.if ${OPSYS} == "SunOS" && ${OS_VERSION} == "5.8"
pre-build:
	${ECHO} "/* empty dummy header */" > ${BUILDLINK_DIR:Q}/include/stdint.h
.endif

post-install:
	${INSTALL_DATA} ${WRKSRC:Q}/doc/user-guide.pdf ${DESTDIR}${PREFIX}/share/doc/cqual/
	${INSTALL_DATA} ${WRKSRC:Q}/examples/* ${DESTDIR}${PREFIX}/share/examples/cqual/

.include "../../editors/emacs/modules.mk"
.include "../../mk/bsd.pkg.mk"