Makefile 1009 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # $OpenBSD: Makefile,v 1.10 2017/06/01 12:06:29 sthen Exp $
  2. COMMENT = zstandard fast real-time compression algorithm
  3. GH_ACCOUNT = facebook
  4. GH_PROJECT = zstd
  5. GH_TAGNAME = v1.2.0
  6. CATEGORIES = archivers
  7. HOMEPAGE = https://facebook.github.io/zstd/
  8. MAINTAINER = Juan Francisco Cantero Hurtado <juanfra@openbsd.org>
  9. # BSD 3 clauses. zstd doesn't use known patented code or algorithms, however
  10. # the project includes an additional patent grant in the file PATENTS.
  11. # https://github.com/facebook/zstd/issues/335
  12. PERMIT_PACKAGE_CDROM = Yes
  13. WANTLIB = c pthread z
  14. COMPILER = gcc
  15. COMPILER_LANGS = c
  16. MAKE_ENV = CC="${CC}" CXX="${CXX}" \
  17. CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}"
  18. FAKE_FLAGS = PREFIX="${PREFIX}" MANDIR="${PREFIX}/man/man1"
  19. USE_GMAKE = Yes
  20. WRKSRC = ${WRKDIST}/programs
  21. ALL_TARGET = zstd
  22. TEST_TARGET = all test
  23. do-test:
  24. cd "${WRKDIST}/tests" && ${SETENV} ${ALL_TEST_ENV} ${MAKE_PROGRAM} \
  25. ${ALL_TEST_FLAGS} -f ${MAKE_FILE} ${TEST_TARGET} ${TEST_LOG}
  26. .include <bsd.port.mk>