[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / news / bystand

File: [cvs.NetBSD.org] / pkgsrc / news / bystand / Makefile (download)

Revision 1.12, Wed Nov 23 16:20:56 2022 UTC (2 months, 1 week ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2022Q4-base, pkgsrc-2022Q4, HEAD
Changes since 1.11: +2 -2 lines

massive revision bump after textproc/icu update

# $NetBSD: Makefile,v 1.12 2022/11/23 16:20:56 adam Exp $

DISTNAME=	bystand-1.2.0
PKGREVISION=	4
CATEGORIES=	news
MASTER_SITES=	http://zzo38computer.org/prog/bystand/
EXTRACT_SUFX=	.zip

MAINTAINER=	micha@NetBSD.org
HOMEPAGE=	http://zzo38computer.org/fossil/bystand.ui/
COMMENT=	NNTP client software with command-line interface
LICENSE=	public-domain

USE_LANGUAGES+=	c99

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

.if ${OPSYS} == "Linux" || ${OPSYS} == "GNUkFreeBSD"
# Makefile for GNU userland
BYSTAND_MAKEFILE=	Makefile
.else
# This Makefile builds a GNU compatibility module
BYSTAND_MAKEFILE=	Makefile.BSD
.endif

# harmless; index is only in range 0..3
BUILDLINK_TRANSFORM+=	rm:-Werror=char-subscripts

LDFLAGS.SunOS+=		-lsocket -lnsl

INSTALLATION_DIRS=	bin share/doc/bystand share/doc/bystand/setup

do-build:
	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \
		${MAKE} ${MAKE_FLAGS} -f ${BYSTAND_MAKEFILE}

do-install:
	cd ${WRKSRC} && ${INSTALL_PROGRAM} ${WRKSRC}/bystand \
		${DESTDIR}${PREFIX}/bin/bystand
	cd ${WRKSRC} && ${INSTALL_DATA} ${WRKSRC}/bystand.doc \
		${DESTDIR}${PREFIX}/share/doc/bystand/bystand.doc
	cd ${WRKSRC} && ${INSTALL_DATA} ${WRKSRC}/setup/README \
		${DESTDIR}${PREFIX}/share/doc/bystand/setup/README
	cd ${WRKSRC} && ${INSTALL_DATA} ${WRKSRC}/setup/schema \
		${DESTDIR}${PREFIX}/share/doc/bystand/setup/schema
	cd ${WRKSRC} && ${INSTALL_DATA} ${WRKSRC}/setup/template \
		${DESTDIR}${PREFIX}/share/doc/bystand/setup/template

# Builtin version of NetBSD 7 is not sufficient
# Minimum required API version is undocumented (use tested one)
BUILDLINK_API_DEPENDS.sqlite3+=	sqlite3>=3.33.0
.include "../../databases/sqlite3/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"