head	1.15;
access;
symbols
	pkgsrc-2026Q1:1.15.0.8
	pkgsrc-2026Q1-base:1.15
	pkgsrc-2025Q4:1.15.0.6
	pkgsrc-2025Q4-base:1.15
	pkgsrc-2025Q3:1.15.0.4
	pkgsrc-2025Q3-base:1.15
	pkgsrc-2025Q2:1.15.0.2
	pkgsrc-2025Q2-base:1.15
	pkgsrc-2025Q1:1.13.0.16
	pkgsrc-2025Q1-base:1.13
	pkgsrc-2024Q4:1.13.0.14
	pkgsrc-2024Q4-base:1.13
	pkgsrc-2024Q3:1.13.0.12
	pkgsrc-2024Q3-base:1.13
	pkgsrc-2024Q2:1.13.0.10
	pkgsrc-2024Q2-base:1.13
	pkgsrc-2024Q1:1.13.0.8
	pkgsrc-2024Q1-base:1.13
	pkgsrc-2023Q4:1.13.0.6
	pkgsrc-2023Q4-base:1.13
	pkgsrc-2023Q3:1.13.0.4
	pkgsrc-2023Q3-base:1.13
	pkgsrc-2023Q2:1.13.0.2
	pkgsrc-2023Q2-base:1.13
	pkgsrc-2023Q1:1.11.0.2
	pkgsrc-2023Q1-base:1.11
	pkgsrc-2022Q4:1.10.0.2
	pkgsrc-2022Q4-base:1.10
	pkgsrc-2022Q3:1.8.0.8
	pkgsrc-2022Q3-base:1.8
	pkgsrc-2022Q2:1.8.0.6
	pkgsrc-2022Q2-base:1.8
	pkgsrc-2022Q1:1.8.0.4
	pkgsrc-2022Q1-base:1.8
	pkgsrc-2021Q4:1.8.0.2
	pkgsrc-2021Q4-base:1.8
	pkgsrc-2021Q3:1.7.0.2
	pkgsrc-2021Q3-base:1.7
	pkgsrc-2021Q2:1.5.0.8
	pkgsrc-2021Q2-base:1.5
	pkgsrc-2021Q1:1.5.0.6
	pkgsrc-2021Q1-base:1.5
	pkgsrc-2020Q4:1.5.0.4
	pkgsrc-2020Q4-base:1.5
	pkgsrc-2020Q3:1.5.0.2
	pkgsrc-2020Q3-base:1.5
	pkgsrc-2020Q2:1.4.0.2
	pkgsrc-2020Q2-base:1.4
	pkgsrc-2020Q1:1.3.0.2
	pkgsrc-2020Q1-base:1.3
	pkgsrc-2019Q4:1.3.0.4
	pkgsrc-2019Q4-base:1.3
	pkgsrc-2019Q3:1.2.0.6
	pkgsrc-2019Q3-base:1.2
	pkgsrc-2019Q2:1.2.0.4
	pkgsrc-2019Q2-base:1.2
	pkgsrc-2019Q1:1.2.0.2
	pkgsrc-2019Q1-base:1.2
	pkgsrc-2018Q4:1.1.0.2
	pkgsrc-2018Q4-base:1.1;
locks; strict;
comment	@# @;


1.15
date	2025.04.21.16.35.28;	author wiz;	state Exp;
branches;
next	1.14;
commitid	Zc5UCF5p5zgUeWRF;

1.14
date	2025.03.30.21.10.42;	author wiz;	state Exp;
branches;
next	1.13;
commitid	VYDR1SMauqdts8PF;

1.13
date	2023.04.21.14.08.01;	author micha;	state Exp;
branches;
next	1.12;
commitid	vEXao7yXb9rMUYlE;

1.12
date	2023.04.21.12.57.19;	author micha;	state Exp;
branches;
next	1.11;
commitid	cwJgwFjyBx0twYlE;

1.11
date	2023.01.25.16.04.26;	author micha;	state Exp;
branches;
next	1.10;
commitid	9bvyB6mEjPkGjWaE;

1.10
date	2022.10.31.13.30.33;	author micha;	state Exp;
branches;
next	1.9;
commitid	2HfSrn6oO8MFeSZD;

1.9
date	2022.09.30.15.27.14;	author micha;	state Exp;
branches;
next	1.8;
commitid	4zmKNaJnzD2GSTVD;

1.8
date	2021.12.03.15.15.39;	author micha;	state Exp;
branches;
next	1.7;
commitid	giEAlITyPjXoudjD;

1.7
date	2021.06.25.13.41.48;	author micha;	state Exp;
branches;
next	1.6;
commitid	IxQ4Pcnc3gbl9wYC;

1.6
date	2021.06.25.10.43.03;	author micha;	state Exp;
branches;
next	1.5;
commitid	7xsZCiSErWHL9vYC;

1.5
date	2020.07.17.11.41.42;	author micha;	state Exp;
branches;
next	1.4;
commitid	qyVKhKuvBBWOuqgC;

1.4
date	2020.06.05.16.48.16;	author micha;	state Exp;
branches;
next	1.3;
commitid	EzrL6B5rQuzzy3bC;

1.3
date	2019.10.04.13.32.05;	author micha;	state Exp;
branches;
next	1.2;
commitid	R7vjmgmgPkonlyFB;

1.2
date	2019.03.19.14.19.45;	author wiz;	state Exp;
branches;
next	1.1;
commitid	ONu22lAOkTxn0ZfB;

1.1
date	2018.11.10.19.49.47;	author wiz;	state Exp;
branches;
next	;
commitid	tGmqMMdVsQKRYqZA;


desc
@@


1.15
log
@smake: remove Interix support
@
text
@# $NetBSD: Makefile.common,v 1.14 2025/03/30 21:10:42 wiz Exp $
# used by archivers/star/Makefile
# used by archivers/tartest/Makefile
# used by devel/smake/Makefile
# used by security/mdigest/Makefile
# used by shells/bosh/Makefile
# used by shells/pbosh/Makefile
# used by sysutils/cdrtools/Makefile
# used by sysutils/sformat/Makefile

# All packages based on the schilytools tarball should include this Makefile
# fragment to inherit and share the same pkgsrc platform specific code.

WRKSRC=		${WRKDIR}/schilytools

# smake ignores the "-j" option
MAKE_JOBS_SAFE=	no

# Map PKGSRC_COMPILER to CCOM used by schilytools build system.
.if !empty(PKGSRC_COMPILER:Mgcc)
MAKE_FLAGS+=	CCOM=gcc
.elif !empty(PKGSRC_COMPILER:Mclang)
MAKE_FLAGS+=	CCOM=clang
# Other compilers are currently untested, try to use them as cc
.else
MAKE_FLAGS+=	CCOM=cc
.endif

MAKE_FLAGS+=	LINKMODE=static

# Man pages with documentation of file formats should go to section 4 on
# SysV based systems. All supported systems that are treated by schilytools
# with "MANSTYLE= sysv" in the RULES/os-${OPSYS}.def" files must be caught
# by this check (IRIX and OSF/1 are treated with BSD style by schilytools).
# SunOS has switched to BSD style with release 11.4 (schilytools looks for
# the man page "Intro" in section 8 to detect this).
PLIST_VARS+=	bsd sysv
.if ${OPSYS} == "AIX" ||					\
	${OPSYS} == "HPUX" ||					\
	${OPSYS} == "SCO_SV" ||					\
	(${OPSYS} == "SunOS" &&					\
		!exists(/usr/share/man/man8/Intro.8)) ||	\
	${OPSYS} == "UnixWare"
PLIST.sysv=	yes
.else
PLIST.bsd=	yes
.endif

# tbl(1) of NetBSD 9 cannot be used and cripples the man pages, but man(1)
# from mandoc uses a builtin tbl that is good enough.
# This check should catch all supported OS that needs processed tables for
# man pages and have a tbl that can be used to do that.
.if ${OPSYS} == "AIX" ||		\
	${OPSYS} == "Cygwin" ||		\
	${OPSYS} == "Darwin" ||		\
	${OPSYS} == "DragonFly" ||	\
	${OPSYS} == "Haiku" ||		\
	${OPSYS} == "HPUX" ||		\
	${OPSYS} == "IRIX" ||		\
	${OPSYS} == "Linux" ||		\
	${OPSYS} == "Minix" ||		\
	${OPSYS} == "OSF1" ||		\
	${OPSYS} == "QNX" ||		\
	${OPSYS} == "SunOS"
USE_TOOLS+=	tbl
.endif
@


1.14
log
@*: remove MirBSD support
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.13 2023/04/21 14:08:01 micha Exp $
a39 1
	${OPSYS} == "Interix" ||				\
@


1.13
log
@devel/smake: Add "sysutils/sformat/Makefile" to list in "Makefile.common"
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.12 2023/04/21 12:57:19 micha Exp $
a62 1
	${OPSYS} == "MirBSD" ||		\
@


1.12
log
@devel/smake: Update to 1.7nb2

Remove patches (merged upstream).
Remove custom OS rules (no longer required according to upstream).

New features with AN-2023-04-19:

- RULES/os-sunos5.def: the manstyle detection code for sunos5 and
  newer was broken for GNU make.  Fix the code by moving the
  detection to a configure test setting the new make macro
  SOLARIS_MANSTYLE.  Users building with other make implementations
  or those using the bootstrap smake were not affected.
  Reported by: Michael Bäuerle.  Submitted by: Nico Sonack.

- libschily: no longer provide the symbols fgetline, getline.
  libschily used to provide these symbols as alternative names for
  js_getline and js_fgetline for compatibility with UNOS.  As
  their POSIX-incompatible signature causes problems when linking
  against musl statically, we now no longer provide these symbols
  by default.  Users wishing to restore the old behaviour should
  remove -DNO_GETLINE_COMPAT from CPPOPTS when compiling libschily.

- libschily: accordingly, the man pages getline(3) and fgetline(3)
  have been renamed to js_getline(3) and js_fgetline(3).

- RULES: fix HCC_COM expansion when CCOM=clang.  This fixes builds
  with GNU make when CCOM=clang.
  Submitted by: Nico Sonack.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.11 2023/01/25 16:04:26 micha Exp $
d9 1
@


1.11
log
@devel/smake: Update to 1.7

New features with AN-2023-01-12:

UPDATING:

- Solaris 11.4: man pages are now installed according to BSD
  conventions.  Users may need to manually remove the following
  old man pages on update: streamarchive.4, makefiles.4,
  makerules.4, changeset.4, sccschangeset.4, sccsfile.4,
  and star.4.


NEW FEATURES:

- RULES/os-sunos5.def: man pages will now be installed into
  BSD-style sections on Solaris >=11.4 and descendents.

- smake: add new -V option to print the expanded value of macros.
  Shamelessly stolen from bmake, this option makes it easy to
  debug make macros and to use their values in scripts.
  Submitted by Nico Sonack.

- RULES: add symlink for arm64 OpenBSD

- smake: fix a bug where CURDIR was not set when smake was called
  with -C $path and $path was an absolute path.
  Reported by illiliti@@protonmail.com.
  Submitted by Friedhelm Mehnert.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.10 2022/10/31 13:30:33 micha Exp $
a29 40
# OS rules
# Some rules were copied from old packages (that are now part of schilytools
# too) to not break what people have done in the past.
pre-configure:
	printf "Create OS rules...\n"
	cd ${WRKSRC}/RULES && . ${WRKSRC}/RULES/MKLINKS
	printf "Create pkgsrc OS rules...\n"
	cd ${WRKSRC}/RULES && unset r ;					\
	for i in arm mipsel mips64eb x86_64 sparc64 powerpc ;		\
	do								\
		r="$$r i386-netbsd-gcc.rul@@$$i-netbsd-gcc.rul" ;	\
		r="$$r i386-netbsd-cc.rul@@$$i-netbsd-cc.rul" ;		\
	done ;								\
	r="$$r i386-freebsd-gcc.rul@@x86_64-freebsd-gcc.rul" ;		\
	r="$$r i386-freebsd-cc.rul@@x86_64-freebsd-cc.rul" ;		\
	for i in netbsd-clang.rul netbsd-cc.rul netbsd-gcc.rul ;	\
	do								\
		r="$$r i386-$$i@@${MACHINE}-$$i" ;			\
	done ;								\
									\
	for i in $$r ;							\
	do								\
		existing=`printf "%s\\n" $$i | ${SED} -e 's/@@.*//'` ;	\
		target=`printf "%s\\n" $$i | ${SED} -e 's/.*@@//'` ;	\
		printf "%s " "$$target";				\
		if ${TEST} -e "$$existing" ; then : ;			\
		else							\
			printf "(Link target %s not present)\n"		\
				"$$existing";				\
			continue ;					\
		fi;							\
		if ${TEST} -e "$$target" ;				\
		then							\
			printf "(already present)\n" ;			\
		else							\
			${LN} -s "$$existing" "$$target" ;		\
			printf "(created)\n" ;				\
		fi;							\
	done

@


1.10
log
@devel/smake: Update to 1.6nb3

Add Interix, SCO_SV and UnixWare to list of OS with SysV man sections.
The changes for Solaris 11.4 are not in the 2022-10-16 release yet
(Issue #40). SunOS is still treated with SysV style unconditionally.

Bump PKGREVISION.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.9 2022/09/30 15:27:14 micha Exp $
d74 2
d77 6
a82 5
.if ${OPSYS} == "AIX" ||		\
	${OPSYS} == "HPUX" ||		\
	${OPSYS} == "Interix" ||	\
	${OPSYS} == "SCO_SV" ||		\
	${OPSYS} == "SunOS" ||		\
@


1.9
log
@devel/smake: Update to 1.6nb2

Makefile.common:
- Declare WRKSRC for schilytools releases from Codeberg
- Declare MAKE_JOBS_SAFE=no (smake ignores -j option).
- Force link mode to static (on all operating systems).
  Required to get same behaviour as before on FreeBSD.

Bump PKGREVISION.


Changelog from AN-2022-09-18:
With great sadness we report the death of schilytools main author and
long time maintainer Jörg Schilling (1955-03-27--2021-10-10).  Jörg, we
miss you!  After his passing, development has been picked up by a group
of volunteers who would like to keep the project alive and well.  Our
goal is to carefully preserve the portability and compatibility of this
project while extending it to new platforms and implementing new tools
and features that fit the tool set.

As a part of the change in management, the schilytools project has moved
from Sourceforge to Codeberg.

- general: Explain how to contribute and update README

- general: Add list of contributors

- all: Misc spelling fixes
  Submitted by Friedhelm Mehnert.

- all: Update E-Mail address and project URL in many places.
  Jörg's old joerg@@schily.net address is defunct and so is his
  postal address.  As a part of an ongoing documentation cleanup,
  these addresses have been replaced by our new project pages in
  many locations.
  Submitted by Nico Sonack.

- man pages: work around buggy syntax highlighting by adding
  \" " comments into various places.
  Submitted by Nico Sonack.

- RULES: Fix build on macOS 12.4

- RULES: add i386-openbsd-clang.rul
  This should permit compilation on modern OpenBSD using clang as
  the system compiler.

- autoconf: Work around clang bug in #pragma weak detection.
  A clang compiler bug causing a crash in the configure test for
  #pragma weak has been worked around, permitting use of weak
  symbols when compiling with clang.

- tests: fix arm64/aarch64 architecture confusion on OpenBSD
  Submitted by Nico Sonack.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.8 2021/12/03 15:15:39 micha Exp $
d75 6
a80 3
.if ${OPSYS} == "AIX" ||	\
	${OPSYS} == "HPUX" ||	\
	${OPSYS} == "SunOS"
@


1.8
log
@devel/smake: Added "sysutils/cdrtools/Makefile" to Makefile.common
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.7 2021/06/25 13:41:48 micha Exp $
d13 5
d28 2
@


1.7
log
@archivers/tartest: Add version 1.23

Tartest reads a tar archive from stdin and checks this archive for
compliance with POSIX.1-1990.
@
text
@d1 1
a1 1
# $NetBSD$
d8 1
@


1.6
log
@devel/smake: Update to 1.5

Create OS rule for mips64eb architecture too (bulk build failed).

Changelog from AN-2021-05-19:
- smake: smake "MACRO += value" now works.

  smake did implement command line macros like "MACRO=value" since
  spring 1996 but did not yet support "MACRO +=value" as well.

- smake: smake "MACRO::=value" "MACRO:::=value", "MACRO +:= value"
  now work as well.

- smake: The man page now mentions the new command line macro operators
  ::=, :::=, += and +:=

- smake: Version bumped to 1.5

Changelog from AN-2021-06-07:
- smake: the MAKEFLAGS parser has been enhanced to understand the
  encoding used by the BSD make program "bmake". This is needed to
  support something like "bmake INS_BASE=xxx" on FreeBSD while
  compiling the schilytools.

  This parser enhancement also covers some incompatibilities with
  the MAKEFLAGS= values created by SunPro Make (e.g. a missing --
  before the make macro definitions are added).

  Thanks to Robert Clausecker for reporting.

- smake: The smake man page now also mentions SunPro make as dmake(1)
  and make(1s) in the "SEE ALSO" section.
@
text
@d3 1
@


1.5
log
@devel/smake: Whitespace corrected (space removed)

Found by pkglint.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.4 2020/06/05 16:48:16 micha Exp $
d4 1
d29 1
a29 1
	for i in arm mipsel x86_64 sparc64 powerpc ;			\
@


1.4
log
@devel/smake: Update to 1.3nb11

- Rebase to schilytools release 2020-05-25
- Add helper code for tbl (man page table preprocessor) to Makefile.common
- Add helper code for OS specific man page sections to Makefile.common
- Bump PKGREVISION
@
text
@d1 1
a1 1
# $NetBSD: Makefile.common,v 1.3 2019/10/04 13:32:05 micha Exp $
d90 1
a90 1
USE_TOOLS+= 	tbl
@


1.3
log
@smake: Update to 1.3nb5

Switch to latest distfile.

Changelog
=========

Release 2019-07-22:
- RULES/*: Changes CURDIR into CURWDIR as GNU make uses CURDIR and we
           added compatibility support to SunPro Make and smake.

- RULES: Added configuration symlinks for FreeBSD on PowerPC

- smake: The -C option now gives GNU make compatibility.
         - Multiple -C options are now supported
         - A new variable CURDIR has been implemented
         The old implementation from May 2009 did not yet support that.

Release 2019-08-13:
- smake: Added some code to trick out GCC that warns on a so called bit
         loss while enlarging the fastalloc() size parameter for alignment
         purposes.
@
text
@d1 1
a1 1
# $NetBSD$
d59 33
@


1.2
log
@smake: update to 1.3nb3.

Switch to latest distfile.
Update provided by Michael Bäuerle via pkgsrc-wip.

Changelog
=========

Release 2019-02-18:
- smake (psmake): a missing link to libschily/strnlen.c has been added.

Release 2019-03-11:
- psmake: cpfiles/lnfiles/rmlinks now contain a line for the new
          include/schily/type_val.h
@
text
@@


1.1
log
@devel/smake: import smake-1.3nb2

Packaged for wip by Michael Bäuerle.

Schily make

Highly portable UNIX make implementation written by Joerg Schilling.
@
text
@a34 3
	${SED} -e 's/cc-gcc.rul/cc-$$(C_ARCH).rul/'			\
		 i386-netbsd-gcc.rul >pkgsrc_i386-netbsd-clang.rul ;	\
	r="$$r pkgsrc_i386-netbsd-clang.rul@@i386-netbsd-clang.rul" ;	\
@

