1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

databases/galera: change USE_PYTHON to USE_PYTHON_BUILD

Also adjust RUN_DEPENDS and BUILD_DEPENDS and fix LD_LIBRARY_PATH

PR:		190364
Submitted by:	maintainer (Horia Racoviceanu)
This commit is contained in:
John Marino 2014-07-20 20:42:23 +00:00
parent 5da0c6ef16
commit 688b2e029a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=362369
2 changed files with 6 additions and 7 deletions

View File

@ -4,6 +4,7 @@
PORTNAME= galera
PORTVERSION= 25.3.5
DISTVERSIONSUFFIX= -src
PORTREVISION= 1
CATEGORIES= databases
MASTER_SITES= https://launchpadlibrarian.net/170877450/
@ -23,7 +24,7 @@ USES= scons shebangfix
USE_CXXSTD= c++11
USE_LDCONFIG= yes
USE_OPENSSL= yes
USE_PYTHON= yes
USE_PYTHON_BUILD= yes
MAKE_CMD= ${SCONS} -j${MAKE_JOBS_NUMBER} --config=force
@ -70,9 +71,11 @@ GARB_USE= RC_SUBR=garb
.if ${OSVERSION} > 1000000
BUILD_DEPENDS+= asio>=0:${PORTSDIR}/net/asio
RUN_DEPENDS:= ${BUILD_DEPENDS}
RUN_DEPENDS+= asio>=0:${PORTSDIR}/net/asio
SUB_LIST= LD_LIBRARY_PATH=$$LD_LIBRARY_PATH
.else
USE_GCC= yes
SUB_LIST= LD_LIBRARY_PATH=${LOCALBASE}/lib/${CC}:$$LD_LIBRARY_PATH
.endif
.if ${OSVERSION} < 900506
@ -91,10 +94,6 @@ MAKE_CMD+= bpostatic=${PREFIX}/lib/libboost_program_options.so
MAKE_CMD+= debug=3
.endif
.if ${PORT_OPTIONS:MGARB}
SUB_LIST= LD_LIBRARY_PATH=${LOCALBASE}/lib/${CC}:$$LD_LIBRARY_PATH
.endif
post-patch:
@${REINPLACE_CMD} -e '/-Werror/d' ${WRKSRC}/SConstruct

View File

@ -45,7 +45,7 @@ command_args="-c -f -u nobody -p $garb_pid_file $procname"
start_precmd="${name}_prestart"
start_postcmd="${name}_poststart"
stop_precmd="${name}_prestop"
export %%LD_LIBRARY_PATH%%
export LD_LIBRARY_PATH=%%LD_LIBRARY_PATH%%
garb_prestart()
{