b71a1d488b
example MAKE_ENV+=FOO=${BAR} is changed to MAKE_ENV+=FOO=${BAR:Q}. Some other changes are outlined in http://mail-index.netbsd.org/tech-pkg/2005/12/02/0034.html
56 lines
1.6 KiB
Makefile
56 lines
1.6 KiB
Makefile
# $NetBSD: Makefile,v 1.19 2005/12/05 20:50:24 rillig Exp $
|
|
|
|
DISTNAME= cint5.15
|
|
PKGNAME= cint-5.15.174
|
|
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
|
|
|
|
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
|
|
${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
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|