Changeset View
Changeset View
Standalone View
Standalone View
Mk/Uses/autoreconf.mk
Show First 20 Lines • Show All 59 Lines • ▼ Show 20 Lines | |||||
.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 | ||||
BUILD_DEPENDS+= autoconf>=2.69:devel/autoconf \ | BUILD_DEPENDS+= autoconf>=2.69:devel/autoconf \ | ||||
automake>=1.16.1:devel/automake | automake>=1.16.1:devel/automake | ||||
.if defined(libtool_ARGS) && empty(libtool_ARGS:Mbuild) | . if defined(libtool_ARGS) && empty(libtool_ARGS:Mbuild) | ||||
BUILD_DEPENDS+= libtoolize:devel/libtool | BUILD_DEPENDS+= libtoolize:devel/libtool | ||||
.endif | . endif | ||||
.if empty(autoreconf_ARGS) | . if empty(autoreconf_ARGS) | ||||
_USES_configure+= 470:do-autoreconf | _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 ${AUTORECONF_WRKSRC}/${f} || ${TOUCH} ${AUTORECONF_WRKSRC}/${f} | @test -e ${AUTORECONF_WRKSRC}/${f} || ${TOUCH} ${AUTORECONF_WRKSRC}/${f} | ||||
.endfor | . endfor | ||||
.if defined(_USE_GNOME) && ${_USE_GNOME:Mintltool} | . if defined(_USE_GNOME) && ${_USE_GNOME:Mintltool} | ||||
@(cd ${AUTORECONF_WRKSRC} && \ | @(cd ${AUTORECONF_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 ${AUTORECONF_WRKSRC} && ${AUTORECONF} -f -i) | @(cd ${AUTORECONF_WRKSRC} && ${AUTORECONF} -f -i) | ||||
.elif ! ${autoreconf_ARGS:Mbuild} | . elif ! ${autoreconf_ARGS:Mbuild} | ||||
IGNORE= Incorrect 'USES+=autoreconf:${autoreconf_ARGS}' expecting 'USES+=autoreconf[:build]' | IGNORE= Incorrect 'USES+=autoreconf:${autoreconf_ARGS}' expecting 'USES+=autoreconf[:build]' | ||||
.endif | . endif | ||||
.endif | .endif |