From 9f5bce2d0dd90acb0028197dfd92b76712767dcf Mon Sep 17 00:00:00 2001 From: kim Date: Mon, 15 Nov 2021 17:11:57 +0000 Subject: {,standalone-,static-}tcsh: Add build options for nls and static. Cleanup. For tcsh and defaults for other variants, unless otherwise noted: - Option nls enables building of NLS catalogs. Enabled by default. - Option static enables static linking. Disabled by default. For standalone-tcsh: - Option static is enabled by default, except on SunOS. - Fix building of NLS catalogs, which possibly worked at some point in time given the existence of the NLSDIR variable in Makefile. - Use PLIST from tcsh, with some awk to transform the entries. - Use DESCR from tcsh as base, with an additional local DESCR. Adjust the local DESCR to not say that the package is static, as that is controlled by an option now (and never was true for all platforms). - Remove unnecessary DISTINFO_FILE, INSTALLATION_DIRS, and WRKSRC. For static-tcsh: - Option static is not available: the package is always built like tcsh with the static option enabled. - Remove unnecessary DISTINFO_FILE. --- shells/static-tcsh/Makefile | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) (limited to 'shells/static-tcsh') diff --git a/shells/static-tcsh/Makefile b/shells/static-tcsh/Makefile index b79e2a142be..180f3205a6c 100644 --- a/shells/static-tcsh/Makefile +++ b/shells/static-tcsh/Makefile @@ -1,25 +1,19 @@ -# $NetBSD: Makefile,v 1.13 2021/11/14 22:15:13 kim Exp $ +# $NetBSD: Makefile,v 1.14 2021/11/15 17:11:58 kim Exp $ # +PKGNAME= static-${DISTNAME} +PKGREVISION= 2 + .include "../../shells/tcsh/Makefile.common" MAINTAINER= agc@NetBSD.org -DISTINFO_FILE= ${.CURDIR}/../../shells/tcsh/distinfo PATCHDIR= ${.CURDIR}/../../shells/tcsh/patches PKGDIR= ${.CURDIR}/../../shells/tcsh DESCR_SRC= ${.CURDIR}/../../shells/tcsh/DESCR ${.CURDIR}/DESCR CONFLICTS= tcsh-[0-9]* -PKGNAME= static-${DISTNAME} -PKGREVISION= 1 - -# SunOS 5.10 stopped shipping static libraries. -NOT_FOR_PLATFORM+= SunOS-5.1[0-9]-* - -COMMENT:= Statically-linked version of the ${COMMENT} - -LDFLAGS+= -static +COMMENT= Statically-linked version of the Extended C-shell .include "../../mk/bsd.pkg.mk" -- cgit v1.2.3