- Add ability to run libtoolize by defining USE_AUTOTOOLS=libtoolize in the port

PR:		ports/138139
Submitted by:	bz
This commit is contained in:
Pav Lucistnik 2010-04-05 20:36:46 +00:00
parent c41ff2d2df
commit e42a337bd9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=252268

View file

@ -182,6 +182,11 @@ BUILD_DEPENDS+= ${AUTOCONF_DEPENDS}
LIB_DEPENDS+= ltdl.7:${PORTSDIR}/devel/libltdl22 LIB_DEPENDS+= ltdl.7:${PORTSDIR}/devel/libltdl22
.endif .endif
.if defined(AUTOTOOL_libtoolize)
AUTOTOOL_libtoolize_env= ${AUTOTOOL_libtoolize}
GNU_CONFIGURE?= yes
.endif
.if defined(AUTOTOOL_libtool) .if defined(AUTOTOOL_libtool)
GNU_CONFIGURE?= YES GNU_CONFIGURE?= YES
AUTOTOOL_libtool_env= ${AUTOTOOL_libtool} AUTOTOOL_libtool_env= ${AUTOTOOL_libtool}
@ -231,7 +236,7 @@ AUTOTOOLS_ENV+= ${AUTOTOOLS_VARS}
CONFIGURE_ENV+= ${AUTOTOOLS_VARS} CONFIGURE_ENV+= ${AUTOTOOLS_VARS}
MAKE_ENV+= ${AUTOTOOLS_VARS} MAKE_ENV+= ${AUTOTOOLS_VARS}
SCRIPTS_ENV+= ${AUTOTOOLS_VARS} SCRIPTS_ENV+= ${AUTOTOOLS_VARS}
. for item in automake aclocal autoconf autoheader libtool . for item in automake aclocal autoconf autoheader libtool libtoolize
. if defined(AUTOTOOL_${item}_env) . if defined(AUTOTOOL_${item}_env)
${item:U}_ENV+= ${AUTOTOOLS_VARS} ${item:U}_ENV+= ${AUTOTOOLS_VARS}
. endif . endif
@ -250,10 +255,10 @@ ${item:U}_ENV+= ${AUTOTOOLS_VARS}
# the order of autotools running. # the order of autotools running.
.if !target(run-autotools) .if !target(run-autotools)
.ORDER: run-autotools run-autotools-aclocal patch-autotools run-autotools-autoheader run-autotools-autoconf run-autotools-automake .ORDER: run-autotools run-autotools-aclocal patch-autotools run-autotools-autoheader run-autotools-libtoolize run-autotools-autoconf run-autotools-automake
run-autotools:: run-autotools-aclocal patch-autotools run-autotools-autoheader \ run-autotools:: run-autotools-aclocal patch-autotools run-autotools-autoheader \
run-autotools-autoconf run-autotools-automake run-autotools-libtoolize run-autotools-autoconf run-autotools-automake
.endif .endif
.if !target(run-autotools-aclocal) .if !target(run-autotools-aclocal)
@ -266,6 +271,16 @@ run-autotools-aclocal:
. endif . endif
.endif .endif
.if !target(run-autotools-libtoolize)
run-autotools-libtoolize:
. if defined(AUTOTOOL_libtoolize)
@(cd ${CONFIGURE_WRKSRC} && ${SETENV} ${AUTOTOOLS_ENV} ${LIBTOOLIZE} \
${LIBTOOLIZE_ARGS})
. else
@${DO_NADA}
. endif
.endif
.if !target(run-autotools-automake) .if !target(run-autotools-automake)
run-autotools-automake: run-autotools-automake:
. if defined(AUTOTOOL_automake) . if defined(AUTOTOOL_automake)