aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/gn-gnspool/Makefile
blob: 6d89d6639b84a3e1c7e6e37554a499d11a6e9dff (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
48
# New ports collection makefile for:    gn(Gon's Newsreader with gnspool)
# Version required:         1.40
# Date created:             14 Feb. 1997
# Whom:                 Kiroh HARADA <kiroh@kh.rim.or.jp>
#
# $FreeBSD$
#

DISTNAME=   gn-1.40
PKGNAME=    ja-gn-gnspool-1.40
CATEGORIES= japanese news
MASTER_SITES=   ftp://ftp.omronsoft.co.jp/pub/misc/gn/

MAINTAINER= seiken@ARGV.AC

# The program ``configur'' sometimes issue questions and
# batch-mode build would fail.
IS_INTERACTIVE= yes
WRKSRC=     ${WRKDIR}/${DISTNAME}/src

pre-configure:
    @${CP} ${WRKDIR}/${DISTNAME}/mkfiles/unix/common ${WRKSRC}/Makefile
    @${PATCH} -d ${WRKSRC} < ${FILESDIR}/Makefile.patch
    @${SED} s+@PREFIX@+${PREFIX}+ ${FILESDIR}/site.def.in \
        > ${WRKSRC}/site.def
    @(cd ${WRKSRC}; ${MAKE} configur)

do-configure:
    @(cd ${WRKSRC}; yes | ./configur)

post-install:
.for f in gn gnspool gninews gnmail
    @strip ${PREFIX}/bin/$f
.endfor
.if !defined(NOPORTDOCS)
    @${MKDIR} ${PREFIX}/share/doc/gn-gnspool
    @${CP} -R ${WRKDIR}/${DISTNAME}/docs.jp/* ${PREFIX}/share/doc/gn-gnspool
    @${CP} ${FILESDIR}/Changes.FreeBSD.port ${PREFIX}/share/doc/gn-gnspool
.endif
.if !defined(NOMANCOMPRESS)
    @${GZIP_CMD} ${PREFIX}/man/ja/cat1/gn.1 \
    ${PREFIX}/man/ja/cat1/gnspool.1 ${PREFIX}/man/ja/cat1/gnloops.1
.endif
    @${MKDIR} ${PREFIX}/share/examples/gn-gnspool
    @${CP} ${FILESDIR}/_gnrc ${PREFIX}/share/examples/gn-gnspool
    @${CAT} ${PKGDIR}/MESSAGE

.include <bsd.port.mk>