summaryrefslogtreecommitdiff
path: root/misc/root/Makefile
blob: ae97067ed6042db5d1b48b04cc4d07f01bf55913 (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
# $NetBSD: Makefile,v 1.26 2006/05/18 20:30:00 wiz Exp $

DISTNAME=		root_v2.23.08.source
PKGNAME=		root-2.23
PKGREVISION=		1
CATEGORIES=		misc
MASTER_SITES=		ftp://root.cern.ch/root/

MAINTAINER=		drochner@NetBSD.org
HOMEPAGE=		http://root.cern.ch/
COMMENT=		OO framework for data analysis and visualisation

BROKEN_IN=		pkgsrc-2005Q4 pkgsrc-2006Q1

BUILD_DEPENDS+=		cint-5.14.40:../../lang/cint

WRKSRC=			${WRKDIR}
BUILDLINK_PASSTHRU_DIRS=${PREFIX}/root/lib
USE_TOOLS+=		gmake

BUILD_TARGET=		netbsd
MAKE_ENV+=		LD_LIBRARY_PATH=${WRKDIR:Q}/lib ROOTSYS=${WRKDIR:Q}

.if (${MACHINE_ARCH} == "arm")
BROKEN= 	Compilation stops due to internal compiler error
.endif

INSTALLATION_DIRS=	bin

do-configure:
	${CP} ${FILESDIR}/Makefile.netbsd ${WRKDIR}/src
	${MKDIR} ${WRKDIR}/bin
	${MKDIR} ${WRKDIR}/lib
	${CP} ${PREFIX}/cint/MAKEINFO ${WRKDIR}/cint
	${CP} ${PREFIX}/cint/include/iosenum.h ${WRKDIR}/cint/include

do-install:
	${INSTALL_DATA_DIR} ${PREFIX}/root
	${INSTALL_DATA_DIR} ${PREFIX}/root/include
	(cd ${WRKDIR}/src; ${CP} *.h MAIN_rmain.cxx ${PREFIX}/root/include)
	(cd ${WRKDIR}; tar cf - lib bin cint)|(cd ${PREFIX}/root;tar xf -)
	${SED} "s;XXXPREFIXXXX;${PREFIX};g" <${FILESDIR}/root.sh >${PREFIX}/bin/root
	${CHMOD} +x ${PREFIX}/bin/root

.include "../../graphics/xpm/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"