clean-up spacing
This commit is contained in:
parent
b892c8446d
commit
8fb5e71cef
@ -1,52 +1,53 @@
|
||||
#-*- mode: Fundamental; tab-width: 4; -*-
|
||||
# ex:ts=4 sw=4 filetype=make:
|
||||
# $OpenBSD: gnu.port.mk,v 1.30 2006/11/23 16:31:46 kili Exp $
|
||||
# $OpenBSD: gnu.port.mk,v 1.31 2006/12/02 00:10:24 espie Exp $
|
||||
# Based on bsd.port.mk, originally by Jordan K. Hubbard.
|
||||
# This file is in the public domain.
|
||||
|
||||
MODGNU_AUTOCONF_DEPENDS= ::devel/metaauto \
|
||||
:autoconf-${AUTOCONF_VERSION}:devel/autoconf/${AUTOCONF_VERSION}
|
||||
MODGNU_AUTOMAKE_DEPENDS= ::devel/metaauto \
|
||||
:automake-${AUTOMAKE_VERSION}.*:devel/automake/${AUTOMAKE_VERSION}
|
||||
MODGNU_AUTOCONF_DEPENDS = ::devel/metaauto \
|
||||
:autoconf-${AUTOCONF_VERSION}:devel/autoconf/${AUTOCONF_VERSION}
|
||||
MODGNU_AUTOMAKE_DEPENDS = ::devel/metaauto \
|
||||
:automake-${AUTOMAKE_VERSION}.*:devel/automake/${AUTOMAKE_VERSION}
|
||||
|
||||
.if ${CONFIGURE_STYLE:L:Mautomake}
|
||||
AUTOMAKE_VERSION?= 1.4
|
||||
BUILD_DEPENDS+= ${MODGNU_AUTOMAKE_DEPENDS}
|
||||
MAKE_ENV+= AUTOMAKE_VERSION=${AUTOMAKE_VERSION}
|
||||
AUTOMAKE_VERSION ?= 1.4
|
||||
BUILD_DEPENDS += ${MODGNU_AUTOMAKE_DEPENDS}
|
||||
MAKE_ENV += AUTOMAKE_VERSION=${AUTOMAKE_VERSION}
|
||||
.endif
|
||||
.if ${CONFIGURE_STYLE:L:Mautoupdate}
|
||||
CONFIGURE_STYLE+=autoconf
|
||||
CONFIGURE_STYLE += autoconf
|
||||
.endif
|
||||
|
||||
.if ${CONFIGURE_STYLE:L:Mautoconf}
|
||||
AUTOCONF_VERSION?= 2.13
|
||||
BUILD_DEPENDS+= ${MODGNU_AUTOCONF_DEPENDS}
|
||||
AUTOCONF?= autoconf
|
||||
AUTOUPDATE?= autoupdate
|
||||
AUTOHEADER?= autoheader
|
||||
AUTOCONF_DIR?=${WRKSRC}
|
||||
AUTOCONF_VERSION ?= 2.13
|
||||
BUILD_DEPENDS += ${MODGNU_AUTOCONF_DEPENDS}
|
||||
AUTOCONF ?= autoconf
|
||||
AUTOUPDATE ?= autoupdate
|
||||
AUTOHEADER ?= autoheader
|
||||
AUTOCONF_DIR ?= ${WRKSRC}
|
||||
# missing ?= not an oversight
|
||||
AUTOCONF_ENV=PATH=${PORTPATH} AUTOCONF_VERSION=${AUTOCONF_VERSION}
|
||||
MAKE_ENV+=AUTOCONF_VERSION=${AUTOCONF_VERSION}
|
||||
AUTOCONF_ENV = PATH=${PORTPATH} AUTOCONF_VERSION=${AUTOCONF_VERSION}
|
||||
MAKE_ENV += AUTOCONF_VERSION=${AUTOCONF_VERSION}
|
||||
. if !${CONFIGURE_STYLE:L:Mno-autoheader}
|
||||
CONFIGURE_STYLE+=autoheader
|
||||
CONFIGURE_STYLE += autoheader
|
||||
. endif
|
||||
.endif
|
||||
.if !defined(CONFIG_SITE)
|
||||
CONFIG_SITE=${PORTSDIR}/infrastructure/db/config.site
|
||||
CONFIG_SITE = ${PORTSDIR}/infrastructure/db/config.site
|
||||
. if ${USE_X11:L} == "yes"
|
||||
CONFIG_SITE+=${PORTSDIR}/infrastructure/db/config.x11.site
|
||||
CONFIG_SITE += ${PORTSDIR}/infrastructure/db/config.x11.site
|
||||
. endif
|
||||
.endif
|
||||
.if !empty(CONFIG_SITE)
|
||||
CONFIGURE_ENV+=CONFIG_SITE='${CONFIG_SITE}'
|
||||
CONFIGURE_ENV += CONFIG_SITE='${CONFIG_SITE}'
|
||||
.endif
|
||||
|
||||
MODGNU_CONFIG_GUESS_DIRS?=${WRKSRC}
|
||||
MODGNU_SAVE_CACHE?= No
|
||||
MODGNU_SAVE_CACHE_LOCATION=${PORTSDIR}/config
|
||||
MODGNU_CONFIG_GUESS_DIRS ?=${WRKSRC}
|
||||
MODGNU_SAVE_CACHE ?= No
|
||||
MODGNU_SAVE_CACHE_LOCATION =${PORTSDIR}/config
|
||||
|
||||
MODGNU_configure = for d in ${MODGNU_CONFIG_GUESS_DIRS}; do \
|
||||
MODGNU_configure = for d in ${MODGNU_CONFIG_GUESS_DIRS}; \
|
||||
do \
|
||||
cp -f ${PORTSDIR}/infrastructure/db/config.guess $$d; \
|
||||
chmod a+rx $$d/config.guess; \
|
||||
cp -f ${PORTSDIR}/infrastructure/db/config.sub $$d; \
|
||||
@ -61,57 +62,58 @@ MODGNU_configure += ; mkdir -p ${MODGNU_SAVE_CACHE_LOCATION}; \
|
||||
|
||||
.if ${CONFIGURE_STYLE:L:Mgnu}
|
||||
. if ${MODGNU_SAVE_CACHE:L} == "yes"
|
||||
CONFIGURE_ARGS+=--cache-file=${WRKBUILD}/config.cache
|
||||
CONFIGURE_ARGS += --cache-file=${WRKBUILD}/config.cache
|
||||
. endif
|
||||
. if ${CONFIGURE_STYLE:L:Mdest}
|
||||
CONFIGURE_ARGS+= --prefix='$${${DESTDIRNAME}}${PREFIX}'
|
||||
CONFIGURE_ARGS += --prefix='$${${DESTDIRNAME}}${PREFIX}'
|
||||
. else
|
||||
CONFIGURE_ARGS+= --prefix='${PREFIX}'
|
||||
CONFIGURE_ARGS += --prefix='${PREFIX}'
|
||||
. endif
|
||||
|
||||
. if empty(CONFIGURE_STYLE:L:Mold)
|
||||
. if ${CONFIGURE_STYLE:L:Mdest}
|
||||
CONFIGURE_ARGS+= --sysconfdir='$${${DESTDIRNAME}}${SYSCONFDIR}' \
|
||||
--mandir='$${${DESTDIRNAME}}${PREFIX}/man' \
|
||||
--infodir='$${${DESTDIRNAME}}${PREFIX}/info'
|
||||
CONFIGURE_ARGS += --sysconfdir='$${${DESTDIRNAME}}${SYSCONFDIR}'
|
||||
CONFIGURE_ARGS += --mandir='$${${DESTDIRNAME}}${PREFIX}/man'
|
||||
CONFIGURE_ARGS += --infodir='$${${DESTDIRNAME}}${PREFIX}/info'
|
||||
. else
|
||||
CONFIGURE_ARGS+= --sysconfdir='${SYSCONFDIR}' \
|
||||
--mandir='${PREFIX}/man' \
|
||||
--infodir='${PREFIX}/info'
|
||||
CONFIGURE_ARGS += --sysconfdir='${SYSCONFDIR}'
|
||||
CONFIGURE_ARGS += --mandir='${PREFIX}/man'
|
||||
CONFIGURE_ARGS += --infodir='${PREFIX}/info'
|
||||
. endif
|
||||
. endif
|
||||
.endif
|
||||
|
||||
REGRESS_TARGET?= check
|
||||
REGRESS_TARGET ?= check
|
||||
|
||||
# internal stuff to run on each directory.
|
||||
MODGNU_post-patch= for d in ${AUTOCONF_DIR}; do cd $$d; ${_MODGNU_loop} done;
|
||||
_MODGNU_loop=
|
||||
MODGNU_post-patch = for d in ${AUTOCONF_DIR}; do cd $$d; ${_MODGNU_loop} done;
|
||||
_MODGNU_loop =
|
||||
|
||||
PATCH_CHECK_ONLY?= No
|
||||
PATCH_CHECK_ONLY ?= No
|
||||
.if ${PATCH_CHECK_ONLY:L} != "yes"
|
||||
. if ${CONFIGURE_STYLE:L:Mautoupdate}
|
||||
_MODGNU_loop+= echo "Running autoupdate-${AUTOCONF_VERSION} in $$d";
|
||||
_MODGNU_loop+= ${_SYSTRACE_CMD} ${SETENV} ${AUTOCONF_ENV} ${AUTOUPDATE};
|
||||
_MODGNU_loop += echo "Running autoupdate-${AUTOCONF_VERSION} in $$d";
|
||||
_MODGNU_loop += ${_SYSTRACE_CMD} ${SETENV} ${AUTOCONF_ENV} ${AUTOUPDATE};
|
||||
. endif
|
||||
. if ${CONFIGURE_STYLE:L:Mautoconf}
|
||||
_MODGNU_loop+= echo "Running autoconf-${AUTOCONF_VERSION} in $$d";
|
||||
_MODGNU_loop+= ${_SYSTRACE_CMD} ${SETENV} ${AUTOCONF_ENV} ${AUTOCONF};
|
||||
_MODGNU_loop += echo "Running autoconf-${AUTOCONF_VERSION} in $$d";
|
||||
_MODGNU_loop += ${_SYSTRACE_CMD} ${SETENV} ${AUTOCONF_ENV} ${AUTOCONF};
|
||||
. if ${CONFIGURE_STYLE:L:Mautoheader}
|
||||
_MODGNU_loop+= echo "Running autoheader-${AUTOCONF_VERSION} in $$d";
|
||||
_MODGNU_loop+= ${_SYSTRACE_CMD} ${SETENV} ${AUTOCONF_ENV} ${AUTOHEADER};
|
||||
_MODGNU_loop += echo "Running autoheader-${AUTOCONF_VERSION} in $$d";
|
||||
_MODGNU_loop += ${_SYSTRACE_CMD} ${SETENV} ${AUTOCONF_ENV} ${AUTOHEADER};
|
||||
. endif
|
||||
. if !${CONFIGURE_STYLE:L:Mautomake}
|
||||
REORDER_DEPENDENCIES+=${PORTSDIR}/infrastructure/mk/automake.dep
|
||||
REORDER_DEPENDENCIES += ${PORTSDIR}/infrastructure/mk/automake.dep
|
||||
. endif
|
||||
. endif
|
||||
.endif
|
||||
|
||||
MODGNU_SHARED_LIBS?=
|
||||
# XXX to be killed
|
||||
MODGNU_SHARED_LIBS ?=
|
||||
.for _n _e in ${MODGNU_SHARED_LIBS}
|
||||
. if defined(LIB${_n}_ALIAS)
|
||||
MAKE_FLAGS+=lib${LIB${_n}_ALIAS}_la_LDFLAGS='-version-info ${LIB${_n}_VERSION:S/./:/}:0 '${_e}
|
||||
MAKE_FLAGS += lib${LIB${_n}_ALIAS}_la_LDFLAGS='-version-info ${LIB${_n}_VERSION:S/./:/}:0 '${_e}
|
||||
. else
|
||||
MAKE_FLAGS+=lib${_n}_la_LDFLAGS='-version-info ${LIB${_n}_VERSION:S/./:/}:0 '${_e}
|
||||
MAKE_FLAGS += lib${_n}_la_LDFLAGS='-version-info ${LIB${_n}_VERSION:S/./:/}:0 '${_e}
|
||||
. endif
|
||||
.endfor
|
||||
|
Loading…
Reference in New Issue
Block a user