openbsd-ports/comms/hylafax/Makefile

56 lines
1.4 KiB
Makefile

# $OpenBSD: Makefile,v 1.7 1998/12/16 20:02:35 marc Exp $
#
DISTNAME= hylafax-v4.0pl2
PKGNAME= hylafax-4.0.2
CATEGORIES= comms
MAINTAINER= d@openbsd.org
MASTER_SITES= ftp://ftp.sgi.com/sgi/fax/source/
EXTRACT_SUFX= -tar.gz
BUILD_DEPENDS+= ${PREFIX}/lib/afm/Courier:${PORTSDIR}/print/afm
RUN_DEPENDS= ghostscript-5.10:${PORTSDIR}/print/ghostscript5
LIB_DEPENDS= tiff\\.3\\.4:${PORTSDIR}/graphics/tiff34
.if !defined(A4)
PAGESIZE= North American Letter
.else
PAGESIZE= ISO A4
.endif
FAXUID=uucp
FAXGID=dialer
HAS_CONFIGURE= yes
CONFIGURE_ARGS= --with-INSTALL="" \
--with-MAKE=${MAKE} \
--with-CC=${CC} \
--with-CXX=${CXX} \
--with-DIR_HTML=/usr/share/doc/html/hylafax \
--with-PAGESIZE="${PAGESIZE}" \
--with-LIBTIFF="-L${PREFIX}/lib -ltiff" \
--with-ZLIB=no --with-LIBZ='-lz' --with-ZLIBINC=/usr/include \
--with-REGEX=no --with-LIBREGEX= --with-REGEXINC=/usr/include \
--with-FAXUID=${FAXUID} --with-FAXGID=${FAXGID} \
SUID_EXES= ${PREFIX}/sbin/faxgetty ${PREFIX}/sbin/faxq \
${PREFIX}/bin/faxrm ${PREFIX}/bin/faxalter
pre-fetch:
.if !defined(NO_WARNINGS)
.if !defined(A4)
@${ECHO_MSG} "Type \"make A4=yes\" if you want A4 as default page size."
.else
@${ECHO_MSG} "Using \"ISO A4\" for default page size."
.endif
.endif
post-install:
/usr/sbin/chown ${FAXUID}.${FAXGID} ${SUID_EXES}
chmod a=rx,u+s ${SUID_EXES}
${INSTALL_DATA} ${FILESDIR}/hylafax.sh.sample ${PREFIX}/lib/fax
${CAT} ${PKGDIR}/MESSAGE
.include <bsd.port.mk>