pkgsrc/www/passenger/Makefile.common
taca 997baf1906 www/passenger: Ruby 3.2 compatibility
Add Ruby 3.2 compatibility fix.

Bump PKGREVISION.
2023-01-19 15:46:29 +00:00

57 lines
1.8 KiB
Makefile

# $NetBSD: Makefile.common,v 1.13 2023/01/19 15:46:29 taca Exp $
# used by www/ap2-passenger/Makefile
# used by www/passenger/Makefile
DISTNAME= passenger-5.3.7
CATEGORIES= www
MASTER_SITES= http://s3.amazonaws.com/phusion-passenger/releases/
MAINTAINER?= pkgsrc-users@NetBSD.org
HOMEPAGE= https://www.phusionpassenger.com/
LICENSE= mit
USE_LANGUAGES= c c++
PATCHDIR= ${.CURDIR}/../../www/passenger/patches
DISTINFO_FILE= ${.CURDIR}/../../www/passenger/distinfo
.include "../../mk/bsd.prefs.mk"
PKG_SYSCONFSUBDIR= passenger
REPLACE_RUBY= bin/passenger
REPLACE_RUBY+= bin/passenger-config
REPLACE_RUBY+= bin/passenger-install-apache2-module
REPLACE_RUBY+= bin/passenger-install-nginx-module
REPLACE_RUBY+= bin/passenger-memory-stats
REPLACE_RUBY+= bin/passenger-status
REPLACE_RUBY+= src/helper-scripts/*.rb
REPLACE_RUBY+= src/helper-scripts/prespawn
CHECK_INTERPRETER_SKIP+= share/passenger/helper-scripts/wsgi-loader.py
CHECK_INTERPRETER_SKIP+= share/passenger/node/vendor-copy/winston/node_modules/async/support/sync-package-managers.js
SUBST_CLASSES+= dir
SUBST_STAGE.dir= pre-configure
SUBST_MESSAGE.dir= Fixing installation directories
SUBST_FILES.dir= src/ruby_supportlib/phusion_passenger.rb
SUBST_FILES.dir+= src/ruby_supportlib/phusion_passenger/platform_info/cxx_portability.rb
SUBST_VARS.dir= PKG_SYSCONFDIR PREFIX
MAKE_ENV+= EXTRA_LDFLAGS=${COMPILER_RPATH_FLAG}${PREFIX}/lib
.if ${OPSYS} == "SunOS"
BUILDLINK_TRANSFORM+= rm:${PREFIX}/lib/libiconv.la
BUILDLINK_TRANSFORM+= rm:${PREFIX}/lib/libintl.la
MAKE_ENV+= LIBEV_EXTRA_ARGS=ac_cv_header_sys_inotify_h=no
.endif
pre-install:
cd ${WRKSRC}/src/ruby_supportlib/phusion_passenger && \
${RM} -f packaging.rb.orig \
platform_info/cxx_portability.rb.orig \
platform_info/operating_system.rb.orig
.include "../../www/curl/buildlink3.mk"
.include "../../lang/ruby/modules.mk"