version 1.57, 1998/12/19 16:52:22 |
version 1.58, 1999/01/08 23:45:48 |
|
|
# For each port, the MAINTAINER variable is what you should consult for |
# For each port, the MAINTAINER variable is what you should consult for |
# contact information on the person(s) to contact if you have questions/ |
# contact information on the person(s) to contact if you have questions/ |
# suggestions about that specific port. By default (if no MAINTAINER |
# suggestions about that specific port. By default (if no MAINTAINER |
# is listed), a port is maintained by the subscribers of the ports@freebsd.org |
# is listed), a port is maintained by the subscribers of the ports@openbsd.org |
# mailing list (OpenBSD: ports@openbsd.org), and any correspondence |
# mailing list, and any correspondence should be directed there. |
# should be directed there. |
|
# |
# |
FreeBSD_MAINTAINER= asami@FreeBSD.ORG |
|
OpenBSD_MAINTAINER= marc@OpenBSD.ORG |
OpenBSD_MAINTAINER= marc@OpenBSD.ORG |
NetBSD_MAINTAINER= agc@netbsd.org |
|
|
|
# NEED_VERSION: we need at least this version of bsd.port.mk for this |
# NEED_VERSION: we need at least this version of bsd.port.mk for this |
# port to build |
# port to build |
|
|
# ONLY_FOR_ARCHS - If a port only makes sense to certain architectures, this |
# ONLY_FOR_ARCHS - If a port only makes sense to certain architectures, this |
# is a list containing the names for them. It is checked |
# is a list containing the names for them. It is checked |
# against the predefined ${MACHINE_ARCH} value |
# against the predefined ${MACHINE_ARCH} value |
# ARCH - The architecture, as returned by "uname -m". |
# ARCH - The architecture (default: "uname -m"). |
# OPSYS - Portability clause. This is the operating system the |
# OPSYS - The operating system (default: "uname -s"). |
# makefile is being used on. Automatically set to |
# OPSYS_VER - The current version of the operating system |
# "FreeBSD," "NetBSD," or "OpenBSD" as appropriate. |
# (default: "uname -r"). |
# OPSYS_VER - The current version if the operating system |
# PORTSDIR - The root of the ports tree. Defaults: /usr/ports |
# PORTSDIR - The root of the ports tree. Defaults: |
# DISTDIR - Where to get gzip'd, tarballed copies of original sources. |
# FreeBSD/OpenBSD: /usr/ports |
|
# NetBSD: /usr/pkgsrc |
|
# DISTDIR - Where to get gzip'd, tarballed copies of original sources |
|
# (default: ${PORTSDIR}/distfiles). |
# (default: ${PORTSDIR}/distfiles). |
# PREFIX - Where to install things in general (default: /usr/local). |
# PREFIX - Where to install things in general (default: /usr/local). |
# MASTER_SITES - Primary location(s) for distribution files if not found |
# MASTER_SITES - Primary location(s) for distribution files if not found |
|
|
# value. |
# value. |
# MASTER_SITE_OPENBSD - If set, only use ftp.openbsd.org as the |
# MASTER_SITE_OPENBSD - If set, only use ftp.openbsd.org as the |
# MASTER_SITE_OVERRIDE. |
# MASTER_SITE_OVERRIDE. |
# MASTER_SITE_FREEBSD - If set, only use ftp.freebsd.org as the |
|
# MASTER_SITE_OVERRIDE. |
|
# PACKAGES - A top level directory where all packages go (rather than |
# PACKAGES - A top level directory where all packages go (rather than |
# going locally to each port). (default: ${PORTSDIR}/packages). |
# going locally to each port). (default: ${PORTSDIR}/packages). |
# GMAKE - Set to path of GNU make if not in $PORTPATH (default: gmake). |
# GMAKE - Set to path of GNU make if not in $PORTPATH (default: gmake). |
# XMKMF - Set to path of `xmkmf' if not in $PORTPATH |
# XMKMF - Set to path of `xmkmf' if not in $PORTPATH |
# (default: xmkmf -a ). |
# (default: xmkmf -a ). |
# MAINTAINER - The e-mail address of the contact person for this port |
# MAINTAINER - The e-mail address of the contact person for this port |
# Defaults: ports@OpenBSD.ORG (OpenBSD) |
# Defaults: ports@OpenBSD.ORG |
# ports@FreeBSD.ORG (FreeBSD) |
|
# packages@NetBSD.ORG (NetBSD) |
|
# CATEGORIES - A list of descriptive categories into which this port falls. |
# CATEGORIES - A list of descriptive categories into which this port falls. |
# WRKOBJDIR - A top level directory where, if defined, the separate working |
# WRKOBJDIR - A top level directory where, if defined, the separate working |
# directories will get created, and symbolically linked to from |
# directories will get created, and symbolically linked to from |
|
|
# ${DISTDIR}. Also they will be fetched in this subdirectory |
# ${DISTDIR}. Also they will be fetched in this subdirectory |
# from FreeBSD mirror sites. |
# from FreeBSD mirror sites. |
# ALLFILES - All of ${DISTFILES} and ${PATCHFILES}. |
# ALLFILES - All of ${DISTFILES} and ${PATCHFILES}. |
# MIRROR_DISTFILE - Whether the distfile is redistributable without restrictions. |
# MIRROR_DISTFILE - Whether the distfile is redistributable without restrictions. |
# Defaults to "yes", set this to "no" if restrictions exist. |
# Defaults to "yes", set this to "no" if restrictions exist. |
# IGNOREFILES - If some of the ${ALLFILES} are not checksum-able, set |
# IGNOREFILES - If some of the ${ALLFILES} are not checksum-able, set |
# this variable to their names. |
# this variable to their names. |
# PKGNAME - Name of the package file to create if the DISTNAME |
# PKGNAME - Name of the package file to create if the DISTNAME |
|
|
# |
# |
# REQUIRES_MOTIF- Set this in your port if it requires Motif. It will be |
# REQUIRES_MOTIF- Set this in your port if it requires Motif. It will be |
# built only if HAVE_MOTIF is set. |
# built only if HAVE_MOTIF is set. |
# HAVE_MOTIF - If set, means system has Motif. Typically set in |
# HAVE_MOTIF - If set, means system has Motif. Typically set in /etc/mk.conf. |
# /etc/make.conf (FreeBSD) or |
|
# /etc/mk.conf (OpenBSD, NetBSD). |
|
# MOTIF_STATIC - If set, link libXm statically; otherwise, link it |
# MOTIF_STATIC - If set, link libXm statically; otherwise, link it |
# dynamically. Typically set in |
# dynamically. Typically set in /etc/mk.conf. |
# /etc/make.conf (FreeBSD) or |
|
# /etc/mk.conf (OpenBSD, NetBSD). |
|
# MOTIFLIB - Set automatically to appropriate value depending on |
# MOTIFLIB - Set automatically to appropriate value depending on |
# ${MOTIF_STATIC}. Substitute references to -lXm with |
# ${MOTIF_STATIC}. Substitute references to -lXm with |
# patches to make your port conform to our standards. |
# patches to make your port conform to our standards. |
|
|
.include "${.CURDIR}/../Makefile.inc" |
.include "${.CURDIR}/../Makefile.inc" |
.endif |
.endif |
|
|
.if (${OPSYS} == "OpenBSD") |
|
NOCLEANDEPENDS= yes |
NOCLEANDEPENDS= yes |
NOMANCOMPRESS?= yes |
NOMANCOMPRESS?= yes |
DEF_UMASK?= 022 |
DEF_UMASK?= 022 |
.elif (${OPSYS} == "NetBSD") |
|
DEF_UMASK?= 0022 |
|
NOCLEANDEPENDS= yes |
|
.else |
|
DEF_UMASK?= 0022 |
|
.endif |
|
|
|
.if exists(${.CURDIR}/Makefile.${ARCH}-${OPSYS}) |
.if exists(${.CURDIR}/Makefile.${ARCH}-${OPSYS}) |
.include "${.CURDIR}/Makefile.${ARCH}-${OPSYS}" |
.include "${.CURDIR}/Makefile.${ARCH}-${OPSYS}" |
|
|
# These need to be absolute since we don't know how deep in the ports |
# These need to be absolute since we don't know how deep in the ports |
# tree we are and thus can't go relative. They can, of course, be overridden |
# tree we are and thus can't go relative. They can, of course, be overridden |
# by individual Makefiles or local system make configuration. |
# by individual Makefiles or local system make configuration. |
.if (${OPSYS} == "NetBSD") |
|
PORTSDIR?= /usr/pkgsrc |
|
LOCALBASE?= ${DESTDIR}/usr/pkg |
|
.else |
|
PORTSDIR?= /usr/ports |
PORTSDIR?= /usr/ports |
LOCALBASE?= ${DESTDIR}/usr/local |
LOCALBASE?= ${DESTDIR}/usr/local |
.endif |
|
X11BASE?= ${DESTDIR}/usr/X11R6 |
X11BASE?= ${DESTDIR}/usr/X11R6 |
DISTDIR?= ${PORTSDIR}/distfiles |
DISTDIR?= ${PORTSDIR}/distfiles |
_DISTDIR?= ${DISTDIR}/${DIST_SUBDIR} |
_DISTDIR?= ${DISTDIR}/${DIST_SUBDIR} |
|
|
LIB_DEPENDS+= Xm.:${PORTSDIR}/x11/lesstif |
LIB_DEPENDS+= Xm.:${PORTSDIR}/x11/lesstif |
.endif |
.endif |
|
|
# OpenBSD has perl5 in-tree |
|
# |
|
#.if defined(USE_PERL5) |
|
#BUILD_DEPENDS+= perl5.00404:${PORTSDIR}/lang/perl5 |
|
#RUN_DEPENDS+= perl5.00404:${PORTSDIR}/lang/perl5 |
|
#.endif |
|
|
|
.if exists(${PORTSDIR}/../Makefile.inc) |
.if exists(${PORTSDIR}/../Makefile.inc) |
.include "${PORTSDIR}/../Makefile.inc" |
.include "${PORTSDIR}/../Makefile.inc" |
.endif |
.endif |
|
|
.if defined(USE_IMAKE) || defined(USE_X11) |
.if defined(USE_IMAKE) || defined(USE_X11) |
MTREE_FILE= /etc/mtree/BSD.x11.dist |
MTREE_FILE= /etc/mtree/BSD.x11.dist |
.else |
.else |
.if (${OPSYS} == "NetBSD") |
|
MTREE_FILE= /etc/mtree/BSD.pkg.dist |
|
.else |
|
MTREE_FILE= /etc/mtree/BSD.local.dist |
MTREE_FILE= /etc/mtree/BSD.local.dist |
.endif |
.endif |
.endif |
.endif |
.endif |
|
MTREE_CMD?= /usr/sbin/mtree |
MTREE_CMD?= /usr/sbin/mtree |
MTREE_ARGS?= -U -f ${MTREE_FILE} -d -e -q -p |
MTREE_ARGS?= -U -f ${MTREE_FILE} -d -e -q -p |
|
|
.if (${OPSYS} == "OpenBSD") |
|
.include <bsd.own.mk> |
.include <bsd.own.mk> |
MAKE_ENV+= EXTRA_SYS_MK_INCLUDES="<bsd.own.mk>" |
MAKE_ENV+= EXTRA_SYS_MK_INCLUDES="<bsd.own.mk>" |
.elif (${OPSYS} == "NetBSD") |
|
NEED_OWN_INSTALL_TARGET= no |
|
.include <bsd.own.mk> |
|
SHAREOWN = ${DOCOWN} |
|
SHAREGRP = ${DOCGRP} |
|
SHAREMODE = ${DOCMODE} |
|
.endif |
|
|
|
.if !defined(NO_WRKDIR) |
.if !defined(NO_WRKDIR) |
.if defined(OBJMACHINE) |
.if defined(OBJMACHINE) |
|
|
.endif |
.endif |
|
|
.if defined(WRKOBJDIR) |
.if defined(WRKOBJDIR) |
# XXX Is pwd -P available in FreeBSD's /bin/sh? |
|
__canonical_PORTSDIR!= cd ${PORTSDIR}; pwd -P |
__canonical_PORTSDIR!= cd ${PORTSDIR}; pwd -P |
__canonical_CURDIR!= cd ${.CURDIR}; pwd -P |
__canonical_CURDIR!= cd ${.CURDIR}; pwd -P |
PORTSUBDIR= ${__canonical_CURDIR:S,${__canonical_PORTSDIR}/,,} |
PORTSUBDIR= ${__canonical_CURDIR:S,${__canonical_PORTSDIR}/,,} |
|
|
ftp://ftp.openbsd.org/pub/OpenBSD/distfiles/${DIST_SUBDIR}/ \ |
ftp://ftp.openbsd.org/pub/OpenBSD/distfiles/${DIST_SUBDIR}/ \ |
ftp://ftp.openbsd.org/pub/OpenBSD/licensed/${DIST_SUBDIR}/ |
ftp://ftp.openbsd.org/pub/OpenBSD/licensed/${DIST_SUBDIR}/ |
|
|
# The second backup master site is ftp.freebsd.org |
|
# |
|
_MASTER_SITE_FREEBSD?= \ |
|
ftp://ftp.freebsd.org/pub/FreeBSD/distfiles/${DIST_SUBDIR}/ |
|
|
|
# set the backup master sites. |
# set the backup master sites. |
# |
# |
MASTER_SITE_BACKUP?= \ |
MASTER_SITE_BACKUP?= \ |
${_MASTER_SITE_OPENBSD} ${_MASTER_SITE_FREEBSD} |
${_MASTER_SITE_OPENBSD} \ |
|
ftp://ftp.freebsd.org/pub/FreeBSD/distfiles/${DIST_SUBDIR}/ |
|
|
# If the user has this set, go to the OpenBSD repository for everything. |
# If the user has this set, go to the OpenBSD repository for everything. |
# |
# |
|
|
MASTER_SITE_OVERRIDE= ${_MASTER_SITE_OPENBSD} |
MASTER_SITE_OVERRIDE= ${_MASTER_SITE_OPENBSD} |
.endif |
.endif |
|
|
# If the user has this set, go to the FreeBSD repository for everything. |
|
# |
|
.if defined(MASTER_SITE_FREEBSD) |
|
MASTER_SITE_OVERRIDE= ${_MASTER_SITE_FREEBSD} |
|
.endif |
|
|
|
# Where to put distfiles that don't have any other master site |
# Where to put distfiles that don't have any other master site |
# ;;; This is referenced in a few Makefiles -- I'd like to get rid of it |
# ;;; This is referenced in a few Makefiles -- I'd like to get rid of it |
# |
# |
|
|
PATCH_SITES:= ${MASTER_SITE_OVERRIDE} ${PATCH_SITES} |
PATCH_SITES:= ${MASTER_SITE_OVERRIDE} ${PATCH_SITES} |
.endif |
.endif |
|
|
# The following is a FreeBSD construct that does not work in OpenBSD. |
|
# Since OpenBSD does not put packages in /cdrom/ports/packages it |
|
# is safe to leave (but I may remove it in the future). |
|
# |
|
# Search CDROM first if mounted, symlink instead of copy if |
|
# FETCH_SYMLINK_DISTFILES is set |
|
.if exists(/cdrom/ports/distfiles) |
|
MASTER_SITES:= file:/cdrom/ports/distfiles/${DIST_SUBDIR}/ ${MASTER_SITES} |
|
PATCH_SITES:= file:/cdrom/ports/distfiles/${DIST_SUBDIR}/ ${PATCH_SITES} |
|
.if defined(FETCH_SYMLINK_DISTFILES) |
|
FETCH_BEFORE_ARGS+= -l |
|
.endif |
|
.endif |
|
|
|
# OpenBSD code to handle ports distfiles on a CDROM. The distfiles |
# OpenBSD code to handle ports distfiles on a CDROM. The distfiles |
# are located in /cdrom/distfiles/${DIST_SUBDIR}/ (assuming that the |
# are located in /cdrom/distfiles/${DIST_SUBDIR}/ (assuming that the |
# CDROM is mounted on /cdrom). |
# CDROM is mounted on /cdrom). |
|
|
EXTRACT_ONLY?= ${DISTFILES} |
EXTRACT_ONLY?= ${DISTFILES} |
|
|
# Documentation |
# Documentation |
.if (${OPSYS} == "OpenBSD") |
|
MAINTAINER?= ports@OpenBSD.ORG |
MAINTAINER?= ports@OpenBSD.ORG |
.elif (${OPSYS} == "NetBSD") |
|
MAINTAINER?= packages@NetBSD.ORG |
|
.else |
|
MAINTAINER?= ports@FreeBSD.ORG |
|
.endif |
|
|
|
.if !defined(CATEGORIES) |
.if !defined(CATEGORIES) |
.BEGIN: |
.BEGIN: |
|
|
@cd ${.CURDIR} && make README.html |
@cd ${.CURDIR} && make README.html |
.endif |
.endif |
|
|
.if (${OPSYS} == "NetBSD") |
|
README_NAME= ${TEMPLATES}/README.pkg |
|
.else |
|
README_NAME= ${TEMPLATES}/README.port |
README_NAME= ${TEMPLATES}/README.port |
.endif |
|
|
|
README.html: |
README.html: |
@${ECHO_MSG} "===> Creating README.html for ${PKGNAME}" |
@${ECHO_MSG} "===> Creating README.html for ${PKGNAME}" |