Makefile 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # $OpenBSD: Makefile,v 1.28 2017/05/31 08:08:16 espie Exp $
  2. COMMENT= free H.265/HEVC encoder
  3. VER= 2.4
  4. DISTNAME= x265_${VER}
  5. PKGNAME= x265-${VER}
  6. CATEGORIES= multimedia
  7. MASTER_SITES= https://ftp.videolan.org/pub/videolan/x265/
  8. SHARED_LIBS= x265 11.0
  9. HOMEPAGE= http://x265.org/
  10. MAINTAINER= Brad Smith <brad@comstyle.com>
  11. # GPLv2+
  12. PERMIT_PACKAGE_CDROM= patents
  13. PERMIT_PACKAGE_FTP= Yes
  14. WANTLIB= c m pthread ${LIBCXX}
  15. WRKSRC= ${WRKDIST}/source
  16. MODULES= devel/cmake
  17. COMPILER = clang
  18. MODCLANG_ARCHS= amd64 i386
  19. .if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386"
  20. BUILD_DEPENDS+= devel/yasm
  21. .endif
  22. SEPARATE_BUILD= Yes
  23. # Workaround for Clang 4.0
  24. #CONFIGURE_ARGS= -DENABLE_TESTS=On
  25. NO_TEST= Yes
  26. CONFIGURE_ARGS+= -DCMAKE_ASM_YASM_FLAGS_DEBUG="-g dwarf2"
  27. .if ${MACHINE_ARCH} == "aarch64" || ${MACHINE_ARCH} == "alpha" || \
  28. ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386" || \
  29. ${MACHINE_ARCH} == "mips64" || ${MACHINE_ARCH} == "mips64el" || \
  30. ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "sparc64"
  31. CONFIGURE_ARGS+= -DNO_ATOMICS=Off
  32. .else
  33. CONFIGURE_ARGS+= -DNO_ATOMICS=On
  34. .endif
  35. #do-test:
  36. # ${WRKBUILD}/test/TestBench
  37. .include <bsd.port.mk>