summaryrefslogtreecommitdiff
path: root/comms/fidogate/Makefile
blob: a38a083ff8aba361d9e14ad3496ff315c3be42b7 (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
# $NetBSD: Makefile,v 1.11 2001/02/22 03:00:14 tv Exp $
#

DISTNAME=	fidogate-4.4.2
CATEGORIES=	comms
MASTER_SITES=	ftp://ftp.fido.de/pub/fidogate/

MAINTAINER=	tv@netbsd.org
HOMEPAGE=	http://www.fido.de/fidogate/
COMMENT=	FidoNet (FTN) <-> Internet mail and news gateway

USE_GMAKE=	yes
USE_PERL5=	yes

INFO_FILES=	fidogate.info
MAKE_ENV=	PKGPREFIX=${PREFIX} DEBUG="${CFLAGS} -Werror"

# This ugliness is because config.make is parsed by both make(1) and
# subst.pl, which does only simplistic substitution.
do-configure:
	${SED} -e 's,@PREFIX@,${PREFIX},g' \
		${WRKSRC}/config.make >${WRKSRC}/config.make.new
	${MV} -f ${WRKSRC}/config.make.new ${WRKSRC}/config.make

pre-build:
	${RM} -f ${WRKSRC}/doc/fidogate.info*
	cd ${WRKSRC}/doc && makeinfo --no-split fidogate.texi && \
		${TOUCH} fidogate.txt html/fidogate_toc.html

pre-install:
	${INSTALL_DATA_DIR} \
		${PREFIX}/lib/fidogate \
		${PREFIX}/lib/fidogate/bin \
		${PREFIX}/share/doc/fidogate \
		${PREFIX}/share/examples/fidogate \
		${PREFIX}/share/fidogate \
		${PREFIX}/share/fidogate/sendmail \
		${PREFIX}/share/fidogate/sendmail/mailer

post-install:
	cd ${WRKSRC}/examples && for f in `${FIND} [m-p]* -type d`; do \
		${INSTALL_DATA_DIR} ${PREFIX}/share/examples/fidogate/$$f; done
	cd ${WRKSRC}/examples && for f in `${FIND} README [m-p]* -type f`; do \
		${INSTALL_DATA} $$f ${PREFIX}/share/examples/fidogate/$$f; done
	cd ${WRKSRC}/sendmail/mailer && ${INSTALL_DATA} ffx.m4 ftn.m4 \
		${PREFIX}/share/fidogate/sendmail/mailer/
	${INSTALL_SCRIPT} ${WRKSRC}/scripts/maintenance/rc.fidogate \
		${PREFIX}/etc/rc.d/fidogate
	${INSTALL_DATA} ${WRKSRC}/doc/fidogate.txt ${PREFIX}/share/doc/fidogate/

.include "../../mk/bsd.pkg.mk"