summaryrefslogtreecommitdiff
path: root/graphics/geomview/Makefile
blob: 2b5642e06be35d46d9982ebd684c62abe6ab2c42 (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
45
46
47
48
49
50
# $NetBSD: Makefile,v 1.40 2009/08/03 14:06:22 joerg Exp $

DISTNAME=		geomview-1.8.1
PKGREVISION=		6
CATEGORIES=		graphics math
MASTER_SITES=		${MASTER_SITE_SOURCEFORGE:=geomview/}

MAINTAINER=		pkgsrc-users@NetBSD.org
HOMEPAGE=		http://www.geomview.org/
COMMENT=		Interactive geometry viewing program

PKG_DESTDIR_SUPPORT=	user-destdir

MAKE_JOBS_SAFE=		no

USE_TOOLS+=		lex
USE_LANGUAGES=		c c++
USE_X11BASE=		yes
GNU_CONFIGURE=		yes

CONFIGURE_ARGS+=	--without-xforms
CONFIGURE_ARGS+=	--with-opengl=${BUILDLINK_PREFIX.Mesa}
CONFIGURE_ARGS+=	--with-motif=${MOTIFBASE:Q}
CPPFLAGS+=		-Dunix -Dalloca=__builtin_alloca
INFO_FILES=		# PLIST

INSTALLATION_DIRS=	share/doc/geomview share/examples/geomview \
			share/doc/html/geomview/pix

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

.if ${OPSYS} != "Linux"
CONFIGURE_ARGS+=	--enable-fstropen-1
.endif

post-install:
	${INSTALL_DATA} ${WRKSRC}/doc/geomview.pdf			\
	    ${DESTDIR}${PREFIX}/share/doc/geomview
	${INSTALL_DATA} ${WRKSRC}/doc/example*				\
	    ${DESTDIR}${PREFIX}/share/examples/geomview
	${INSTALL_DATA} ${WRKSRC}/doc/html/*.html 			\
	    ${DESTDIR}${PREFIX}/share/doc/html/geomview
	${INSTALL_DATA} ${WRKSRC}/doc/html/pix/*			\
	    ${DESTDIR}${PREFIX}/share/doc/html/geomview/pix

.include "../../graphics/MesaLib/buildlink3.mk"
.include "../../graphics/glu/buildlink3.mk"
.include "../../mk/motif.buildlink3.mk"

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