Changeset View
Changeset View
Standalone View
Standalone View
Mk/Uses/autoreconf.mk
Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Lines | |||||
# Valid args: build Don't run autoreconf, only add build dependencies | # Valid args: build Don't run autoreconf, only add build dependencies | ||||
# | # | ||||
# MAINTAINER: portmgr@FreeBSD.org | # MAINTAINER: portmgr@FreeBSD.org | ||||
.if !defined(_INCLUDE_USES_AUTORECONF_MK) | .if !defined(_INCLUDE_USES_AUTORECONF_MK) | ||||
_INCLUDE_USES_AUTORECONF_MK= yes | _INCLUDE_USES_AUTORECONF_MK= yes | ||||
_USES_POST+= autoreconf | _USES_POST+= autoreconf | ||||
BUILD_DEPENDS+= autoconf>=2.69:devel/autoconf \ | |||||
automake>=1.16.1:devel/automake | |||||
.if defined(libtool_ARGS) && empty(libtool_ARGS:Mbuild) | |||||
BUILD_DEPENDS+= libtoolize:devel/libtool | |||||
.endif | |||||
AUTORECONF?= ${LOCALBASE}/bin/autoreconf | AUTORECONF?= ${LOCALBASE}/bin/autoreconf | ||||
AUTORECONF_WRKSRC?= ${WRKSRC} | AUTORECONF_WRKSRC?= ${WRKSRC} | ||||
.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 \ | |||||
automake>=1.16.1:devel/automake | |||||
.if defined(libtool_ARGS) && empty(libtool_ARGS:Mbuild) | |||||
BUILD_DEPENDS+= libtoolize:devel/libtool | |||||
.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 | ||||
Show All 13 Lines |