- Our default for FETCH_CMD is ftp, not fetch.
- Document NO_IGNORE, __ARCH_OK - Make __ARCH_OK overridable, so it can be set to YES e.g. for fetching all distfiles. - Move ".ifndef(__ARCH_OK): block, so some targets like clean work in any case. - Add LOCALBASE and X11BASE to PATH in MAKE_ENV, CONFIGURE_ENV and SCRIPT_ENV; this fixes PR 4573
This commit is contained in:
parent
27ef674380
commit
e3f9002156
@ -1,7 +1,7 @@
|
|||||||
#-*- mode: Fundamental; tab-width: 4; -*-
|
#-*- mode: Fundamental; tab-width: 4; -*-
|
||||||
# ex:ts=4
|
# ex:ts=4
|
||||||
#
|
#
|
||||||
# $NetBSD: bsd.port.mk,v 1.29 1998/01/15 09:37:27 agc Exp $
|
# $NetBSD: bsd.port.mk,v 1.30 1998/01/15 22:58:59 hubertf Exp $
|
||||||
#
|
#
|
||||||
# bsd.port.mk - 940820 Jordan K. Hubbard.
|
# bsd.port.mk - 940820 Jordan K. Hubbard.
|
||||||
# This file is in the public domain.
|
# This file is in the public domain.
|
||||||
@ -201,11 +201,19 @@ NetBSD_MAINTAINER= agc@netbsd.org
|
|||||||
# (default: none).
|
# (default: none).
|
||||||
#
|
#
|
||||||
# FETCH_CMD - Full path to ftp/http fetch command if not in $PATH
|
# FETCH_CMD - Full path to ftp/http fetch command if not in $PATH
|
||||||
# (default: /usr/bin/fetch).
|
# (default: /usr/bin/ftp).
|
||||||
# FETCH_BEFORE_ARGS -
|
# FETCH_BEFORE_ARGS -
|
||||||
# Arguments to ${FETCH_CMD} before filename (default: none).
|
# Arguments to ${FETCH_CMD} before filename (default: none).
|
||||||
# FETCH_AFTER_ARGS -
|
# FETCH_AFTER_ARGS -
|
||||||
# Arguments to ${FETCH_CMD} following filename (default: none).
|
# Arguments to ${FETCH_CMD} following filename (default: none).
|
||||||
|
# NO_IGNORE - Set this to YES (most probably in a "make fetch" in
|
||||||
|
# ${PORTSDIR}) if you want to fetch all distfiles,
|
||||||
|
# even for packages not built due to limitation by
|
||||||
|
# absent X or Motif ...
|
||||||
|
# __ARCH_OK - Internal variable set if the package is ok to build
|
||||||
|
# on this architecture. Set to YES to insist on
|
||||||
|
# e.g. fetching all distfiles (for interactive use in
|
||||||
|
# ${PORTSDIR}, mostly.
|
||||||
#
|
#
|
||||||
# Motif support:
|
# Motif support:
|
||||||
#
|
#
|
||||||
@ -297,21 +305,13 @@ OPSYS!= uname -s
|
|||||||
.if defined(ONLY_FOR_ARCHS)
|
.if defined(ONLY_FOR_ARCHS)
|
||||||
.for __ARCH in ${ONLY_FOR_ARCHS}
|
.for __ARCH in ${ONLY_FOR_ARCHS}
|
||||||
.if ${MACHINE_ARCH} == "${__ARCH}"
|
.if ${MACHINE_ARCH} == "${__ARCH}"
|
||||||
__ARCH_OK= 1
|
__ARCH_OK?= 1
|
||||||
.endif
|
.endif
|
||||||
.endfor
|
.endfor
|
||||||
.else
|
.else
|
||||||
__ARCH_OK= 1
|
__ARCH_OK?= 1
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if !defined(__ARCH_OK)
|
|
||||||
.MAIN: all
|
|
||||||
|
|
||||||
fetch fetch-list extract patch configure build install reinstall package describe checkpatch checksum makesum all:
|
|
||||||
@echo "This port is only for ${ONLY_FOR_ARCHS},"
|
|
||||||
@echo "and you are running ${MACHINE_ARCH}."
|
|
||||||
.else
|
|
||||||
|
|
||||||
.if exists(${.CURDIR}/../Makefile.inc)
|
.if exists(${.CURDIR}/../Makefile.inc)
|
||||||
.include "${.CURDIR}/../Makefile.inc"
|
.include "${.CURDIR}/../Makefile.inc"
|
||||||
.endif
|
.endif
|
||||||
@ -465,6 +465,7 @@ MD5_FILE?= ${FILESDIR}/md5
|
|||||||
|
|
||||||
MAKE_FLAGS?= -f
|
MAKE_FLAGS?= -f
|
||||||
MAKEFILE?= Makefile
|
MAKEFILE?= Makefile
|
||||||
|
MAKE_ENV+= PATH=${PATH}:${LOCALBASE}/bin:${X11BASE}/bin PREFIX=${PREFIX} LOCALBASE=${LOCALBASE} X11BASE=${X11BASE} MOTIFLIB="${MOTIFLIB}" CFLAGS="${CFLAGS}"
|
||||||
MAKE_ENV+= PREFIX=${PREFIX} LOCALBASE=${LOCALBASE} X11BASE=${X11BASE} MOTIFLIB="${MOTIFLIB}" CFLAGS="${CFLAGS}"
|
MAKE_ENV+= PREFIX=${PREFIX} LOCALBASE=${LOCALBASE} X11BASE=${X11BASE} MOTIFLIB="${MOTIFLIB}" CFLAGS="${CFLAGS}"
|
||||||
|
|
||||||
.if exists(/usr/bin/fetch)
|
.if exists(/usr/bin/fetch)
|
||||||
@ -752,6 +753,7 @@ PKGFILE?= ${PKGNAME}${PKG_SUFX}
|
|||||||
.endif
|
.endif
|
||||||
|
|
||||||
CONFIGURE_SCRIPT?= configure
|
CONFIGURE_SCRIPT?= configure
|
||||||
|
CONFIGURE_ENV+= PATH=${PATH}:${LOCALBASE}/bin:${X11BASE}/bin
|
||||||
|
|
||||||
.if defined(GNU_CONFIGURE)
|
.if defined(GNU_CONFIGURE)
|
||||||
CONFIGURE_ARGS+= --prefix=${PREFIX}
|
CONFIGURE_ARGS+= --prefix=${PREFIX}
|
||||||
@ -759,7 +761,8 @@ HAS_CONFIGURE= yes
|
|||||||
.endif
|
.endif
|
||||||
|
|
||||||
# Passed to most of script invocations
|
# Passed to most of script invocations
|
||||||
SCRIPTS_ENV+= CURDIR=${.CURDIR} DISTDIR=${DISTDIR} \
|
SCRIPTS_ENV+= CURDIR=${.CURDIR} DISTDIR=${DISTDIR} \
|
||||||
|
PATH=${PATH}:${LOCALBASE}/bin:${X11BASE}/bin \
|
||||||
WRKDIR=${WRKDIR} WRKSRC=${WRKSRC} PATCHDIR=${PATCHDIR} \
|
WRKDIR=${WRKDIR} WRKSRC=${WRKSRC} PATCHDIR=${PATCHDIR} \
|
||||||
SCRIPTDIR=${SCRIPTDIR} FILESDIR=${FILESDIR} \
|
SCRIPTDIR=${SCRIPTDIR} FILESDIR=${FILESDIR} \
|
||||||
PORTSDIR=${PORTSDIR} DEPENDS="${DEPENDS}" \
|
PORTSDIR=${PORTSDIR} DEPENDS="${DEPENDS}" \
|
||||||
@ -854,6 +857,14 @@ IGNORE= "uses X11, but ${X11BASE} not found"
|
|||||||
IGNORE= "is marked as broken: ${BROKEN}"
|
IGNORE= "is marked as broken: ${BROKEN}"
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
.if !defined(__ARCH_OK)
|
||||||
|
.MAIN: all
|
||||||
|
|
||||||
|
fetch fetch-list extract patch configure build install reinstall package describe checkpatch checksum makesum all:
|
||||||
|
@echo "This port is only for ${ONLY_FOR_ARCHS},"
|
||||||
|
@echo "and you are running ${MACHINE_ARCH}."
|
||||||
|
.else
|
||||||
|
|
||||||
.if defined(IGNORE)
|
.if defined(IGNORE)
|
||||||
.if defined(IGNORE_SILENT)
|
.if defined(IGNORE_SILENT)
|
||||||
IGNORECMD= ${DO_NADA}
|
IGNORECMD= ${DO_NADA}
|
||||||
@ -1368,6 +1379,10 @@ reinstall:
|
|||||||
@DEPENDS_TARGET=${DEPENDS_TARGET} ${MAKE} install
|
@DEPENDS_TARGET=${DEPENDS_TARGET} ${MAKE} install
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
.endif # __ARCH_OK
|
||||||
|
# The functions below may be useful even if _ARCH_OK is not set
|
||||||
|
|
||||||
|
|
||||||
################################################################
|
################################################################
|
||||||
# Some more targets supplied for users' convenience
|
# Some more targets supplied for users' convenience
|
||||||
################################################################
|
################################################################
|
||||||
@ -1895,4 +1910,3 @@ ${PLIST}: ${PLIST_SRC}
|
|||||||
.endif # MANZ
|
.endif # MANZ
|
||||||
|
|
||||||
|
|
||||||
.endif # __ARCH_OK
|
|
||||||
|
Loading…
Reference in New Issue
Block a user