1 # $NetBSD: Makefile,v 1.34 2012/10/03 21:57:13 wiz Exp $
3 DISTNAME
= trn-4.0
-test76
7 MASTER_SITES
= ${MASTER_SITE_SOURCEFORGE
:=trn
/}
9 MAINTAINER
= pkgsrc-users@NetBSD.org
10 HOMEPAGE
= http
://trn.sourceforge.net
/
11 COMMENT
= Threaded version of rn
, the classic news reader
14 PKG_SYSCONFSUBDIR
= nntp
18 # TRN_HOSTBITS determines the number of "name segments" (x.y.z.com), counting
19 # from right to left, that TRN will match to allow cancels, with 0 requiring
20 # a perfect match. For example, with TRN_HOSTBITS=3, x.y.z.com will match
21 # foo.y.z.com for the purposes of allowing cancels.
25 CONFIGURE_SCRIPT
= .
/Configure
26 CONFIGURE_ENV
+= PREFIX
=${PREFIX
:Q
}
27 USE_TOOLS
+= awk
basename cat cp diff echo egrep expr grep mkdir mv
28 USE_TOOLS
+= perl
:run
rm sed tail tr
yacc
29 CONFIGURE_ENV
+= TOOLS_AWK
=${TOOLS_AWK
:Q
}
30 CONFIGURE_ENV
+= TOOLS_BASENAME
=${TOOLS_BASENAME
:Q
}
31 CONFIGURE_ENV
+= TOOLS_CAT
=${TOOLS_CAT
:Q
}
32 CONFIGURE_ENV
+= TOOLS_CP
=${TOOLS_CP
:Q
}
33 CONFIGURE_ENV
+= TOOLS_DIFF
=${TOOLS_DIFF
:Q
}
34 CONFIGURE_ENV
+= TOOLS_ECHO
=${TOOLS_ECHO
:Q
}
35 CONFIGURE_ENV
+= TOOLS_EGREP
=${TOOLS_EGREP
:Q
}
36 CONFIGURE_ENV
+= TOOLS_EXPR
=${TOOLS_EXPR
:Q
}
37 CONFIGURE_ENV
+= TOOLS_GREP
=${TOOLS_GREP
:Q
}
38 CONFIGURE_ENV
+= TOOLS_MKDIR
=${TOOLS_MKDIR
:Q
}
39 CONFIGURE_ENV
+= TOOLS_MV
=${TOOLS_MV
:Q
}
40 CONFIGURE_ENV
+= TOOLS_RM
=${TOOLS_RM
:Q
}
41 CONFIGURE_ENV
+= TOOLS_SED
=${TOOLS_SED
:Q
}
42 CONFIGURE_ENV
+= TOOLS_TAIL
=${TOOLS_TAIL
:Q
}
43 CONFIGURE_ENV
+= TOOLS_TR
=${TOOLS_TR
:Q
}
44 CONFIGURE_ARGS
+= -d
-e
-D bin
=${PREFIX
:Q
}/bin \
45 -D binexp
=${PREFIX
:Q
}/bin \
46 -D phost
=${PKG_SYSCONFDIR}'/domainname' \
47 -D filexp
=${PREFIX
:Q
}'/share/trn/filexp' \
48 -D hostbits
=${TRN_HOSTBITS
:Q
} \
49 -D installbin
=${DESTDIR
:Q
}${PREFIX
:Q
}'/bin' \
50 -D installmansrc
=${DESTDIR
:Q
}${PREFIX
:Q
}'/man/man1' \
51 -D installprivlib
=${DESTDIR
:Q
}${PREFIX
:Q
}'/share/trn' \
52 -D libpth
=${PREFIX
:Q
}'/lib /usr/lib' \
53 -D mansrc
=${PREFIX
:Q
}/${PKGMANDIR
:Q
}'/man1' \
54 -D mansrcexp
=${PREFIX
:Q
}/${PKGMANDIR
:Q
}'/man1' \
55 -D mimecap
=${PREFIX
:Q
}'/etc/mimecap' \
56 -D orgname
=${PKG_SYSCONFDIR}'/organization' \
58 -D perlpath
=${PERL5
:Q
} \
59 -D
prefix=${PREFIX
:Q
} \
60 -D prefixexp
=${PREFIX
:Q
} \
61 -D privlib
=${PREFIX
:Q
}'/share/trn' \
62 -D privlibexp
=${PREFIX
:Q
}'/share/trn' \
63 -D servername
=${PKG_SYSCONFDIR}'/server' \
68 -D inews
=${PREFIX
:Q
}'/bin/inews' \
69 -D useinews
=${PREFIX
:Q
}'/bin/inews'
72 @
${RM} -f
${DESTDIR}${PREFIX}/bin
/rn
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
/rn
.1 \
73 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
/rn
.1.gz
74 @
${LN} -s trn
${DESTDIR}${PREFIX}/bin
/rn
75 @
${LN} -s trn
.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
/rn
.1
78 SUBST_STAGE.pipe2
= pre-configure
79 SUBST_FILES.pipe2
= filter.c
80 SUBST_SED.pipe2
+= -e
's|pipe2|trn_pipe2|g'
82 .
include "../../mk/bsd.pkg.mk"