Skip to content

Commit

Permalink
www/rubygem-passenger: Fix build with llvm16
Browse files Browse the repository at this point in the history
- Pet portclippy

Sponsored by:	The FreeBSD Foundation
  • Loading branch information
5u623l20 committed Aug 6, 2023
1 parent 8967ed2 commit 4b1a54d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions www/rubygem-passenger/Makefile
Expand Up @@ -11,6 +11,9 @@ LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE

BUILD_DEPENDS= rake:devel/rubygem-rake
LIB_DEPENDS+= libuv.so:devel/libuv \
libcurl.so:ftp/curl \
libapr-1.so:devel/apr1

CPE_VENDOR= phusion
CPE_PRODUCT= passenger
Expand All @@ -35,12 +38,9 @@ USES+= apache

RAKE_BIN= ${LOCALBASE}/bin/rake
USES+= compiler:c++11-lang cpe gem libtool python:env shebangfix ssl
USE_CXXSTD= c++14
SHEBANG_FILES= src/cxx_supportlib/vendor-copy/libuv/gyp_uv.py

LIB_DEPENDS+= libuv.so:devel/libuv \
libcurl.so:ftp/curl \
libapr-1.so:devel/apr1

BUILD_DEPENDS+= rubygem-rack>=0:www/rubygem-rack
RUN_DEPENDS:= ${BUILD_DEPENDS} \
rubygem-etc>=0:devel/rubygem-etc
Expand Down Expand Up @@ -77,11 +77,11 @@ pre-patch-DEBUG-off:

post-build:
.if ${FLAVOR} == apache
(CC=${CC} CXX=${CXX} ${WRKSRC}/bin/passenger-install-apache2-module --auto)
(CC=${CC} CXX=${CXX} EXTRA_CXXFLAGS="${CXXFLAGS}" ${WRKSRC}/bin/passenger-install-apache2-module --auto)
.endif

.if ${FLAVOR} == nginx
(cd ${WRKSRC} && CC=${CC} CXX=${CXX} ${RAKE_BIN} nginx)
(cd ${WRKSRC} && CC=${CC} CXX=${CXX} EXTRA_CXXFLAGS="${CXXFLAGS}" ${RAKE_BIN} nginx)
.endif
${FIND} ${WRKSRC} -name '*.o' -o -name '*.bak' -o -name '*.orig' | ${XARGS} ${RM}

Expand Down

0 comments on commit 4b1a54d

Please sign in to comment.