Makefile 821 B

1234567891011121314151617181920212223242526272829303132333435
  1. # $OpenBSD: Makefile,v 1.36 2017/04/19 23:44:13 jca Exp $
  2. COMMENT= network performance benchmark
  3. DISTNAME= netperf-2.7.0
  4. REVISION= 1
  5. CATEGORIES= benchmarks net
  6. HOMEPAGE= http://www.netperf.org/netperf/
  7. # "for non-commercial purposes only"; see COPYING
  8. PERMIT_PACKAGE_CDROM= No
  9. PERMIT_PACKAGE_FTP= Yes
  10. WANTLIB += c m
  11. MASTER_SITES= ftp://ftp.netperf.org/netperf/ \
  12. ftp://ftp.netperf.org/netperf/archive/
  13. AUTOCONF_VERSION= 2.68
  14. CONFIGURE_STYLE= autoconf
  15. CONFIGURE_ARGS= --enable-demo
  16. SEPARATE_BUILD= Yes
  17. E= ${PREFIX}/share/examples/netperf
  18. post-install:
  19. ${INSTALL_DATA_DIR} $E
  20. ${INSTALL_SCRIPT} ${WRKSRC}/doc/examples/*script $E
  21. perl -pi -e 's,(/opt/netperf2/bin|/usr/local/bin|/opt/netperf/netperf),${TRUEPREFIX}/bin,;' \
  22. -e 's,^NETHOME=.*,NETHOME=${TRUEPREFIX}/bin,;' $E/*
  23. .include <bsd.port.mk>