[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / benchmarks / libmicro

Annotation of pkgsrc/benchmarks/libmicro/Makefile, Revision 1.3

1.3     ! asau        1: # $NetBSD: Makefile,v 1.2 2010/01/25 00:35:48 zafer Exp $
1.1       jym         2: #
                      3:
                      4: DISTNAME=      libmicro-${LIBMICRO_VERSION}
                      5: CATEGORIES=    benchmarks
1.2       zafer       6: MASTER_SITES=  http://hub.opensolaris.org/bin/download/Project+libmicro/Source+Archives/
1.1       jym         7:
                      8: LIBMICRO_VERSION=      0.4.0
                      9:
                     10: MAINTAINER=    pkgsrc-users@NetBSD.org
                     11: HOMEPAGE=      http://hub.opensolaris.org/bin/view/Project+libmicro/
                     12: COMMENT=       Set of utilities to benchmark productivity of system calls
                     13:
                     14: LICENSE=       cddl-1.0
                     15:
                     16: WRKSRC=                ${WRKDIR}/libMicro-${LIBMICRO_VERSION}
                     17:
                     18: USE_TOOLS=     gmake tee
                     19: BUILD_TARGET=  default
                     20:
                     21: INSTALLATION_DIRS=     bin
                     22: INSTALLATION_DIRS+=    libexec/${PKGBASE}
                     23: INSTALLATION_DIRS+=    libexec/${PKGBASE}/bin
                     24: INSTALLATION_DIRS+=    libexec/${PKGBASE}/bin-${MACHINE_ARCH}
                     25:
                     26: LIBMICRO_BASE=         ${PREFIX}/libexec/${PKGBASE}
                     27:
                     28: SUBST_CLASSES+=                fix-arch
                     29: SUBST_MESSAGE.fix-arch=        Fix machine architecture path
                     30: SUBST_STAGE.fix-arch=  pre-configure
                     31: SUBST_FILES.fix-arch=  Makefile bench.sh wrapper.sh
                     32: SUBST_SED.fix-arch=    -e 's|@@MACHINE_ARCH@@|${MACHINE_ARCH:Q}|'
                     33:
                     34: post-build:
                     35:        ${SED}  -e 's|@@DESTDIR@@|${DESTDIR:Q}|'        \
                     36:                -e 's|@@PREFIX@@|${PREFIX:Q}|'          \
                     37:                -e 's|@@PKGBASE@@|${PKGBASE:Q}|'        \
                     38:                ${FILESDIR}/run-libmicro > ${WRKDIR}/run-libmicro
                     39:
                     40: do-install:
                     41:        cd ${WRKSRC}/bin;                                               \
                     42:        for f in *; do                                                  \
                     43:                ${INSTALL_PROGRAM} ${WRKSRC}/bin-${MACHINE_ARCH}/$$f    \
                     44:                    ${DESTDIR}${LIBMICRO_BASE}/bin-${MACHINE_ARCH};     \
                     45:        done
                     46:        cd ${DESTDIR}${LIBMICRO_BASE}/bin-${MACHINE_ARCH};              \
                     47:        for f in *; do                                                  \
                     48:                ${LN} -s ../wrapper ../bin/$$f;                         \
                     49:        done
                     50:        ${INSTALL_PROGRAM} ${WRKSRC}/bin-${MACHINE_ARCH}/exec_bin       \
                     51:                ${DESTDIR}${LIBMICRO_BASE}/bin-${MACHINE_ARCH}
                     52:        ${INSTALL_SCRIPT}  ${WRKSRC}/bench              \
                     53:                ${DESTDIR}${LIBMICRO_BASE}
                     54:        ${INSTALL_SCRIPT}  ${WRKSRC}/wrapper            \
                     55:                ${DESTDIR}${LIBMICRO_BASE}
                     56:        ${INSTALL_SCRIPT}  ${WRKSRC}/multiview          \
                     57:                ${DESTDIR}${PREFIX}/bin
                     58:        ${INSTALL_SCRIPT} ${WRKDIR}/run-libmicro        \
                     59:                ${DESTDIR}${PREFIX}/bin
                     60:
                     61: benchmark:
                     62:        cd ${WRKSRC}; ./bench | ${TEE} libmicro.output
                     63:
                     64: results:
                     65:        ${MKDIR} /tmp/benches/`domainname`
                     66:        cd ${WRKSRC}; \
                     67:        ./multiview libmicro.output > /tmp/benches/`domainname`/libmicro.`uname`-`uname -m`-`uname -r`.`hostname`.html
                     68:
                     69: .include "../../mk/pthread.buildlink3.mk"
                     70: .include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>