Changeset View
Changeset View
Standalone View
Standalone View
head/Mk/Uses/autoreconf.mk
| Show First 20 Lines • Show All 64 Lines • ▼ Show 20 Lines | |||||
| .endif | .endif | ||||
| .endif | .endif | ||||
| .if defined(_POSTMKINCLUDED) && !defined(_INCLUDE_USES_AUTORECONF_POST_MK) | .if defined(_POSTMKINCLUDED) && !defined(_INCLUDE_USES_AUTORECONF_POST_MK) | ||||
| _INCLUDE_USES_AUTORECONF_POST_MK= yes | _INCLUDE_USES_AUTORECONF_POST_MK= yes | ||||
| .if ! ${autoreconf_ARGS:Mbuild} | .if ! ${autoreconf_ARGS:Mbuild} | ||||
| _USES_configure+= 470:do-autoreconf | |||||
| do-autoreconf: | do-autoreconf: | ||||
| .for f in AUTHORS ChangeLog INSTALL NEWS README | .for f in AUTHORS ChangeLog INSTALL NEWS README | ||||
| # Don't modify time stamps if the files already exist | # Don't modify time stamps if the files already exist | ||||
| @test -e ${CONFIGURE_WRKSRC}/${f} || ${TOUCH} ${CONFIGURE_WRKSRC}/${f} | @test -e ${CONFIGURE_WRKSRC}/${f} || ${TOUCH} ${CONFIGURE_WRKSRC}/${f} | ||||
| .endfor | .endfor | ||||
| .if defined(_USE_GNOME) && ${_USE_GNOME:Mintltool} | .if defined(_USE_GNOME) && ${_USE_GNOME:Mintltool} | ||||
| @(cd ${CONFIGURE_WRKSRC} && \ | @(cd ${CONFIGURE_WRKSRC} && \ | ||||
| if test -f configure.ac; then configure=configure.ac; \ | if test -f configure.ac; then configure=configure.ac; \ | ||||
| else configure=configure.in; fi && \ | else configure=configure.in; fi && \ | ||||
| if ${EGREP} -q '^(AC|IT)_PROG_INTLTOOL' $${configure}; \ | if ${EGREP} -q '^(AC|IT)_PROG_INTLTOOL' $${configure}; \ | ||||
| then ${LOCALBASE}/bin/intltoolize -f -c; fi) | then ${LOCALBASE}/bin/intltoolize -f -c; fi) | ||||
| .endif | .endif | ||||
| @(cd ${CONFIGURE_WRKSRC} && ${LOCALBASE}/bin/autoreconf -f -i) | @(cd ${CONFIGURE_WRKSRC} && ${LOCALBASE}/bin/autoreconf -f -i) | ||||
| .endif | .endif | ||||
| .endif | .endif | ||||