pkgsrc/shells/standalone-tcsh/Makefile
sevan bddeeb16db Exclude this package on OmniOS which ships with a copy of tcsh.
OmniOS is an Illumos distro which falls under the SunOS variant for us.
Include mk/bsd.prefs.mk before the shells/tcsh/Makefile so the
OS_VARIANT variable is available for testing.

Reviewed by agc@ wiz@
2015-09-03 15:58:22 +00:00

43 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.26 2015/09/03 15:58:22 sevan Exp $
#
# FIXME: This is because of PREFIX=/ below.
CHECK_FILES_SUPPORTED= no
NOT_FOR_UNPRIVILEGED= yes
PKGNAME= standalone-${DISTNAME}
WRKSRC= ${WRKDIR}/${DISTNAME}
PATCHDIR= ${.CURDIR}/../../shells/tcsh/patches
# This package only makes sense on platforms that don't themselves ship tcsh
# in /bin. Otherwise it clobbers the native copy, which really isn't what
# anyone wants.
ONLY_FOR_PLATFORM+= NetBSD-*-* OpenBSD-*-* SunOS-*-*
.include "../../mk/bsd.prefs.mk"
.if ${OS_VARIANT} == "OmniOS"
NOT_FOR_PLATFORM+= SunOS-*-*
.endif
.include "../../shells/tcsh/Makefile"
INSTALLATION_DIRS+= usr/share/man/man1
COMMENT:= Standalone version of the Extended C-shell
MAINTAINER= agc@NetBSD.org
# FIXME: Packages shall only install into ${LOCALBASE} or a subdirectory.
PREFIX= /
NLSDIR= usr/share/nls
CONFIGURE_ARGS+= --prefix=${PREFIX:Q}
CONFIGURE_ARGS+= --bindir=/bin
CONFIGURE_ARGS+= --mandir=/usr/share/man
DISTINFO_FILE= ${.CURDIR}/../../shells/tcsh/distinfo
.if ${OPSYS} != "SunOS"
LDFLAGS+= -static
.endif