blob: 68473e15820b526356643a60e96c9e5611d9297f (
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
|
# $NetBSD: Makefile,v 1.11 2003/08/30 22:51:13 jlam Exp $
DISTNAME= efax-0.9
CATEGORIES= comms
MASTER_SITES= ${MASTER_SITE_SUNSITE:=apps/serialcomm/fax/}
MAINTAINER= tech-pkg@NetBSD.org
HOMEPAGE= http://www.cce.com/efax/
COMMENT= Collection of small programs for sending and receiving faxes
CONFLICTS= kdeutils<3.1
USE_BUILDLINK2= # defined
USE_PKGINSTALL= YES
DEINSTALL_EXTRA_TMPL+= ${.CURDIR}/DEINSTALL
INSTALL_EXTRA_TMPL+= ${.CURDIR}/INSTALL
post-patch:
${SED} -e 's:@PREFIX@:${PREFIX}:g; \
s:@LOCALBASE@:${LOCALBASE}:g; \
s:@SERIAL_DEVICE@:${DEFAULT_SERIAL_DEVICE:S,/dev/,,}:g' \
${WRKSRC}/fax > ${WRKSRC}/fax.tmp
${MV} -f ${WRKSRC}/fax.1 ${WRKSRC}/fax.1.dist
${SED} -e 's:@PREFIX@:${PREFIX}:g; \
s:@SERIAL_DEVICE@:${DEFAULT_SERIAL_DEVICE:S,/dev/,,}:g' \
${WRKSRC}/fax.1.dist > ${WRKSRC}/fax.1
# XXX We need to split the `fax' script into `efax.rc' and a smaller
# `fax' script so that the user doesn't need to edit the script itself
# to set important variables.
${HEAD} -n 5 ${WRKSRC}/fax.tmp > ${WRKSRC}/fax
${TAIL} -n 649 ${WRKSRC}/fax.tmp >> ${WRKSRC}/fax
${HEAD} -n 404 ${WRKSRC}/fax.tmp > ${WRKSRC}/efax.rc1
${TAIL} -n 402 ${WRKSRC}/efax.rc1 > ${WRKSRC}/efax.rc
.include "../../mk/bsd.pkg.mk"
|