summaryrefslogtreecommitdiff
path: root/devel/dia2code/Makefile
blob: 83f8389fc901c40aa333243e2ef6b5b0ad87db8f (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
# $NetBSD: Makefile,v 1.3 2008/03/03 17:45:34 jlam Exp $
#

DISTNAME=		dia2code-0.8.1
CATEGORIES=		devel
MASTER_SITES=		${MASTER_SITE_SOURCEFORGE:=dia2code/}

MAINTAINER=		dprice@cs.nmsu.edu
HOMEPAGE=		http://dia2code.sourceforge.net/
COMMENT=		Small utility used to generate code from a Dia diagram

PKG_DESTDIR_SUPPORT=	user-destdir

GNU_CONFIGURE=		yes

SUBST_CLASSES+=		inc
SUBST_STAGE.inc=	post-configure
SUBST_FILES.inc=	Makefile */Makefile */*/Makefile */*/*/Makefile
SUBST_SED.inc=		-e 's:INCLUDES =:INCLUDES = -I${PREFIX}/include/libxml2/libxml :'

AUTO_MKDIRS=			yes

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/dia2code/dia2code ${DESTDIR}${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/dia2code.1 \
		${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/dia2code.1
	${INSTALL_DATA} ${WRKSRC}/README \
		${DESTDIR}${PREFIX}/share/doc/dia2code/README

.include "../../textproc/libxml2/buildlink3.mk"
.include "../../converters/libiconv/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"