head	1.58;
access;
symbols
	pkgsrc-2026Q1:1.58.0.2
	pkgsrc-2026Q1-base:1.58
	pkgsrc-2025Q4:1.57.0.6
	pkgsrc-2025Q4-base:1.57
	pkgsrc-2025Q3:1.57.0.4
	pkgsrc-2025Q3-base:1.57
	pkgsrc-2025Q2:1.57.0.2
	pkgsrc-2025Q2-base:1.57
	pkgsrc-2025Q1:1.54.0.14
	pkgsrc-2025Q1-base:1.54
	pkgsrc-2024Q4:1.54.0.12
	pkgsrc-2024Q4-base:1.54
	pkgsrc-2024Q3:1.54.0.10
	pkgsrc-2024Q3-base:1.54
	pkgsrc-2024Q2:1.54.0.8
	pkgsrc-2024Q2-base:1.54
	pkgsrc-2024Q1:1.54.0.6
	pkgsrc-2024Q1-base:1.54
	pkgsrc-2023Q4:1.54.0.4
	pkgsrc-2023Q4-base:1.54
	pkgsrc-2023Q3:1.54.0.2
	pkgsrc-2023Q3-base:1.54
	pkgsrc-2023Q2:1.53.0.18
	pkgsrc-2023Q2-base:1.53
	pkgsrc-2023Q1:1.53.0.16
	pkgsrc-2023Q1-base:1.53
	pkgsrc-2022Q4:1.53.0.14
	pkgsrc-2022Q4-base:1.53
	pkgsrc-2022Q3:1.53.0.12
	pkgsrc-2022Q3-base:1.53
	pkgsrc-2022Q2:1.53.0.10
	pkgsrc-2022Q2-base:1.53
	pkgsrc-2022Q1:1.53.0.8
	pkgsrc-2022Q1-base:1.53
	pkgsrc-2021Q4:1.53.0.6
	pkgsrc-2021Q4-base:1.53
	pkgsrc-2021Q3:1.53.0.4
	pkgsrc-2021Q3-base:1.53
	pkgsrc-2021Q2:1.53.0.2
	pkgsrc-2021Q2-base:1.53
	pkgsrc-2021Q1:1.52.0.4
	pkgsrc-2021Q1-base:1.52
	pkgsrc-2020Q4:1.52.0.2
	pkgsrc-2020Q4-base:1.52
	pkgsrc-2020Q3:1.51.0.4
	pkgsrc-2020Q3-base:1.51
	pkgsrc-2020Q2:1.51.0.2
	pkgsrc-2020Q2-base:1.51
	pkgsrc-2020Q1:1.50.0.2
	pkgsrc-2020Q1-base:1.50
	pkgsrc-2019Q4:1.50.0.4
	pkgsrc-2019Q4-base:1.50
	pkgsrc-2019Q3:1.49.0.24
	pkgsrc-2019Q3-base:1.49
	pkgsrc-2019Q2:1.49.0.22
	pkgsrc-2019Q2-base:1.49
	pkgsrc-2019Q1:1.49.0.20
	pkgsrc-2019Q1-base:1.49
	pkgsrc-2018Q4:1.49.0.18
	pkgsrc-2018Q4-base:1.49
	pkgsrc-2018Q3:1.49.0.16
	pkgsrc-2018Q3-base:1.49
	pkgsrc-2018Q2:1.49.0.14
	pkgsrc-2018Q2-base:1.49
	pkgsrc-2018Q1:1.49.0.12
	pkgsrc-2018Q1-base:1.49
	pkgsrc-2017Q4:1.49.0.10
	pkgsrc-2017Q4-base:1.49
	pkgsrc-2017Q3:1.49.0.8
	pkgsrc-2017Q3-base:1.49
	pkgsrc-2017Q2:1.49.0.4
	pkgsrc-2017Q2-base:1.49
	pkgsrc-2017Q1:1.49.0.2
	pkgsrc-2017Q1-base:1.49
	pkgsrc-2016Q4:1.48.0.8
	pkgsrc-2016Q4-base:1.48
	pkgsrc-2016Q3:1.48.0.6
	pkgsrc-2016Q3-base:1.48
	pkgsrc-2016Q2:1.48.0.4
	pkgsrc-2016Q2-base:1.48
	pkgsrc-2016Q1:1.48.0.2
	pkgsrc-2016Q1-base:1.48
	pkgsrc-2015Q4:1.46.0.4
	pkgsrc-2015Q4-base:1.46
	pkgsrc-2015Q3:1.46.0.2
	pkgsrc-2015Q3-base:1.46
	pkgsrc-2015Q2:1.44.0.12
	pkgsrc-2015Q2-base:1.44
	pkgsrc-2015Q1:1.44.0.10
	pkgsrc-2015Q1-base:1.44
	pkgsrc-2014Q4:1.44.0.8
	pkgsrc-2014Q4-base:1.44
	pkgsrc-2014Q3:1.44.0.6
	pkgsrc-2014Q3-base:1.44
	pkgsrc-2014Q2:1.44.0.4
	pkgsrc-2014Q2-base:1.44
	pkgsrc-2014Q1:1.44.0.2
	pkgsrc-2014Q1-base:1.44
	pkgsrc-2013Q4:1.43.0.6
	pkgsrc-2013Q4-base:1.43
	pkgsrc-2013Q3:1.43.0.4
	pkgsrc-2013Q3-base:1.43
	pkgsrc-2013Q2:1.43.0.2
	pkgsrc-2013Q2-base:1.43
	pkgsrc-2013Q1:1.42.0.4
	pkgsrc-2013Q1-base:1.42
	pkgsrc-2012Q4:1.42.0.2
	pkgsrc-2012Q4-base:1.42
	pkgsrc-2012Q3:1.41.0.2
	pkgsrc-2012Q3-base:1.41
	pkgsrc-2012Q2:1.40.0.2
	pkgsrc-2012Q2-base:1.40
	pkgsrc-2012Q1:1.38.0.2
	pkgsrc-2012Q1-base:1.38
	pkgsrc-2011Q4:1.37.0.16
	pkgsrc-2011Q4-base:1.37
	pkgsrc-2011Q3:1.37.0.14
	pkgsrc-2011Q3-base:1.37
	pkgsrc-2011Q2:1.37.0.12
	pkgsrc-2011Q2-base:1.37
	pkgsrc-2011Q1:1.37.0.10
	pkgsrc-2011Q1-base:1.37
	pkgsrc-2010Q4:1.37.0.8
	pkgsrc-2010Q4-base:1.37
	pkgsrc-2010Q3:1.37.0.6
	pkgsrc-2010Q3-base:1.37
	pkgsrc-2010Q2:1.37.0.4
	pkgsrc-2010Q2-base:1.37
	pkgsrc-2010Q1:1.37.0.2
	pkgsrc-2010Q1-base:1.37
	pkgsrc-2009Q4:1.36.0.2
	pkgsrc-2009Q4-base:1.36
	pkgsrc-2009Q3:1.35.0.22
	pkgsrc-2009Q3-base:1.35
	pkgsrc-2009Q2:1.35.0.20
	pkgsrc-2009Q2-base:1.35
	pkgsrc-2009Q1:1.35.0.18
	pkgsrc-2009Q1-base:1.35
	pkgsrc-2008Q4:1.35.0.16
	pkgsrc-2008Q4-base:1.35
	pkgsrc-2008Q3:1.35.0.14
	pkgsrc-2008Q3-base:1.35
	cube-native-xorg:1.35.0.12
	cube-native-xorg-base:1.35
	pkgsrc-2008Q2:1.35.0.10
	pkgsrc-2008Q2-base:1.35
	cwrapper:1.35.0.8
	pkgsrc-2008Q1:1.35.0.6
	pkgsrc-2008Q1-base:1.35
	pkgsrc-2007Q4:1.35.0.4
	pkgsrc-2007Q4-base:1.35
	pkgsrc-2007Q3:1.35.0.2
	pkgsrc-2007Q3-base:1.35
	pkgsrc-2007Q2:1.34.0.4
	pkgsrc-2007Q2-base:1.34
	pkgsrc-2007Q1:1.34.0.2
	pkgsrc-2007Q1-base:1.34
	pkgsrc-2006Q4:1.33.0.2
	pkgsrc-2006Q4-base:1.33
	pkgsrc-2006Q3:1.29.0.4
	pkgsrc-2006Q3-base:1.29
	pkgsrc-2006Q2:1.29.0.2
	pkgsrc-2006Q2-base:1.29
	pkgsrc-2006Q1:1.28.0.2
	pkgsrc-2006Q1-base:1.28
	pkgsrc-2005Q4:1.27.0.2
	pkgsrc-2005Q4-base:1.27
	pkgsrc-2005Q3:1.25.0.4
	pkgsrc-2005Q3-base:1.25
	pkgsrc-2005Q2:1.25.0.2
	pkgsrc-2005Q2-base:1.25
	pkgsrc-2005Q1:1.23.0.2
	pkgsrc-2005Q1-base:1.23
	pkgsrc-2004Q4:1.22.0.6
	pkgsrc-2004Q4-base:1.22
	pkgsrc-2004Q3:1.22.0.4
	pkgsrc-2004Q3-base:1.22
	pkgsrc-2004Q2:1.22.0.2
	pkgsrc-2004Q2-base:1.22
	pkgsrc-2004Q1:1.21.0.2
	pkgsrc-2004Q1-base:1.21
	pkgsrc-2003Q4:1.20.0.2
	pkgsrc-2003Q4-base:1.20
	netbsd-1-6-1:1.17.0.4
	netbsd-1-6-1-base:1.17
	netbsd-1-6:1.17.0.6
	netbsd-1-6-RELEASE-base:1.17
	pkgviews:1.17.0.2
	pkgviews-base:1.17
	buildlink2:1.16.0.2
	buildlink2-base:1.16
	netbsd-1-5-PATCH003:1.16
	netbsd-1-5-PATCH001:1.15
	netbsd-1-5-RELEASE:1.14
	netbsd-1-4-PATCH003:1.14
	netbsd-1-4-PATCH002:1.13
	comdex-fall-1999:1.12
	netbsd-1-4-PATCH001:1.5
	netbsd-1-4-RELEASE:1.5
	netbsd-1-3-PATCH003:1.5
	FreeBSD-current-98-05-19:1.1.1.1
	FREEBSD:1.1.1;
locks; strict;
comment	@# @;


1.58
date	2026.01.13.07.31.03;	author wiz;	state Exp;
branches;
next	1.57;
commitid	6P6uYcbC2mr3EcqG;

1.57
date	2025.05.13.11.59.37;	author nia;	state Exp;
branches;
next	1.56;
commitid	yB9ruhIZTIcq0KUF;

1.56
date	2025.05.13.11.57.42;	author nia;	state Exp;
branches;
next	1.55;
commitid	76BFZr48UOkLZJUF;

1.55
date	2025.05.13.11.33.17;	author nia;	state Exp;
branches;
next	1.54;
commitid	RVw7CkgzVePnRJUF;

1.54
date	2023.08.18.05.19.23;	author mlelstv;	state Exp;
branches;
next	1.53;
commitid	HduaGgZvyceBaeBE;

1.53
date	2021.04.25.07.51.25;	author mrg;	state Exp;
branches;
next	1.52;
commitid	2be6PSHExaL5aEQC;

1.52
date	2020.12.23.16.28.47;	author mlelstv;	state Exp;
branches;
next	1.51;
commitid	lX0QMZbwVn2mZSAC;

1.51
date	2020.05.20.06.09.07;	author rillig;	state Exp;
branches;
next	1.50;
commitid	YzMn9nHhuSomwW8C;

1.50
date	2019.11.04.19.17.11;	author rillig;	state Exp;
branches;
next	1.49;
commitid	VV3SUJeRlcUbgzJB;

1.49
date	2017.01.04.22.34.47;	author roy;	state Exp;
branches;
next	1.48;
commitid	PeRnTd8gVeIGAHAz;

1.48
date	2016.02.25.16.30.31;	author jperkin;	state Exp;
branches;
next	1.47;
commitid	AUF5kAMjHFOsFjWy;

1.47
date	2016.01.24.16.14.45;	author jperkin;	state Exp;
branches;
next	1.46;
commitid	6ZtJ8Q9tACZQncSy;

1.46
date	2015.08.18.07.31.16;	author wiz;	state Exp;
branches;
next	1.45;
commitid	UPpMIsB3AWu1PIxy;

1.45
date	2015.08.17.17.11.28;	author wiz;	state Exp;
branches;
next	1.44;
commitid	QQGz11WX4WB14Exy;

1.44
date	2014.01.02.08.00.32;	author dholland;	state Exp;
branches;
next	1.43;
commitid	q1kpJfNOXKnB2wjx;

1.43
date	2013.05.18.11.15.00;	author mlelstv;	state Exp;
branches;
next	1.42;
commitid	0lsIi5qAOXDPt6Qw;

1.42
date	2012.10.08.12.27.41;	author asau;	state Exp;
branches;
next	1.41;

1.41
date	2012.07.08.10.16.32;	author sbd;	state Exp;
branches;
next	1.40;

1.40
date	2012.04.07.22.49.54;	author dholland;	state Exp;
branches;
next	1.39;

1.39
date	2012.04.07.20.06.15;	author dholland;	state Exp;
branches;
next	1.38;

1.38
date	2012.04.07.11.47.19;	author obache;	state Exp;
branches
	1.38.2.1;
next	1.37;

1.37
date	2010.03.13.05.05.51;	author obache;	state Exp;
branches;
next	1.36;

1.36
date	2009.11.30.00.38.47;	author dholland;	state Exp;
branches;
next	1.35;

1.35
date	2007.07.29.14.33.12;	author joerg;	state Exp;
branches;
next	1.34;

1.34
date	2007.03.24.19.21.31;	author joerg;	state Exp;
branches;
next	1.33;

1.33
date	2006.11.12.01.28.03;	author rillig;	state Exp;
branches;
next	1.32;

1.32
date	2006.10.15.16.43.37;	author schwarz;	state Exp;
branches;
next	1.31;

1.31
date	2006.10.15.10.27.53;	author schwarz;	state Exp;
branches;
next	1.30;

1.30
date	2006.10.14.19.33.45;	author schwarz;	state Exp;
branches;
next	1.29;

1.29
date	2006.06.01.23.11.29;	author joerg;	state Exp;
branches;
next	1.28;

1.28
date	2006.03.04.21.30.26;	author jlam;	state Exp;
branches;
next	1.27;

1.27
date	2005.12.01.19.33.10;	author wiz;	state Exp;
branches;
next	1.26;

1.26
date	2005.12.01.19.32.47;	author wiz;	state Exp;
branches;
next	1.25;

1.25
date	2005.04.11.11.05.47;	author schwarz;	state Exp;
branches;
next	1.24;

1.24
date	2005.03.24.21.12.59;	author wiz;	state Exp;
branches;
next	1.23;

1.23
date	2004.12.25.06.39.42;	author kim;	state Exp;
branches;
next	1.22;

1.22
date	2004.05.03.12.56.10;	author kim;	state Exp;
branches;
next	1.21;

1.21
date	2004.03.22.10.25.26;	author wiz;	state Exp;
branches;
next	1.20;

1.20
date	2003.07.17.22.52.08;	author grant;	state Exp;
branches;
next	1.19;

1.19
date	2003.06.02.01.17.36;	author jschauma;	state Exp;
branches;
next	1.18;

1.18
date	2003.04.25.20.34.10;	author wiz;	state Exp;
branches;
next	1.17;

1.17
date	2002.07.08.02.21.18;	author kim;	state Exp;
branches;
next	1.16;

1.16
date	2002.03.13.23.07.29;	author jmc;	state Exp;
branches;
next	1.15;

1.15
date	2001.02.17.17.54.49;	author wiz;	state Exp;
branches;
next	1.14;

1.14
date	2000.09.09.23.26.46;	author wiz;	state Exp;
branches;
next	1.13;

1.13
date	2000.02.27.23.37.53;	author tron;	state Exp;
branches;
next	1.12;

1.12
date	99.09.20.21.43.32;	author kim;	state Exp;
branches;
next	1.11;

1.11
date	99.09.14.14.07.43;	author tron;	state Exp;
branches;
next	1.10;

1.10
date	99.08.23.10.59.18;	author tron;	state Exp;
branches;
next	1.9;

1.9
date	99.08.22.22.59.59;	author kim;	state Exp;
branches;
next	1.8;

1.8
date	99.08.22.22.55.45;	author kim;	state Exp;
branches;
next	1.7;

1.7
date	99.08.18.09.08.10;	author agc;	state Exp;
branches;
next	1.6;

1.6
date	99.07.26.19.47.37;	author tron;	state Exp;
branches;
next	1.5;

1.5
date	98.06.22.13.00.14;	author agc;	state Exp;
branches;
next	1.4;

1.4
date	98.05.22.08.51.32;	author tron;	state Exp;
branches;
next	1.3;

1.3
date	98.05.20.06.31.29;	author tron;	state Exp;
branches;
next	1.2;

1.2
date	98.05.19.22.26.39;	author tron;	state Exp;
branches;
next	1.1;

1.1
date	98.05.19.20.45.52;	author tron;	state Exp;
branches
	1.1.1.1;
next	;

1.38.2.1
date	2012.04.08.09.19.15;	author sbd;	state Exp;
branches;
next	;

1.1.1.1
date	98.05.19.20.45.52;	author tron;	state Exp;
branches;
next	;


desc
@@


1.58
log
@nn: update HOMEPAGE and MASTER_SITES
@
text
@# $NetBSD: Makefile,v 1.57 2025/05/13 11:59:37 nia Exp $

DISTNAME=	nn-6.7.3
PKGREVISION=	6
CATEGORIES=	news
MASTER_SITES=	http://www.nndev.org/pub/nn-6.7/
EXTRACT_SUFX=	.tar.Z

MAINTAINER=	pkgsrc-users@@NetBSD.org
HOMEPAGE=	https://www.nndev.org/
COMMENT=	Text-based newsreader

PKG_SYSCONFSUBDIR=	nntp

TOOL_DEPENDS+=	tradcpp-[0-9]*:../../devel/tradcpp

CPPFLAGS.IRIX+=	-DHAVE_TERMIO_H

# decode.c: In function 'decode_line':
# decode.c:132:22: error: array subscript has type 'char' [-Werror=char-subscripts]
#      if ((blen = trtbl[buf[0]]) < 0) {
# Maybe fix this later.
BUILDLINK_TRANSFORM+=	rm:-Werror=char-subscripts

OPSYSVARS+=	SFILE
SFILE.SunOS=	s-sunos5.h
SFILE.Linux=	s-linux.h
SFILE.*=	s-netbsd.h

.include "../../mk/bsd.prefs.mk"

.if ${MACHINE_ARCH} == "i386"
MFILE=	m-i80386.h
.elif ${MACHINE_ARCH:Mmips*}
MFILE=	m-mipsel.h
.elif ${MACHINE_CPU} == "aarch64" || ${MACHINE_CPU} == "arm"
MFILE=	m-arm.h
.else
MFILE=	m-${MACHINE_ARCH}.h
.endif

INSTALLATION_DIRS=	bin ${PKGMANDIR}/man1 ${PKGMANDIR}/man8

post-patch:
	${SED} -e ' \
	    s#@@PREFIX@@#${PREFIX}#; \
	    s#@@PKG_SYSCONFDIR@@#${PKG_SYSCONFDIR}#; \
	    s#@@PKGMANDIR@@#${PKGMANDIR}#; \
	    s#@@BINOWN@@#${BINOWN}#; \
	    s#@@BINGRP@@#${BINGRP}#; \
	    s#@@MFILE@@#${MFILE}#; \
	    s#@@SFILE@@#${SFILE}#' \
	    <${WRKSRC}/config.h-dist >${WRKSRC}/config.h
	${CP} ${FILESDIR}/s-netbsd.h ${WRKSRC}/conf/s-netbsd.h
	${CP} ${FILESDIR}/m-powerpc.h ${WRKSRC}/conf/m-powerpc.h
	${CP} ${FILESDIR}/m-sparc64.h ${WRKSRC}/conf/m-sparc64.h
	${CP} ${FILESDIR}/m-x86_64.h ${WRKSRC}/conf/m-x86_64.h
	${CP} ${WRKSRC}/conf/m-m680x0.h ${WRKSRC}/conf/m-m68k.h

SUBST_CLASSES+=		fix-dest
SUBST_STAGE.fix-dest=	post-build
SUBST_SED.fix-dest=	-e 's,${PREFIX},${DESTDIR}${PREFIX},'
SUBST_FILES.fix-dest=	inst


.include "../../mk/terminfo.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
@


1.57
log
@nn: Delint.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.56 2025/05/13 11:57:42 nia Exp $
d6 1
a6 1
MASTER_SITES=	ftp://ftp.nndev.org/pub/nn-6.7/
d10 1
a10 1
HOMEPAGE=	http://www.nndev.org/
@


1.56
log
@nn: Add support for 64-bit mips.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.55 2025/05/13 11:33:17 nia Exp $
d4 1
a4 1
PKGREVISION=	5
d11 1
a11 1
COMMENT=	NN newsreader
d45 1
a45 1
	@@${SED} -e ' \
d54 5
a58 5
	@@${CP} ${FILESDIR}/s-netbsd.h ${WRKSRC}/conf/s-netbsd.h
	@@${CP} ${FILESDIR}/m-powerpc.h ${WRKSRC}/conf/m-powerpc.h
	@@${CP} ${FILESDIR}/m-sparc64.h ${WRKSRC}/conf/m-sparc64.h
	@@${CP} ${FILESDIR}/m-x86_64.h ${WRKSRC}/conf/m-x86_64.h
	@@${CP} ${WRKSRC}/conf/m-m680x0.h ${WRKSRC}/conf/m-m68k.h
@


1.55
log
@nn: Add support for sparc64.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.54 2023/08/18 05:19:23 mlelstv Exp $
d34 1
a34 1
.elif ${MACHINE_ARCH} == "mipseb"
@


1.54
log
@fix build for arm32.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.53 2021/04/25 07:51:25 mrg Exp $
d56 1
@


1.53
log
@various fixes for arm64 big endian support.

most of these simply extend matching from "aarch64" to "aarch64eb"
in various forms of code.  most remaining uses in pkgsrc of
"MACHINE_ARCH == aarch64" are because of missing aarch64eb support,
such as most of the binary-bootstrap requiring languages like rust,
go, and java.

no pkg-bump because this shouldn't change packages on systems that
could already build all of these.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.52 2020/12/23 16:28:47 mlelstv Exp $
d36 1
a36 1
.elif ${MACHINE_CPU} == "aarch64"
@


1.52
log
@Build aarch64 like (32bit) arm.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.51 2020/05/20 06:09:07 rillig Exp $
d36 1
a36 1
.elif ${MACHINE_ARCH} == "aarch64"
@


1.51
log
@mark packages that fail with -Werror=char-subscripts

These packages are susceptible to bugs when confronted with non-ASCII
characters.

See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94182.

It takes some time to analyze and fix these individually, therefore they
are only marked as "needs work".
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.50 2019/11/04 19:17:11 rillig Exp $
d36 2
@


1.50
log
@news: align variable assignments

pkglint -Wall -F --only aligned --only indent -r

No manual corrections.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.49 2017/01/04 22:34:47 roy Exp $
d19 6
@


1.49
log
@nn really uses terminfo
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.48 2016/02/25 16:30:31 jperkin Exp $
d27 1
a27 1
MFILE=		m-i80386.h
d29 1
a29 1
MFILE=         m-mipsel.h
d31 1
a31 1
MFILE=		m-${MACHINE_ARCH}.h
@


1.48
log
@Use OPSYSVARS.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.47 2016/01/24 16:14:45 jperkin Exp $
d4 1
a4 1
PKGREVISION=	4
d57 1
a57 1
.include "../../devel/ncurses/buildlink3.mk"
@


1.47
log
@Attempt to bring sanity to how ABI and MACHINE_ARCH are set.

Previously there were at least 5 different ways MACHINE_ARCH could be set,
some statically and some at run time, and in many cases these settings
differed, leading to issues at pkg_add time where there was conflict
between the setting encoded into the package and that used by pkg_install.

Instead, move to a single source of truth where the correct value based on
the host and the chosen (or default) ABI is determined in the bootstrap
script.  The value can still be overridden in mk.conf if necessary, e.g.
for cross-compiling.

ABI is now set by default and if unset a default is calculated based on
MACHINE_ARCH.  This fixes some OS, e.g. Linux, where the wrong default was
previously chosen.

As a result of the refactoring there is no need for LOWER_ARCH, with
references to it replaced by MACHINE_ARCH.  SPARC_TARGET_ARCH is also
removed.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.46 2015/08/18 07:31:16 wiz Exp $
d17 7
a24 9
.include "../../mk/compiler.mk"

.if ${OPSYS} == "SunOS"
SFILE=		s-sunos5.h
.elif ${OPSYS} == "Linux"
SFILE=		s-linux.h
.else
SFILE=		s-netbsd.h
.endif
a33 4
.if ${OPSYS} == "IRIX"
CPPFLAGS+=	-DHAVE_TERMIO_H
.endif

@


1.46
log
@Bump all packages that depend on curses.bui* or terminfo.bui* since they
might incur ncurses dependencies on some platforms, and ncurses just bumped
its shlib.
Some packages were bumped twice now, sorry for that.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.45 2015/08/17 17:11:28 wiz Exp $
d33 1
a33 1
MFILE=		m-${LOWER_ARCH}.h
@


1.45
log
@Bump PKGREVISION for ncurses shlib bump.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.44 2014/01/02 08:00:32 dholland Exp $
d4 1
a4 1
PKGREVISION=	3
@


1.44
log
@Remove Dragonfly hack and use tradcpp for cpp'ing the makefiles.
Should fix Solaris build; the Solaris compiler's cpp is crashing.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.43 2013/05/18 11:15:00 mlelstv Exp $
d4 1
a4 1
PKGREVISION=	2
@


1.43
log
@Fix config to use termios instead of COMPAT_43 functionality.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.42 2012/10/08 12:27:41 asau Exp $
d15 2
a35 4
.if ${OPSYS} == "DragonFly" || !empty(CC_VERSION:Mgcc*)
CPP+=		-traditional
.endif

@


1.42
log
@Drop PKG_DESTDIR_SUPPORT setting, "user-destdir" is default these days.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.41 2012/07/08 10:16:32 sbd Exp $
d4 1
a4 1
PKGREVISION=	1
@


1.41
log
@Add missing ncurses buildlink.

Bump PKGREVISION.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.40 2012/04/07 22:49:54 dholland Exp $
a12 2
PKG_DESTDIR_SUPPORT=	user-destdir

@


1.40
log
@Oops, do previous correctly.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.39 2012/04/07 20:06:15 dholland Exp $
d4 1
d67 1
@


1.39
log
@Use cpp -traditional whenever the compiler is gcc, not just on Dragonfly.
This is only required for gcc 4.4 (I think) and up where otherwise cpp
doesn't preserve whitespace, but it should be harmless for all gcc
versions ranging back to the prehistorical.

Fixes problems caused by running cpp on makefiles.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.38 2012/04/07 11:47:19 obache Exp $
d17 1
d35 1
a35 1
.if ${OPSYS} == "DragonFly" || !empty(CC_VERSION:Mgcc)
@


1.38
log
@Add user-destdir installation support.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.37 2010/03/13 05:05:51 obache Exp $
d34 1
a34 1
.if ${OPSYS} == "DragonFly"
@


1.38.2.1
log
@Pullup ticket #3712 - requested by dholland
news/nn build fix

Revisions pulled up:
- news/nn/Makefile                                              1.39-1.40

---
   Module Name:	pkgsrc
   Committed By:	dholland
   Date:		Sat Apr  7 20:06:15 UTC 2012

   Modified Files:
   	pkgsrc/news/nn: Makefile

   Log Message:
   Use cpp -traditional whenever the compiler is gcc, not just on Dragonfly.
   This is only required for gcc 4.4 (I think) and up where otherwise cpp
   doesn't preserve whitespace, but it should be harmless for all gcc
   versions ranging back to the prehistorical.

   Fixes problems caused by running cpp on makefiles.

---
   Module Name:	pkgsrc
   Committed By:	dholland
   Date:		Sat Apr  7 22:49:54 UTC 2012

   Modified Files:
   	pkgsrc/news/nn: Makefile

   Log Message:
   Oops, do previous correctly.
@
text
@d1 1
a1 1
# $NetBSD$
a16 1
.include "../../mk/compiler.mk"
d34 1
a34 1
.if ${OPSYS} == "DragonFly" || !empty(CC_VERSION:Mgcc*)
@


1.37
log
@set HOMEPAGE.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.36 2009/11/30 00:38:47 dholland Exp $
d12 2
d59 6
@


1.36
log
@Add build config for amd64.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.35 2007/07/29 14:33:12 joerg Exp $
d9 1
@


1.35
log
@Use MACHINE_ARCH instead of LOWER_ARCH in conditionals.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.34 2007/03/24 19:21:31 joerg Exp $
d53 1
@


1.34
log
@Prepare for switching to NO_MTREE=yes.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.33 2006/11/12 01:28:03 rillig Exp $
d23 1
a23 1
.if ${LOWER_ARCH} == "i386"
d25 1
a25 1
.elif ${LOWER_ARCH} == "mipseb"
@


1.33
log
@Fixed PKGMANDIR and made the package build on NetBSD.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.32 2006/10/15 16:43:37 schwarz Exp $
d39 2
@


1.32
log
@
- do not explicitly pass CC to MAKE_ENV as pkgsrc already does so
- added fixes for IRIX
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.31 2006/10/15 10:27:53 schwarz Exp $
d43 1
@


1.31
log
@
updated download path
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.30 2006/10/14 19:33:45 schwarz Exp $
d35 3
a37 1
MAKE_ENV+=	CC=${CC:Q}
@


1.30
log
@updated news/nn to 6.7.3. Changes from 6.6.5 according to nn's ChangeLog
are various bug fixes and code cleanups.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.29 2006/06/01 23:11:29 joerg Exp $
d5 1
a5 2
MASTER_SITES=	ftp://ftp.nndev.org/pub/nn-6.6/ \
		ftp://ftp.nndev.org/pub/nn-6.6/old/
@


1.29
log
@Fix errno. On DragonFly, force -traditional for cpp.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.28 2006/03/04 21:30:26 jlam Exp $
d3 1
a3 1
DISTNAME=	nn-6.6.5
@


1.28
log
@Point MAINTAINER to pkgsrc-users@@NetBSD.org in the case where no
developer is officially maintaining the package.

The rationale for changing this from "tech-pkg" to "pkgsrc-users" is
that it implies that any user can try to maintain the package (by
submitting patches to the mailing list).  Since the folks most likely
to care about the package are the folks that want to use it or are
already using it, this would leverage the energy of users who aren't
developers.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.27 2005/12/01 19:33:10 wiz Exp $
d32 4
@


1.27
log
@Remove "${CC}" with ${CC:Q}.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.26 2005/12/01 19:32:47 wiz Exp $
d9 1
a9 1
MAINTAINER=	tech-pkg@@NetBSD.org
@


1.26
log
@Remove obsolete and unused USE_INN from BUILD_DEFS.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.25 2005/04/11 11:05:47 schwarz Exp $
d32 1
a32 1
MAKE_ENV+=	CC="${CC}"
@


1.25
log
@
updated nn to 6.6.5. Changes approved by recht.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.24 2005/03/24 21:12:59 wiz Exp $
a13 2
BUILD_DEFS+=	USE_INN

@


1.24
log
@Remove FreeBSD RCS Ids. pkgsrc has diverged too much for syncing to be
useful.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.23 2004/12/25 06:39:42 kim Exp $
d3 1
a3 2
DISTNAME=	nn-6.6.4
PKGREVISION=	1
d7 1
@


1.23
log
@Remove ftp.gw.com (mirror discontinued).
@
text
@d1 1
a1 3
# $NetBSD: Makefile,v 1.22 2004/05/03 12:56:10 kim Exp $
# FreeBSD Id: Makefile,v 1.14 1997/07/30 18:17:48 adam Exp
#
@


1.22
log
@Use PKG_SYSCONFDIR for finding the "server" file.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.21 2004/03/22 10:25:26 wiz Exp $
d8 1
a8 2
MASTER_SITES=	ftp://ftp.gw.com/pub/unix/news/nn/nn-6.6/ \
		ftp://ftp.nndev.org/pub/nn-6.6/ \
a9 2
# slightly different 6.6.4 distfile (4 bytes off in tar)
#		ftp://ftp.gw.com/pub/unix/news/nn/nn-6.6/old/
@


1.21
log
@Add support for mipseb, from PR 23906.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.20 2003/07/17 22:52:08 grant Exp $
d6 1
d17 2
d33 1
a33 1
.else if ${LOWER_ARCH} == "mipseb"
d44 1
@


1.20
log
@s/netbsd.org/NetBSD.org/
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.19 2003/06/02 01:17:36 jschauma Exp $
d30 2
@


1.19
log
@Use tech-pkg@@ in favor of packages@@ as MAINTAINER for orphaned packages.
Should anybody feel like they could be the maintainer for any of thewe packages,
please adjust.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.18 2003/04/25 20:34:10 wiz Exp $
d13 1
a13 1
MAINTAINER=	tech-pkg@@netbsd.org
@


1.18
log
@Comment out gw.com master site, since it contains a slightly different
source ball. Noted by Bob Kemp in PR 21320.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.17 2002/07/08 02:21:18 kim Exp $
d13 1
a13 1
MAINTAINER=	packages@@netbsd.org
@


1.17
log
@Upgrade to 6.6.4, which does not depend on an external inews program anymore.
This should avoid any vulnerability issues with INN.

NOTE:  The text files from lib/nn can now be found in share/nn instead.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.16 2002/03/13 23:07:29 jmc Exp $
a7 1
		ftp://ftp.gw.com/pub/unix/news/nn/nn-6.6/old/ \
d10 2
@


1.16
log
@Add powerpc support (distinct from the machine file for rs6000)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.15 2001/02/17 17:54:49 wiz Exp $
d5 1
a5 1
DISTNAME=	nn-6.5.4
d7 4
a10 2
MASTER_SITES=	ftp://ftp.gw.com/pub/unix/news/nn/ \
		ftp://ftp.visi.com/users/mtpins/nn/
a17 6

.if defined(USE_INN) && ${USE_INN} == YES
DEPENDS=	inn>=2.2:../inn
.else
DEPENDS=	nntpclnt-1.6.1:../nntpclnt
.endif
@


1.15
log
@Update to new COMMENT style: COMMENT var in Makefile instead of pkg/COMMENT.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.14 2000/09/09 23:26:46 wiz Exp $
d48 1
@


1.14
log
@Fix build on m68k; add a MASTER_SITE.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.13 2000/02/27 23:37:53 tron Exp $
d10 2
a11 1
MAINTAINER=     packages@@netbsd.org
@


1.13
log
@Update dependence for "inn" package.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.11 1999/09/14 14:07:43 tron Exp $
d7 2
a8 1
MASTER_SITES=	ftp://ftp.gw.com/pub/unix/news/nn/
d47 1
@


1.12
log
@Make this work on Solaris.

NOTE:  It is nice to have "make extract" just unpack and not overwrite
any files, so it can be used to investigate pkg problems.  This is why
I chose to not use "post-extract" to patch files.  I use "post-patch"
instead.

I'll need to test this on NetBSD now...
@
text
@d16 1
a16 1
DEPENDS=	inn-2.2:../inn
@


1.11
log
@Remove me as maintainer of this package. The current version was committed
by Kimmo Suominen.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.10 1999/08/23 10:59:18 tron Exp $
d21 25
a45 6
post-extract:
	@@${MV} ${WRKSRC}/config.h-dist ${WRKSRC}/config.h
	@@${SED} -e 's#@@@@PREFIX@@@@#${PREFIX}#; \
	  s#@@@@BINOWN@@@@#${BINOWN}#; \
	  s#@@@@BINGRP@@@@#${BINGRP}#' \
	  <${FILESDIR}/s-netbsd.h >${WRKSRC}/conf/s-netbsd.h
@


1.10
log
@Remove bogus master site.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.9 1999/08/22 22:59:59 kim Exp $
d9 1
a9 1
MAINTAINER=     tron@@netbsd.org
@


1.9
log
@Forgot to put in the original master site...
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.8 1999/08/22 22:55:45 kim Exp $
d7 1
a7 2
MASTER_SITES=	ftp://ftp.visi.com/users/mtpins/ \
		ftp://ftp.gw.com/pub/unix/news/nn/
@


1.8
log
@Upgrade to nn 6.5.4.  The main reason for the upgrade is to run completely
over NNTP without any access to a news spool file system.  NOV is accessed
using the XOVER command (INN has this and it is available for nntpd too).
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.7 1999/08/18 09:08:10 agc Exp $
d7 2
a8 1
MASTER_SITES=	ftp://ftp.gw.com/pub/unix/news/nn/
@


1.7
log
@Record build options in the BuildInfo file via BUILD_DEFS. These can be
displayed using the -B option to pkg_info(1).

Also clean up inclusion of files, and include a missing bsd.prefs.mk
@
text
@d1 2
a2 2
# $NetBSD: Makefile,v 1.6 1999/07/26 19:47:37 tron Exp $
# $FreeBSD Id: Makefile,v 1.14 1997/07/30 18:17:48 adam Exp
d5 1
a5 2
DISTNAME=	nn-6.5.0.b3
PKGNAME=	nn-6.5.0
d7 1
a7 2
MASTER_SITES=	ftp://uniwa.uwa.edu.au/pub/nn/old/beta/ \
		ftp://ftp.cs.tu-berlin.de/pub/net/news/nn.old/beta/
@


1.6
log
@New variable "USE_INN" to use "inn" instead of "nntclnt" to provide
"inews" binary for newsreaders.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 1998/06/22 13:00:14 agc Exp $
d13 3
a15 1
.include <../../mk/bsd.prefs.mk>
d30 1
a30 1
.include <../../mk/bsd.pkg.mk>
@


1.5
log
@Update package Makefiles for automatic manual page handling.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 1998/05/22 08:51:32 tron Exp $
d13 7
a19 1
DEPENDS=	nntpclnt-1.6.1:../../news/nntpclnt
@


1.4
log
@We use the inews from "nntpclnt-1.6.1" now.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 1998/05/20 06:31:29 tron Exp $
a13 4

MAN1=		nn.1 nncheck.1 nngoback.1 nngrab.1  nngrep.1 nnpost.1 \
		nntidy.1 nnacct.1 nnadmin.1 nnstats.1 nnusage.1
MAN8=		nnmaster.8 nnspew.8
@


1.3
log
@Add "ftp.cs.tu-berlin.de" to "${MASTER_SITES}".
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 1998/05/19 22:26:39 tron Exp $
d13 2
a24 9

post-build:
	(cd ${WRKSRC}/inews; ${MAKE} all)

pre-install:
	(cd ${WRKSRC}/inews; ${MAKE} install)

post-install:
	@@${ECHO} "Put your NNTP host into \"${PREFIX}/etc/nntp_server\" file."
@


1.2
log
@Adapt this package to NetBSD.
@
text
@d1 1
a1 1
# $NetBSD$
d8 2
a9 1
MASTER_SITES=	ftp://uniwa.uwa.edu.au/pub/nn/old/beta/
@


1.1
log
@Initial revision
@
text
@d1 1
a1 5
# New ports collection makefile for:	nn
# Version required:	6.5.0
# Date created:		24 September 1994
# Whom:			adam
#
d9 2
a10 1
MAINTAINER=     ports@@FreeBSD.ORG
d16 6
a21 2
pre-patch:
	@@${CP} ${WRKSRC}/config.h-dist ${WRKSRC}/config.h
d23 2
a24 2
pre-build:
	@@${CP} ${FILESDIR}/s-freebsd.h ${WRKSRC}/conf
d27 1
a27 3
	${MKDIR} ${PREFIX}/news
	[ -r ${PREFIX}/news/lib/inews ] || ( cd ${WRKSRC}/inews; ${MAKE} all )
	[ -r ${PREFIX}/news/lib/inews ] || ( cd ${WRKSRC}/inews; ${MAKE} install )
d30 1
a30 1
	@@${ECHO} Put your NNTP host into ${PREFIX}/etc/nntpserver file
d32 1
a32 1
.include <bsd.port.mk>
@


1.1.1.1
log
@Initial import of FreeBSD's "nn" port.
@
text
@@
