summaryrefslogtreecommitdiff
path: root/devel/uno/Makefile
blob: dfe038692b1c44605f6bece3ea0cc1935372d923 (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
# $NetBSD: Makefile,v 1.10 2007/09/10 15:19:16 xtraeme Exp $
#

DISTNAME=		uno_v212
PKGNAME=		uno-2.12
#PKGREVISION=		1
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
MAKE_FILE=		makefile

USE_TOOLS+=		bison

.include "../../mk/bsd.prefs.mk"

.if ${MACHINE_ARCH} == "i386"
BUILDLINK_TRANSFORM+=	rm:-m32
.endif

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}/${PKGMANDIR}/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 hardcoded paths.

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