2013-09-20 18:03:29 +02:00
|
|
|
# Created by: Julian Stacey <jhs@FreeBSD.org>
|
1999-08-25 07:28:01 +02:00
|
|
|
# $FreeBSD$
|
1995-05-22 00:37:50 +02:00
|
|
|
|
2000-04-09 01:24:42 +02:00
|
|
|
PORTNAME= hylafax
|
2012-06-10 21:57:52 +02:00
|
|
|
PORTVERSION= 6.0.6
|
2016-03-24 16:47:50 +01:00
|
|
|
PORTREVISION= 6
|
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
|
|
|
|
2014-04-20 20:11:41 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 18:07:10 +01:00
|
|
|
COMMENT= Fax software
|
1999-03-12 16:52:27 +01:00
|
|
|
|
2015-12-05 10:43:01 +01:00
|
|
|
LICENSE= MIT
|
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYRIGHT
|
|
|
|
|
2016-04-01 15:29:15 +02:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/lib/afm/Courier:print/afm
|
|
|
|
LIB_DEPENDS= libtiff.so:graphics/tiff \
|
|
|
|
libjbig.so:graphics/jbigkit
|
1997-05-29 08:49:26 +02:00
|
|
|
|
2010-09-19 14:04:42 +02:00
|
|
|
MAKE_JOBS_UNSAFE= yes
|
|
|
|
HAS_CONFIGURE= yes
|
2015-07-16 22:53:28 +02:00
|
|
|
USES= fakeroot ghostscript jpeg
|
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 \
|
2009-05-31 14:23:47 +02:00
|
|
|
--with-TIFFINC="-I${LOCALBASE}/include" \
|
2001-10-17 01:51:18 +02:00
|
|
|
--with-GCOPTS=" " --with-GCXXOPTS=" " \
|
2009-05-31 14:23:47 +02:00
|
|
|
--with-REGEX=no --with-LIBREGEX='' --with-REGEXINC=-I/usr/include \
|
2015-10-15 16:55:14 +02:00
|
|
|
--with-DIR_HTML="${DOCSDIR}" \
|
|
|
|
--with-GETTY=SysV
|
2009-05-31 14:23:47 +02:00
|
|
|
CFLAGS+= -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED -Wall -L${LOCALBASE}/lib
|
2010-09-19 14:04:42 +02:00
|
|
|
CONFIGURE_ENV= ENVOPTS="${CFLAGS}"
|
2013-12-17 11:39:33 +01:00
|
|
|
MAKE_ENV+= ROOT=${STAGEDIR}
|
2013-10-25 07:09:00 +02:00
|
|
|
MAKE_ARGS+= OPTIMIZER="" -DOPTIMIZER
|
2003-07-04 15:13:50 +02:00
|
|
|
|
2009-05-31 14:23:47 +02:00
|
|
|
PORTDOCS= RELEASENOTES-4.3.txt RELEASENOTES-4.4.txt RELEASENOTES-6.0.txt
|
|
|
|
SUB_FILES= pkg-message
|
2012-08-06 01:19:36 +02:00
|
|
|
USE_RC_SUBR= hylafax
|
2005-01-14 23:28:10 +01:00
|
|
|
|
2013-04-26 17:10:57 +02:00
|
|
|
OPTIONS_DEFINE= PAM NLS GAWK DOCS
|
2016-05-23 22:35:01 +02:00
|
|
|
OPTIONS_DEFAULT=PAM
|
2012-06-15 18:46:55 +02:00
|
|
|
NO_OPTIONS_SORT=yes
|
2013-12-17 11:39:33 +01:00
|
|
|
OPTIONS_SUB= yes
|
2012-06-15 18:46:55 +02:00
|
|
|
GAWK_DESC= Use gawk for scripts
|
2010-09-19 14:04:42 +02:00
|
|
|
|
2013-12-17 11:39:33 +01:00
|
|
|
PAM_CONFIGURE_OFF= --disable-pam
|
|
|
|
NLS_USES= gettext
|
|
|
|
NLS_CONFIGURE_ENABLE= nls
|
2016-04-01 15:29:15 +02:00
|
|
|
GAWK_BUILD_DEPENDS= gawk:lang/gawk
|
|
|
|
GAWK_RUN_DEPENDS= gawk:lang/gawk
|
2013-12-17 11:39:33 +01:00
|
|
|
GAWK_CONFIGURE_ON= --with-AWK="${LOCALBASE}/bin/gawk"
|
|
|
|
DOCS_CONFIGURE_ON= --with-HTML=yes
|
|
|
|
|
2013-04-26 17:10:57 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2009-12-31 16:43:56 +01:00
|
|
|
|
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
|
|
|
|
2010-09-19 14:04:42 +02:00
|
|
|
# Redefine path for spool
|
|
|
|
.if defined(HYLAFAX_SPOOL)
|
|
|
|
CONFIGURE_ARGS+=--with-DIR_SPOOL="${HYLAFAX_SPOOL}"
|
|
|
|
.endif
|
|
|
|
HYLAFAX_SPOOL?= /var/spool/hylafax
|
|
|
|
PLIST_SUB+= HYLAFAX_SPOOL=${HYLAFAX_SPOOL}
|
|
|
|
|
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
|
|
|
|
|
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
|
2015-07-31 17:31:10 +02:00
|
|
|
${REINPLACE_CMD} -e 's,-O hfaxd.conf,-O hfaxd.conf.sample,' \
|
2006-02-11 03:34:50 +01:00
|
|
|
${WRKSRC}/hfaxd/Makefile.in
|
2015-07-31 17:31:10 +02:00
|
|
|
${REINPLACE_CMD} -e 's,hosts.hfaxd,hosts.hfaxd.sample,' \
|
2014-02-14 15:33:24 +01:00
|
|
|
${WRKSRC}/etc/Makefile.in
|
2015-07-31 17:31:10 +02:00
|
|
|
${REINPLACE_CMD} -e 's,-O typerules,-O typerules.sample,' \
|
|
|
|
-e 's,-O pagesizes,-O pagesizes.sample -src pagesizes,' \
|
2009-05-31 14:23:47 +02:00
|
|
|
${WRKSRC}/libhylafax/Makefile.in
|
2003-07-04 15:13:50 +02:00
|
|
|
|
2013-12-17 11:39:33 +01:00
|
|
|
pre-install:
|
2014-12-17 17:13:33 +01:00
|
|
|
${MKDIR} ${STAGEDIR}${HYLAFAX_SPOOL}/archive \
|
|
|
|
${STAGEDIR}${HYLAFAX_SPOOL}/docq \
|
|
|
|
${STAGEDIR}${HYLAFAX_SPOOL}/doneq \
|
|
|
|
${STAGEDIR}${HYLAFAX_SPOOL}/pollq \
|
|
|
|
${STAGEDIR}${HYLAFAX_SPOOL}/sendq \
|
|
|
|
${STAGEDIR}${HYLAFAX_SPOOL}/tmp \
|
|
|
|
${STAGEDIR}${HYLAFAX_SPOOL}/info \
|
|
|
|
${STAGEDIR}${HYLAFAX_SPOOL}/log
|
2013-12-17 11:39:33 +01:00
|
|
|
|
2015-12-05 10:43:01 +01:00
|
|
|
post-install-DOCS-on:
|
2013-12-17 11:39:33 +01:00
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
cd ${WRKSRC}/doc && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/
|
2010-02-05 13:15:24 +01:00
|
|
|
|
2013-04-26 17:10:57 +02:00
|
|
|
.include <bsd.port.mk>
|