Makefile 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. # $OpenBSD: Makefile,v 1.38 2017/04/10 11:46:22 sthen Exp $
  2. COMMENT= virtual machine designed for interpreted languages
  3. V= 7.10.0
  4. DISTNAME= parrot-$V
  5. REVISION= 0
  6. CATEGORIES= lang perl6
  7. SHARED_LIBS= parrot 11.0
  8. HOMEPAGE= http://www.parrot.org/
  9. MASTER_SITES= http://ftp.parrot.org/releases/all/$V/ \
  10. ftp://ftp.parrot.org/pub/parrot/releases/all/$V/
  11. # Artistic2
  12. PERMIT_PACKAGE_CDROM= Yes
  13. WANTLIB += GL GLU c glut gmp icudata icuuc m ncurses pthread
  14. WANTLIB += readline ${LIBCXX} util z ffi
  15. MODULES = devel/gettext
  16. BUILD_DEPENDS= graphics/glew \
  17. devel/pcre
  18. LIB_DEPENDS= textproc/icu4c \
  19. devel/gmp \
  20. graphics/freeglut \
  21. devel/libffi
  22. TEST_DEPENDS= devel/p5-TAP-Harness-Multiple \
  23. devel/p5-Test-Perl-Critic
  24. CONFIGURE_SCRIPT= /usr/bin/perl Configure.pl
  25. CONFIGURE_STYLE= simple
  26. CONFIGURE_ARGS+= \
  27. --prefix="${PREFIX}" \
  28. --cc="${CC}" \
  29. --ccflags="-I${LOCALBASE}/include -I${X11BASE}/include -pthread" \
  30. --optimize="${CFLAGS}" \
  31. --link="${CXX}" \
  32. --linkflags="-L${LOCALBASE}/lib -L${X11BASE}/lib -pthread" \
  33. --ld="${CXX}" \
  34. --ldflags="-L${LOCALBASE}/lib -L${X11BASE}/lib" \
  35. --make="${MAKE_PROGRAM}" \
  36. --parrot_is_shared \
  37. --icu-config="${LOCALBASE}/bin/icu-config"
  38. CONFIGURE_ENV = LIBparrot_VERSION=${LIBparrot_VERSION}
  39. MAKE_ENV= LIBparrot_VERSION=${LIBparrot_VERSION}
  40. ALL_TARGET = all docs
  41. INSTALL_TARGET = install install-doc
  42. TEST_TARGET= fulltest
  43. SUBST_VARS += V
  44. pre-configure:
  45. ${SUBST_CMD} ${WRKSRC}/config/init/hints/openbsd.pm
  46. post-install:
  47. ${INSTALL_DATA} ${WRKSRC}/blib/lib/libparrot.so.${LIBparrot_VERSION} \
  48. ${PREFIX}/lib
  49. .include <bsd.port.mk>