2004-04-11 07:59:14 +02:00
|
|
|
# $NetBSD: Makefile,v 1.12 2004/04/11 06:14:32 snj Exp $
|
2001-05-22 00:26:59 +02:00
|
|
|
|
|
|
|
DISTNAME= efax-0.9
|
|
|
|
CATEGORIES= comms
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SUNSITE:=apps/serialcomm/fax/}
|
|
|
|
|
2003-07-17 23:21:03 +02:00
|
|
|
MAINTAINER= tech-pkg@NetBSD.org
|
2001-06-21 06:43:29 +02:00
|
|
|
HOMEPAGE= http://www.cce.com/efax/
|
2003-07-21 18:35:12 +02:00
|
|
|
COMMENT= Collection of small programs for sending and receiving faxes
|
2001-05-22 00:26:59 +02:00
|
|
|
|
2003-06-16 15:31:44 +02:00
|
|
|
CONFLICTS= kdeutils<3.1
|
2003-02-18 01:35:50 +01:00
|
|
|
|
2004-04-11 07:59:14 +02:00
|
|
|
USE_BUILDLINK3= # defined
|
2003-08-31 00:51:11 +02:00
|
|
|
|
|
|
|
USE_PKGINSTALL= YES
|
|
|
|
DEINSTALL_EXTRA_TMPL+= ${.CURDIR}/DEINSTALL
|
|
|
|
INSTALL_EXTRA_TMPL+= ${.CURDIR}/INSTALL
|
2001-05-22 00:26:59 +02:00
|
|
|
|
|
|
|
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"
|