summaryrefslogtreecommitdiff
path: root/lang/cint/Makefile
blob: be04d6f46e21b8817ed3b7516c2be64bd0db874b (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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# $NetBSD: Makefile,v 1.23 2006/11/09 11:12:06 rillig Exp $

DISTNAME=		cint5.15
PKGNAME=		cint-5.15.174
PKGREVISION=		1
CATEGORIES=		lang
MASTER_SITES=		ftp://root.cern.ch/root/
#MASTER_SITES=		${MASTER_SITE_BACKUP}

MAINTAINER=		drochner@NetBSD.org
HOMEPAGE=		http://root.cern.ch/root/Cint.html
COMMENT=		C/C++ interpreter

#same distribution file name for minor versions
DIST_SUBDIR=		${PKGNAME_NOREV}
WRKSRC=			${WRKDIR}
GCC_REQD+=		3.0
PTHREAD_OPTS+=	native
.include "../../mk/pthread.buildlink3.mk"
.if defined(PTHREAD_TYPE) && ${PTHREAD_TYPE} == "native"
PLIST_SUBST+= HAVE_THR=""
.else
PLIST_SUBST+= HAVE_THR="@comment "
.endif

INSTALLATION_DIRS=	bin ${PKGMANDIR}/man1 ${PKGMANDIR}/man2
INSTALLATION_DIRS+=	${PKGMANDIR}/man3
USE_LANGUAGES=		c c++
CHECK_PORTABILITY_SKIP+=	INSTALLBIN

post-extract:
	${FIND} -d ${WRKSRC} -type d -name CVS -exec ${RM} -rf {} \;
	${FIND} ${WRKSRC} -type f -name .cvsignore -exec ${RM} -f {} \;

do-build:
	cd ${WRKDIR};						\
	case ${OPSYS} in					\
	NetBSD)							\
		${SH} ./setup platform/netbsd ;;		\
	SunOS)							\
		${SH} ./setup platform/solaris_gcc ;;		\
	*)							\
		${ECHO} 'not yet ported to ${OPSYS}'; exit 1 ;;	\
	esac

do-install:
	${INSTALL_DATA_DIR} ${PREFIX}/cint
	${INSTALL_PROGRAM} ${WRKDIR}/cint ${PREFIX}/cint
	${INSTALL_PROGRAM} ${WRKDIR}/makecint ${PREFIX}/cint
	${SED} "s;XXXPREFIXXXX;${PREFIX};g" <${FILESDIR}/cint.sh >${PREFIX}/bin/cint
	${CHMOD} +x ${PREFIX}/bin/cint
	rm -f ${PREFIX}/bin/makecint
	${LN} ${PREFIX}/bin/cint ${PREFIX}/bin/makecint
	${INSTALL_DATA} ${WRKDIR}/MAKEINFO ${PREFIX}/cint
	${CP} -r ${WRKDIR}/include ${WRKDIR}/stl ${PREFIX}/cint
	${RM} ${PREFIX}/cint/include/Makeit ${PREFIX}/cint/include/make*
	${INSTALL_DATA_DIR} ${PREFIX}/cint/lib
	${CP} -r ${WRKDIR}/lib/prec_stl ${PREFIX}/cint/lib
	${INSTALL_DATA} ${WRKDIR}/G__ci.h ${PREFIX}/cint
	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/cint
	${INSTALL_DATA} ${WRKSRC}/doc/bytecode.txt ${PREFIX}/share/doc/cint
	${INSTALL_DATA} ${WRKSRC}/doc/cint.txt ${PREFIX}/share/doc/cint
	${INSTALL_DATA} ${WRKSRC}/doc/cintapi.txt ${PREFIX}/share/doc/cint
	${INSTALL_DATA} ${WRKSRC}/doc/extlib.txt ${PREFIX}/share/doc/cint
	${INSTALL_DATA} ${WRKSRC}/doc/ifdef.txt ${PREFIX}/share/doc/cint
	${INSTALL_DATA} ${WRKSRC}/doc/limitati.txt ${PREFIX}/share/doc/cint
	${INSTALL_DATA} ${WRKSRC}/doc/limitnum.txt ${PREFIX}/share/doc/cint
	${INSTALL_DATA} ${WRKSRC}/doc/makecint.txt ${PREFIX}/share/doc/cint
	${INSTALL_DATA} ${WRKSRC}/doc/message.txt ${PREFIX}/share/doc/cint
	${INSTALL_DATA} ${WRKSRC}/doc/ref.txt ${PREFIX}/share/doc/cint
	${INSTALL_MAN} ${WRKSRC}/doc/man1/cint.1 ${PREFIX}/${PKGMANDIR}/man1
	${INSTALL_MAN} ${WRKSRC}/doc/man1/makecint.1 ${PREFIX}/${PKGMANDIR}/man1
	${INSTALL_MAN} ${WRKSRC}/doc/man2/garbage.2 ${PREFIX}/${PKGMANDIR}/man2
	${INSTALL_MAN} ${WRKSRC}/doc/man2/security.2 ${PREFIX}/${PKGMANDIR}/man2
	${INSTALL_MAN} ${WRKSRC}/doc/man2/unique.2 ${PREFIX}/${PKGMANDIR}/man2
	${INSTALL_MAN} ${WRKSRC}/doc/man3/array.h.3 ${PREFIX}/${PKGMANDIR}/man3
	${INSTALL_MAN} ${WRKSRC}/doc/man3/fft.h.3 ${PREFIX}/${PKGMANDIR}/man3
	${INSTALL_MAN} ${WRKSRC}/doc/man3/statistics.h.3 ${PREFIX}/${PKGMANDIR}/man3

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