2008-01-04 12:48:33 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.52 2008/01/04 17:48:33 espie Exp $
|
2001-05-05 18:39:36 -04:00
|
|
|
|
2007-09-15 21:37:09 -04:00
|
|
|
COMMENT= send/receive faxes and share modems
|
2003-01-27 08:42:48 -05:00
|
|
|
DISTNAME= hylafax-4.1.5
|
2006-11-07 17:22:27 -05:00
|
|
|
PKGNAME= ${DISTNAME}p7
|
2001-11-18 12:06:51 -05:00
|
|
|
CATEGORIES= comms
|
2001-11-18 12:18:52 -05:00
|
|
|
|
|
|
|
FLAVORS= a4
|
2001-11-18 12:06:51 -05:00
|
|
|
FLAVOR?=
|
|
|
|
HOMEPAGE= http://www.HylaFAX.org/
|
1999-10-28 03:43:36 -04:00
|
|
|
|
2003-01-27 08:42:48 -05:00
|
|
|
MASTER_SITES= ftp://ftp.hylafax.org/source/
|
1998-02-08 01:00:08 -05:00
|
|
|
|
2001-06-19 21:43:11 -04:00
|
|
|
# License: BSD
|
2003-01-27 08:42:48 -05:00
|
|
|
# http://www.hylafax.org/HylaFAQ/copyright.html
|
2000-10-22 11:41:23 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2004-11-21 17:29:50 -05:00
|
|
|
WANTLIB= c m stdc++ util z
|
2000-02-12 01:29:49 -05:00
|
|
|
|
2001-11-18 12:18:52 -05:00
|
|
|
RUN_DEPENDS= :ghostscript-*:print/ghostscript/gnu
|
2003-01-27 08:42:48 -05:00
|
|
|
LIB_DEPENDS= tiff::graphics/tiff \
|
|
|
|
jpeg::graphics/jpeg
|
2001-11-18 12:06:51 -05:00
|
|
|
|
|
|
|
CONFIGURE_STYLE= simple
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
|
|
|
|
CONFIGURE_ARGS = --nointeractive
|
|
|
|
CONFIGURE_ARGS+= --with-CC="${CC}"
|
|
|
|
CONFIGURE_ARGS+= --with-CXX="${CXX}"
|
2003-01-27 08:42:48 -05:00
|
|
|
CONFIGURE_ARGS+= --with-INSTALL=""
|
|
|
|
|
2003-01-31 10:53:50 -05:00
|
|
|
CONFIGURE_ENV+= CCOMPILER="${CC}" CXXCOMPILER="${CXX}" \
|
|
|
|
GCOPTS="${CFLAGS}" GCXXOPTS="${CXXFLAGS}" \
|
|
|
|
PREFIX="${PREFIX}" LOCALBASE="${LOCALBASE}"
|
2001-11-18 12:06:51 -05:00
|
|
|
|
2001-11-18 12:18:52 -05:00
|
|
|
.if ${FLAVOR:L} == "a4"
|
2001-11-18 12:06:51 -05:00
|
|
|
CONFIGURE_ARGS+= --with-PAGESIZE=A4
|
1998-09-03 20:35:54 -04:00
|
|
|
.endif
|
|
|
|
|
2008-01-04 12:48:33 -05:00
|
|
|
FAKE_FLAGS= ROOT=${WRKINST} SPOOL=${PREFIX}/libdata/hylafax
|
2003-01-31 10:53:50 -05:00
|
|
|
|
1999-08-05 22:45:33 -04:00
|
|
|
SUID_EXES= ${PREFIX}/sbin/faxgetty ${PREFIX}/sbin/faxq \
|
1998-02-08 01:00:08 -05:00
|
|
|
${PREFIX}/bin/faxrm ${PREFIX}/bin/faxalter
|
2003-08-24 16:48:55 -04:00
|
|
|
|
2005-06-18 14:48:12 -04:00
|
|
|
NO_REGRESS= Yes
|
2003-08-24 16:48:55 -04:00
|
|
|
NO_SYSTRACE= "test -d '' succeeds"
|
|
|
|
|
1998-02-08 01:00:08 -05:00
|
|
|
post-install:
|
2003-04-14 11:02:08 -04:00
|
|
|
@chown uucp:dialer ${SUID_EXES}
|
2003-01-31 10:53:50 -05:00
|
|
|
@chmod a=rx,u+s ${SUID_EXES}
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/hylafax.sh.sample ${PREFIX}/lib/fax
|
2004-09-15 15:41:31 -04:00
|
|
|
@ln -sf ${TRUEPREFIX}/libdata/hylafax ${WRKINST}/var/spool/hylafax
|
|
|
|
@chown -R uucp:dialer ${PREFIX}/libdata/hylafax
|
2001-11-18 12:06:51 -05:00
|
|
|
|
2001-11-18 12:18:52 -05:00
|
|
|
.include <bsd.port.mk>
|