summaryrefslogtreecommitdiff
path: root/devel/uno/Makefile
blob: 104ccba27be745b0f909aedc028c94027069a0d9 (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
# $NetBSD: Makefile,v 1.1 2005/11/15 20:55:47 shannonjr Exp $
#

DISTNAME=		uno_v28
CATEGORIES=		devel
MASTER_SITES=		http://spinroot.com/uno/

MAINTAINER=		shannonjr@NetBSD.org
HOMEPAGE=		http://spinroot.com/uno/
COMMENT=		Tool for source code analysis

WRKSRC=		${WRKDIR}/Uno/src

do-build:
	cd ${WRKSRC} && ${SETENV} ${BUILDENV} make -f makefile

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/uno ${PREFIX}/bin;	\
	${INSTALL_PROGRAM} ${WRKSRC}/uno_local ${PREFIX}/bin;	\
	${INSTALL_PROGRAM} ${WRKSRC}/uno_global ${PREFIX}/bin;	\
	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/uno;	\
	${INSTALL_DATA} ${WRKDIR}/Uno/doc/uno_long.pdf ${PREFIX}/share/doc/uno;	\
	${INSTALL_DATA} ${WRKDIR}/Uno/doc/uno_man.pdf ${PREFIX}/share/doc/uno;	\
	${INSTALL_DATA} ${WRKDIR}/Uno/doc/uno_manpage.pdf ${PREFIX}/share/doc/uno;	\
	${INSTALL_DATA} ${WRKDIR}/Uno/doc/uno_short.pdf ${PREFIX}/share/doc/uno;	\
	${INSTALL_MAN} ${WRKDIR}/Uno/doc/uno.1 ${PREFIX}/man/man1

USE_TOOLS+=	bison gmake flex

SUBST_CLASSES+=		prefix
SUBST_STAGE.prefix=	post-patch
SUBST_FILES.prefix=     makefile
SUBST_SED.prefix=       -e "s,/usr/bin,${PREFIX}/bin,g"
SUBST_MESSAGE.prefix=   "Fixing harcoded paths."

.include "../../mk/bsd.pkg.mk"