! ! Teach Mk/bsd.autocrap.mk about libtoolize so that it will be ! possible to directly bootstrap things as they come out of ! SCM systems - naked, virgin and untouched. ! ! PR: we should do a press release that autocrap is dead. ! Submitted by: no way I ever did that - my name is uid=65534. ! Reviewed by: noone wants to go near that crap! ! Approved by: what makes you think you want? ! Obtained from:a hard disk that almost died under autocrap. ! Index: Mk/bsd.autotools.mk =================================================================== RCS file: /mirror/FreeBSD/r/pcvs/ports/Mk/bsd.autotools.mk,v retrieving revision 1.32 diff -u -p -r1.32 bsd.autotools.mk --- Mk/bsd.autotools.mk 19 Aug 2009 02:26:27 -0000 1.32 +++ Mk/bsd.autotools.mk 24 Aug 2009 13:06:31 -0000 @@ -181,6 +181,11 @@ BUILD_DEPENDS+= ${AUTOCONF_DEPENDS} LIB_DEPENDS+= ltdl.7:${PORTSDIR}/devel/libltdl22 .endif +.if defined(AUTOTOOL_libtoolize) +AUTOTOOL_libtoolize_env= ${AUTOTOOL_libtoolize} +GNU_CONFIGURE?= yes +.endif + .if defined(AUTOTOOL_libtool) GNU_CONFIGURE?= YES AUTOTOOL_libtool_env= ${AUTOTOOL_libtool} @@ -230,7 +235,7 @@ AUTOTOOLS_ENV+= ${AUTOTOOLS_VARS} CONFIGURE_ENV+= ${AUTOTOOLS_VARS} MAKE_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) ${item:U}_ENV+= ${AUTOTOOLS_VARS} . endif @@ -249,10 +254,10 @@ ${item:U}_ENV+= ${AUTOTOOLS_VARS} # the order of autotools running. .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-autoconf run-autotools-automake + run-autotools-libtoolize run-autotools-autoconf run-autotools-automake .endif .if !target(run-autotools-aclocal) @@ -265,6 +270,16 @@ run-autotools-aclocal: . 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) run-autotools-automake: . if defined(AUTOTOOL_automake)