2010-06-03 14:53:47 +02:00
|
|
|
# $NetBSD: Makefile,v 1.21 2010/06/03 12:53:47 sborrill Exp $
|
2001-05-22 00:26:59 +02:00
|
|
|
|
|
|
|
DISTNAME= efax-0.9
|
2010-06-03 14:53:47 +02:00
|
|
|
PKGREVISION= 2
|
2001-05-22 00:26:59 +02:00
|
|
|
CATEGORIES= comms
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SUNSITE:=apps/serialcomm/fax/}
|
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@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
|
|
|
|
2010-01-29 17:08:17 +01:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
2003-06-16 15:31:44 +02:00
|
|
|
CONFLICTS= kdeutils<3.1
|
2003-02-18 01:35:50 +01:00
|
|
|
|
2006-04-13 01:04:21 +02:00
|
|
|
CONF_FILES+= ${PREFIX}/share/examples/efax/efax.rc ${PKG_SYSCONFDIR}/efax.rc
|
|
|
|
|
2010-01-29 17:08:17 +01:00
|
|
|
INSTALLATION_DIRS+= bin ${PKGMANDIR}/man1
|
|
|
|
|
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.
|
|
|
|
|
2004-08-29 18:07:29 +02:00
|
|
|
${HEAD} -5 ${WRKSRC}/fax.tmp > ${WRKSRC}/fax
|
|
|
|
${TAIL} -649 ${WRKSRC}/fax.tmp >> ${WRKSRC}/fax
|
|
|
|
${HEAD} -404 ${WRKSRC}/fax.tmp > ${WRKSRC}/efax.rc1
|
|
|
|
${TAIL} -402 ${WRKSRC}/efax.rc1 > ${WRKSRC}/efax.rc
|
2001-05-22 00:26:59 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|