summaryrefslogtreecommitdiff
path: root/news/bystand/Makefile
blob: 8e5428da3f92c6b1cd5c3b96fe309a0d4a908053 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# $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"