79 lines
1.9 KiB
Makefile
Raw Normal View History

2000-02-12 06:29:49 +00:00
# $OpenBSD: Makefile,v 1.16 2000/02/12 06:29:50 turan Exp $
1999-10-28 07:43:36 +00:00
BROKEN= bad packing lists
1998-09-04 00:35:54 +00:00
DISTNAME= hylafax-v4.0pl2
.if defined(A4)
PKGNAME= hylafax-4.0.2-A4
.else
1999-08-06 02:45:33 +00:00
PKGNAME= hylafax-4.0.2-letter
.endif
2000-02-02 17:02:38 +00:00
NEED_VERSION= 1.175
CATEGORIES= comms
MASTER_SITES= ftp://ftp.sgi.com/sgi/fax/source/ \
ftp://ftp.leo.org/pub/comp/os/unix/networking/fax/hylafax/source/ \
ftp://ftp.sisis.de/pub/hylafax/source/
2000-02-02 17:02:38 +00:00
MASTER_SITES0= http://www.hylafax.org/patches/
1999-08-06 02:45:33 +00:00
EXTRACT_SUFX= -tar.gz
2000-02-02 17:02:38 +00:00
PATCHFILES= gcc-2.8.x.patch:0
PATCH_DIST_STRIP= -p1
1998-02-13 14:40:59 +00:00
MAINTAINER= d@openbsd.org
2000-02-12 06:29:49 +00:00
LICENSE_TYPE= BSD
PERMIT_PKG_CDROM= YES
PERMIT_PKG_FTP= YES
PERMIT_DISTF_CDROM= YES
PERMIT_DISTF_FTP= YES
1999-08-06 02:45:33 +00:00
BUILD_DEPENDS= ${PREFIX}/lib/afm/Courier:${PORTSDIR}/print/afm
RUN_DEPENDS= gs:${PORTSDIR}/print/ghostscript5
1999-12-11 02:36:40 +00:00
LIB_DEPENDS= tiff.35:${PORTSDIR}/graphics/tiff
2000-02-02 17:02:38 +00:00
USE_GMAKE= Yes
1998-09-04 00:35:54 +00:00
.if !defined(A4)
PAGESIZE= North American Letter
.else
PAGESIZE= ISO A4
.endif
1999-08-06 02:45:33 +00:00
FAXUID= uucp
FAXGID= dialer
2000-02-02 17:02:38 +00:00
HAS_CONFIGURE= Yes
CONFIGURE_ARGS= --with-INSTALL="" \
--with-MAKE="${GMAKE}" \
--with-CC="${CC}" \
--with-CXX="${CXX}" \
--with-DIR_HTML="/usr/share/doc/html/hylafax" \
1998-09-04 00:35:54 +00:00
--with-PAGESIZE="${PAGESIZE}" \
--with-LIBTIFF="-L${PREFIX}/lib -ltiff" \
--with-TIFFINC="${PREFIX}/include" \
--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}" \
1998-09-04 00:35:54 +00:00
1999-08-06 02:45:33 +00:00
CONFIGURE_ENV= CONFIG_SOCKARGLENTYPE=::socklen_t
SUID_EXES= ${PREFIX}/sbin/faxgetty ${PREFIX}/sbin/faxq \
${PREFIX}/bin/faxrm ${PREFIX}/bin/faxalter
1998-09-04 00:35:54 +00:00
pre-fetch:
.if !defined(NO_WARNINGS)
1998-09-04 00:35:54 +00:00
.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
1999-08-06 02:45:33 +00:00
post-install:
2000-02-02 17:02:38 +00:00
@chown ${FAXUID}.${FAXGID} ${SUID_EXES}
@chmod a=rx,u+s ${SUID_EXES}
1998-09-04 00:35:54 +00:00
${INSTALL_DATA} ${FILESDIR}/hylafax.sh.sample ${PREFIX}/lib/fax
.include <bsd.port.mk>