1995-05-22 00:37:50 +02:00
|
|
|
# ports collection makefile for: hylafax
|
2003-12-21 01:37:58 +01:00
|
|
|
# Date created: 16 May 1995
|
|
|
|
# Whom: Julian Stacey <jhs@freebsd.org>
|
1997-05-29 08:49:26 +02:00
|
|
|
#
|
1999-08-25 07:28:01 +02:00
|
|
|
# $FreeBSD$
|
1995-10-27 23:05:16 +01:00
|
|
|
#
|
1995-05-22 00:37:50 +02:00
|
|
|
|
2000-04-09 01:24:42 +02:00
|
|
|
PORTNAME= hylafax
|
2007-09-09 13:38:35 +02:00
|
|
|
PORTVERSION= 4.3.4
|
1996-11-17 04:01:21 +01:00
|
|
|
CATEGORIES= comms
|
2000-11-07 22:56:09 +01:00
|
|
|
MASTER_SITES= ftp://ftp.hylafax.org/source/
|
1997-05-29 08:49:26 +02:00
|
|
|
|
2007-10-28 09:33:39 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 18:07:10 +01:00
|
|
|
COMMENT= Fax software
|
1999-03-12 16:52:27 +01:00
|
|
|
|
2007-02-22 06:48:47 +01:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/lib/afm/Courier:${PORTSDIR}/print/afm
|
2004-10-21 23:15:31 +02:00
|
|
|
LIB_DEPENDS= tiff:${PORTSDIR}/graphics/tiff \
|
2007-09-09 13:38:35 +02:00
|
|
|
jpeg:${PORTSDIR}/graphics/jpeg \
|
|
|
|
jbig.1:${PORTSDIR}/graphics/jbigkit
|
1997-05-29 08:49:26 +02:00
|
|
|
|
2007-09-09 13:38:35 +02:00
|
|
|
USE_GHOSTSCRIPT=yes
|
1999-05-09 18:28:08 +02:00
|
|
|
|
1997-05-29 08:49:26 +02:00
|
|
|
CONFIGURE_ARGS= --with-INSTALL="" \
|
2000-02-24 03:04:18 +01:00
|
|
|
--with-LIBTIFF="-L${LOCALBASE}/lib -ltiff -ljpeg" \
|
2007-09-09 13:38:35 +02:00
|
|
|
--with-ZLIB=no --with-LIBZ=-lz \
|
2000-07-07 21:09:19 +02:00
|
|
|
--with-TIFFINC="${LOCALBASE}/include" \
|
2001-10-17 01:51:18 +02:00
|
|
|
--with-GCOPTS=" " --with-GCXXOPTS=" " \
|
2007-09-09 13:38:35 +02:00
|
|
|
--with-REGEX=no --with-LIBREGEX='' --with-REGEXINC=/usr/include \
|
2007-02-22 06:48:47 +01:00
|
|
|
--with-DIR_HTML="${DOCSDIR}"
|
2003-07-04 15:13:50 +02:00
|
|
|
|
2005-01-14 23:28:10 +01:00
|
|
|
SUB_FILES= pkg-message hylafax.sh.sample
|
|
|
|
|
2002-08-13 01:16:00 +02:00
|
|
|
# Defaults to "North American Letter". Use "ISO A4" for A4.
|
2004-05-26 23:21:37 +02:00
|
|
|
.if defined(PAGESIZE)
|
2002-08-13 01:16:00 +02:00
|
|
|
CONFIGURE_ARGS+=--with-PAGESIZE="${PAGESIZE}"
|
|
|
|
.endif
|
2003-07-04 15:13:50 +02:00
|
|
|
|
2004-09-24 02:35:14 +02:00
|
|
|
# Want PAM?
|
|
|
|
.if defined(WITHOUT_PAM)
|
2004-10-21 23:15:31 +02:00
|
|
|
CONFIGURE_ARGS+=--disable-pam
|
2004-09-24 02:35:14 +02:00
|
|
|
.endif
|
|
|
|
|
2004-05-26 23:21:37 +02:00
|
|
|
# Want HTML documentation?
|
2007-02-22 06:48:47 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
2004-05-26 23:21:37 +02:00
|
|
|
CONFIGURE_ARGS+=--with-HTML=yes
|
|
|
|
PLIST_SUB+= PORTDOCS=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= PORTDOCS="@comment "
|
|
|
|
.endif
|
|
|
|
|
2002-08-13 01:16:00 +02:00
|
|
|
.if defined(PACKAGE_BUILDING) || defined(BATCH)
|
2001-10-17 01:51:18 +02:00
|
|
|
CONFIGURE_ARGS+=--nointeractive
|
|
|
|
.endif
|
|
|
|
|
2007-02-22 06:48:47 +01:00
|
|
|
.if defined(WITH_GAWK)
|
|
|
|
BUILD_DEPENDS+= gawk:${PORTSDIR}/lang/gawk
|
2007-09-09 13:38:35 +02:00
|
|
|
RUN_DEPENDS+= gawk:${PORTSDIR}/lang/gawk
|
2007-02-22 06:48:47 +01:00
|
|
|
CONFIGURE_ARGS+=--with-AWK="${LOCALBASE}/bin/gawk"
|
|
|
|
.endif
|
|
|
|
|
2003-07-04 15:13:50 +02:00
|
|
|
MAKE_ARGS+= OPTIMIZER="" -EOPTIMIZER
|
1996-11-17 04:01:21 +01:00
|
|
|
HAS_CONFIGURE= yes
|
2000-07-07 21:09:19 +02:00
|
|
|
CONFIGURE_ENV= ENVOPTS="${CFLAGS}"
|
1999-05-09 18:28:08 +02:00
|
|
|
|
2004-09-24 02:35:14 +02:00
|
|
|
MAN1= edit-faxcover.1 faxalter.1 faxcover.1 faxmail.1 faxrm.1 faxstat.1 \
|
|
|
|
hylafax-client.1 sendfax.1 sendpage.1 sgi2fax.1 textfmt.1
|
2004-05-26 23:21:37 +02:00
|
|
|
|
2006-10-07 15:37:40 +02:00
|
|
|
MAN5= dialrules.5f doneq.5f hosts.hfaxd.5f \
|
2004-09-24 02:35:14 +02:00
|
|
|
hylafax-config.5f hylafax-info.5f hylafax-log.5f hylafax-server.5f \
|
|
|
|
hylafax-shutdown.5f pagermap.5f pagesizes.5f recvq.5f sendq.5f \
|
|
|
|
status.5f tsi.5f typerules.5f xferfaxlog.5f
|
2004-05-26 23:21:37 +02:00
|
|
|
|
2004-09-24 02:35:14 +02:00
|
|
|
MAN8= choptest.8c cqtest.8c dialtest.8c faxabort.8c faxaddmodem.8c \
|
|
|
|
faxadduser.8c faxanswer.8c faxconfig.8c faxcron.8c faxdeluser.8c \
|
2004-09-24 13:44:13 +02:00
|
|
|
faxgetty.8c faxinfo.8c faxlock.8c faxmodem.8c faxq.8c \
|
2004-09-24 02:35:14 +02:00
|
|
|
faxqclean.8c faxquit.8c faxrcvd.8c faxsend.8c faxsetup.8c faxstate.8c \
|
2006-10-07 15:37:40 +02:00
|
|
|
faxwatch.8c hfaxd.8c jobcontrol.8c mkcover.8c notify.8c pagesend.8c pdf2fax.8c \
|
2004-05-26 23:21:37 +02:00
|
|
|
pollrcvd.8c ps2fax.8c recvstats.8c tagtest.8c tiff2fax.8c \
|
|
|
|
tiffcheck.8c tsitest.8c wedged.8c xferfaxstats.8c
|
1997-05-29 08:49:26 +02:00
|
|
|
|
2001-02-14 06:43:00 +01:00
|
|
|
SUID_EXES= ${PREFIX}/sbin/faxgetty ${PREFIX}/sbin/faxq \
|
1997-05-29 08:49:26 +02:00
|
|
|
${PREFIX}/bin/faxrm ${PREFIX}/bin/faxalter
|
|
|
|
|
2004-09-18 19:45:24 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2004-05-26 23:21:37 +02:00
|
|
|
pre-extract:
|
|
|
|
@if [ -d /var/db/pkg/tiff-3.6.1 ]; then \
|
|
|
|
${ECHO_MSG} ""; \
|
|
|
|
${ECHO_MSG} "Hylafax does not work with libtiff-3.6.1."; \
|
|
|
|
${ECHO_MSG} "Please upgrade to libtiff-3.6.1_1. (/usr/ports/graphics/tiff)"; \
|
|
|
|
${ECHO_MSG} ""; \
|
|
|
|
exit 1; \
|
|
|
|
fi
|
2000-07-07 21:09:19 +02:00
|
|
|
|
2003-08-16 16:40:30 +02:00
|
|
|
post-patch:
|
2003-09-29 00:58:45 +02:00
|
|
|
${REINPLACE_CMD} \
|
2003-09-04 00:32:23 +02:00
|
|
|
-e 's,/usr/local,${LOCALBASE},g' \
|
2007-09-09 13:38:35 +02:00
|
|
|
-e 's,-ljbig,-L${LOCALBASE}/lib &,' \
|
2003-09-04 00:32:23 +02:00
|
|
|
${WRKSRC}/configure
|
2006-02-11 03:34:50 +01:00
|
|
|
${REINPLACE_CMD} -e 's,-O hfaxd.conf,-O hfaxd.conf-dist,' \
|
|
|
|
${WRKSRC}/hfaxd/Makefile.in
|
|
|
|
${REINPLACE_CMD} -e 's,-O typerules,-O typerules-dist -src typerules,' \
|
|
|
|
-e 's,-O pagesizes,-O pagesizes-dist -src pagesizes,' \
|
|
|
|
${WRKSRC}/util/Makefile.in
|
2003-07-04 15:13:50 +02:00
|
|
|
|
1995-05-22 00:37:50 +02:00
|
|
|
post-install:
|
1999-08-22 21:01:07 +02:00
|
|
|
${CHOWN} uucp ${SUID_EXES}
|
|
|
|
${CHMOD} 4555 ${SUID_EXES}
|
2005-01-14 23:28:10 +01:00
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/hylafax.sh.sample ${PREFIX}/etc/rc.d
|
2006-02-11 03:34:50 +01:00
|
|
|
.for f in hfaxd.conf pagesizes typerules
|
|
|
|
if [ ! -f ${PREFIX}/lib/fax/${f} ]; then ${CP} -p ${PREFIX}/lib/fax/${f}-dist ${PREFIX}/lib/fax/${f}; fi
|
|
|
|
.endfor
|
2005-01-14 23:28:10 +01:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
1995-05-22 00:37:50 +02:00
|
|
|
|
2004-09-18 19:45:24 +02:00
|
|
|
.include <bsd.port.post.mk>
|