version 1.72, 1999/03/01 18:44:04 |
version 1.73, 1999/03/01 19:44:18 |
|
|
# ${WRKDIR} (see below). This is useful for building ports on |
# ${WRKDIR} (see below). This is useful for building ports on |
# several architectures, then ${PORTSDIR} can be NFS-mounted |
# several architectures, then ${PORTSDIR} can be NFS-mounted |
# while ${WRKOBJDIR} is local to every arch |
# while ${WRKOBJDIR} is local to every arch |
# NO_SHARED_LIBS - defined as "yes" for those machine architectures that do |
|
# not support shared libraries. |
|
|
|
# |
# |
|
# |
# Variables that typically apply to an individual port. Non-Boolean |
# Variables that typically apply to an individual port. Non-Boolean |
# variables without defaults are *mandatory*. |
# variables without defaults are *mandatory*. |
# |
# |
|
|
# GNU_CONFIGURE - Set if you are using GNU configure (optional). |
# GNU_CONFIGURE - Set if you are using GNU configure (optional). |
# CONFIGURE_SCRIPT - Name of configure script, defaults to 'configure'. |
# CONFIGURE_SCRIPT - Name of configure script, defaults to 'configure'. |
# CONFIGURE_ARGS - Pass these args to configure if ${HAS_CONFIGURE} is set. |
# CONFIGURE_ARGS - Pass these args to configure if ${HAS_CONFIGURE} is set. |
|
# CONFIGURE_SHARED - An argument to GNU configure that expands to |
|
# --enable-shared for those architectures that support |
|
# shared libraries and --disable-shared for architectures |
|
# that do not support shared libraries. |
# CONFIGURE_ENV - Pass these env (shell-like) to configure if |
# CONFIGURE_ENV - Pass these env (shell-like) to configure if |
# ${HAS_CONFIGURE} is set. |
# ${HAS_CONFIGURE} is set. |
# SCRIPTS_ENV - Additional environment vars passed to scripts in |
# SCRIPTS_ENV - Additional environment vars passed to scripts in |
|
|
# MANPREFIX -The directory prefix for ${MAN<sect>} (default: ${PREFIX}). |
# MANPREFIX -The directory prefix for ${MAN<sect>} (default: ${PREFIX}). |
# CATPREFIX - The directory prefix for ${CAT<sect>} (default: ${PREFIX}). |
# CATPREFIX - The directory prefix for ${CAT<sect>} (default: ${PREFIX}). |
# |
# |
|
# Other variables: |
|
# |
|
# NO_SHARED_LIBS - defined as "yes" for those machine architectures that do |
|
# not support shared libraries. WARNING: This value is |
|
# NOT defined until AFTER ".include bsd.port.mk". Thus |
|
# you can NOT use something like ".if defined(NO_SHARED_LIBS)" |
|
# before this file is included. |
|
# |
# Default targets and their behaviors: |
# Default targets and their behaviors: |
# |
# |
# fetch - Retrieves ${DISTFILES} (and ${PATCHFILES} if defined) |
# fetch - Retrieves ${DISTFILES} (and ${PATCHFILES} if defined) |
|
|
.if defined(GNU_CONFIGURE) |
.if defined(GNU_CONFIGURE) |
CONFIGURE_ARGS+= --prefix=${PREFIX} |
CONFIGURE_ARGS+= --prefix=${PREFIX} |
HAS_CONFIGURE= yes |
HAS_CONFIGURE= yes |
|
.endif |
|
|
|
.if defined(NO_SHARED_LIBS) |
|
CONFIGURE_SHARED?= --disable-shared |
|
.else |
|
CONFIGURE_SHARED?= --enable-shared |
.endif |
.endif |
|
|
# Passed to most of script invocations |
# Passed to most of script invocations |