aboutsummaryrefslogtreecommitdiff
path: root/news/golded+/Makefile
blob: f811679d32167875906bf785121f244385f97b1b (plain) (blame)
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
# New ports collection makefile for:    golded+
# Date created:                         20 October 2003
# Whom:                                 Max Khon
#
# $FreeBSD$
#

PORTNAME=	golded+
PORTVERSION=	1.1.4.7
PORTREVISION=	1
CATEGORIES=	news mail
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=golded-plus
DISTNAME=	gps114-7

MAINTAINER=	fjoe@FreeBSD.org
COMMENT=	GoldEd+ (FTN message editor)

USE_BZIP2=	yes
USE_GMAKE=	yes

WRKSRC=		${WRKDIR}/${PORTNAME}

MAN1=		golded.1 goldnode.1 rddt.1

post-patch:
	@cp ${WRKSRC}/golded3/mygolded.__h ${WRKSRC}/golded3/mygolded.h

do-install:
	@${INSTALL_PROGRAM} ${WRKSRC}/bin/gedlnx ${PREFIX}/bin/golded
	@${INSTALL_PROGRAM} ${WRKSRC}/bin/gnlnx ${PREFIX}/bin/goldnode
	@${INSTALL_PROGRAM} ${WRKSRC}/bin/rddtlnx ${PREFIX}/bin/rddt
	@for i in ${MAN1}; do \
		${INSTALL_MAN} ${WRKSRC}/docs/$$i ${PREFIX}/man/man1; \
	done
	@${MKDIR} ${EXAMPLESDIR}
	@for i in charset colorset config template; do \
		${MKDIR} ${EXAMPLESDIR}/$$i; \
		${FIND} ${WRKSRC}/cfgs/$$i -maxdepth 1 -type f | ${XARGS} -n 1 -J @ ${INSTALL_DATA} @ ${EXAMPLESDIR}/$$i; \
	done
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
	@${INSTALL_DATA} ${WRKSRC}/manuals/gold_ref.txt ${DOCSDIR}
	@${INSTALL_DATA} ${WRKSRC}/manuals/gold_usr.txt ${DOCSDIR}
.endif

.include <bsd.port.mk>