Makefile.inc 1016 B

123456789101112131415161718192021222324252627282930313233343536
  1. # $OpenBSD: Makefile.inc,v 1.16 2016/08/19 19:09:34 jeremy Exp $
  2. DISTNAME ?= ruby-${VERSION}-p${PATCHLEVEL}
  3. CATEGORIES ?= lang
  4. HOMEPAGE ?= http://www.ruby-lang.org/
  5. MAINTAINER ?= Jeremy Evans <jeremy@openbsd.org>
  6. # GPL/Artistic/BSD/Public Domain/Beer-Ware
  7. PERMIT_PACKAGE_CDROM ?= Yes
  8. PERMIT_PACKAGE_FTP ?= Yes
  9. PERMIT_DISTFILES_FTP ?= Yes
  10. MASTER_SITES ?= http://cache.ruby-lang.org/pub/ruby/${VERSION:R}/
  11. CONFIGURE_STYLE ?= gnu
  12. CONFIGURE_ARGS += --enable-shared
  13. CONFIGURE_ENV += PREFIX="${PREFIX}" \
  14. CPPFLAGS="-DOPENSSL_NO_STATIC_ENGINE -I${LOCALBASE}/include" \
  15. LDFLAGS="-L${LOCALBASE}/lib"
  16. # Ruby itself is clean, but some extensions (e.g. devel/ruby-therubyracer)
  17. # need W|X mappings.
  18. USE_WXNEEDED ?= Yes
  19. REV ?= ${VERSION:R}
  20. SUB ?= ${MACHINE_ARCH:S/amd64/x86_64/}-openbsd
  21. SUBST_VARS += SUB REV
  22. FILESDIR ?= ${.CURDIR}/../files
  23. FIX_RBCONFIG ?= sed 's/INSTALL_ARGS/-c -o ${BINOWN} -g ${BINGRP}/' < \
  24. ${FILESDIR}/rbconfig_fix.rb >> \
  25. ${PREFIX}/lib/ruby/${RUBYLIBREV}/${SUB}/rbconfig.rb