Makefile 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. # $OpenBSD: Makefile,v 1.13 2017/06/05 10:17:41 ajacoutot Exp $
  2. ONLY_FOR_ARCHS= amd64 i386
  3. COMMENT= V8 JavaScript for clients and servers
  4. V8_VERSION= 3.12.19
  5. REVISION= 5
  6. EPOCH= 0
  7. V8_ARCH= ${MACHINE_ARCH:S/amd64/x64/:S/i386/ia32/}
  8. V8_RELEASE= release
  9. DISTNAME= v8-${V8_VERSION}
  10. PKGNAME= lib${DISTNAME}
  11. CATEGORIES= lang
  12. SHARED_LIBS= v8 0.0
  13. HOMEPAGE= https://bugs.chromium.org/p/v8/
  14. MAINTAINER= David Carlier <devnexen@gmail.com>
  15. # BSD
  16. PERMIT_PACKAGE_CDROM= Yes
  17. MASTER_SITES= http://deftly.net/
  18. BUILD_DEPENDS= devel/gyp
  19. LIB_DEPENDS= devel/libexecinfo
  20. WANTLIB += c execinfo m pthread ssl ${LIBCXX}
  21. USE_GMAKE= Yes
  22. CONFIGURE_STYLE= python.port.mk
  23. MODULES= lang/python
  24. USE_WXNEEDED= Yes
  25. SUBST_VARS+= WRKDIR
  26. SUBST_VARS+= V8_ARCH
  27. MAKE_FLAGS+= library=shared ARCHES=${V8_ARCH} MODES=${V8_RELEASE} \
  28. DEFAULT_ARCHES=${V8_ARCH}
  29. MAKE_ENV+= V=1 CXX="${CXX}" LINK="${CXX} ${LDFLAGS}" CCFLAGS+="${CFLAGS}" \
  30. CXXFLAGS="${CXXFLAGS} -I${WRKSRC}/src -I${LOCALBASE}/include" \
  31. LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib" \
  32. PATH=${WRKSRC}/bin:${PATH}
  33. NO_CCACHE= Yes
  34. TEST_TARGET= check
  35. pre-configure:
  36. @# Bad practice, but prevents a whole stack of patches.
  37. ln -sf ${LOCALBASE}/bin/python${MODPY_VERSION} ${WRKDIR}/bin/python
  38. ${SUBST_CMD} ${WRKDIST}/tools/gyp/v8.gyp ${WRKDIST}/Makefile
  39. do-install:
  40. cp -p ${WRKSRC}/include/*.h ${PREFIX}/include/
  41. cp -p ${WRKSRC}/out/${V8_ARCH}.${V8_RELEASE}/d8 ${PREFIX}/bin
  42. cp -p ${WRKSRC}/out/${V8_ARCH}.${V8_RELEASE}/lib.target/libv8.so.* \
  43. ${PREFIX}/lib/
  44. .include <bsd.port.mk>