Keep -DPASSENGER_DEBUG flag for third-party passenger module. [*]

Other way respect CXXFLAGS.
Do not bump PORTREVISION.

[*] Notice from:	Hongli Lai aka hongli at plan99 dot net
This commit is contained in:
Sergey A. Osokin 2009-04-30 12:47:46 +00:00
parent 7537395615
commit 0023720563
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=232977

View file

@ -245,9 +245,6 @@ PASSENGER_VERSION= 2.2.2
MASTER_SITES+= RF/passenger/:passenger
DISTFILES+= passenger-${PASSENGER_VERSION}.tar.gz:passenger
CONFIGURE_ARGS+=--add-module=${WRKDIR}/passenger-${PASSENGER_VERSION}/ext/nginx
.if defined(WITH_DEBUG)
CFLAGS+= -DPASSENGER_DEBUG
.endif
.endif
.if defined(WITH_WWW)
@ -308,10 +305,9 @@ post-patch:
${PATCHDIR}/extra-patch-ngx_http_fancyindex_module.c
.endif
.if defined(WITH_PASSENGER_MODULE)
@${REINPLACE_CMD} 's!g++!${CXX}!; \
s!-DPASSENGER_DEBUG!${CXXFLAGS}!g' \
@${REINPLACE_CMD} 's!g++!${CXX}!' \
${WRKDIR}/passenger-${PASSENGER_VERSION}/Rakefile
@${REINPLACE_CMD} '376,377d; \
@${REINPLACE_CMD} '377s!-g!${CXXFLAGS}!; \
s!-lpthread!${PTHREAD_LIBS}!g' \
${WRKDIR}/passenger-${PASSENGER_VERSION}/lib/phusion_passenger/platform_info.rb
.endif