blob: 8a18455284252fd24980d576612fa26030032b77 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# $NetBSD: Makefile.common,v 1.9 2018/12/15 21:12:24 wiz Exp $
# used by www/ap2-passenger/Makefile
# used by www/passenger/Makefile
DISTNAME= passenger-5.3.3
CATEGORIES= www
MASTER_SITES= http://s3.amazonaws.com/phusion-passenger/releases/
MAINTAINER?= fhajny@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"
MAKE_ENV+= LIBEV_EXTRA_ARGS=ac_cv_header_sys_inotify_h=no
.endif
pre-install:
${RM} -f ${WRKSRC}/src/ruby_supportlib/phusion_passenger/packaging.rb.orig \
${WRKSRC}/src/ruby_supportlib/phusion_passenger/platform_info/cxx_portability.rb.orig
.include "../../www/curl/buildlink3.mk"
.include "../../lang/ruby/modules.mk"
|