61 lines
1.5 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.41 2003/11/11 22:24:19 todd Exp $
2001-05-05 22:39:36 +00:00
COMMENT= "send/receive faxes and share modems"
DISTNAME= hylafax-4.1.5
PKGNAME= ${DISTNAME}p1
CATEGORIES= comms
2001-11-18 17:18:52 +00:00
FLAVORS= a4
FLAVOR?=
HOMEPAGE= http://www.HylaFAX.org/
1999-10-28 07:43:36 +00:00
MASTER_SITES= ftp://ftp.hylafax.org/source/
# License: BSD
# http://www.hylafax.org/HylaFAQ/copyright.html
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
2000-02-12 06:29:49 +00:00
2001-11-18 17:18:52 +00:00
RUN_DEPENDS= :ghostscript-*:print/ghostscript/gnu
LIB_DEPENDS= tiff::graphics/tiff \
jpeg::graphics/jpeg
CONFIGURE_STYLE= simple
USE_GMAKE= Yes
CONFIGURE_ARGS = --nointeractive
CONFIGURE_ARGS+= --with-CC="${CC}"
CONFIGURE_ARGS+= --with-CXX="${CXX}"
CONFIGURE_ARGS+= --with-INSTALL=""
CONFIGURE_ENV+= CCOMPILER="${CC}" CXXCOMPILER="${CXX}" \
GCOPTS="${CFLAGS}" GCXXOPTS="${CXXFLAGS}" \
PREFIX="${PREFIX}" LOCALBASE="${LOCALBASE}"
2001-11-18 17:18:52 +00:00
.if ${FLAVOR:L} == "a4"
CONFIGURE_ARGS+= --with-PAGESIZE=A4
1998-09-04 00:35:54 +00:00
.endif
FAKE_FLAGS= ROOT=${WRKINST} ${DESTDIRNAME}=${WRKINST}
1999-08-06 02:45:33 +00:00
SUID_EXES= ${PREFIX}/sbin/faxgetty ${PREFIX}/sbin/faxq \
${PREFIX}/bin/faxrm ${PREFIX}/bin/faxalter
NO_SYSTRACE= "test -d '' succeeds"
post-install:
2003-04-14 15:02:08 +00:00
@chown uucp:dialer ${SUID_EXES}
@chmod a=rx,u+s ${SUID_EXES}
${INSTALL_DATA} ${FILESDIR}/hylafax.sh.sample ${PREFIX}/lib/fax
pre-package:
@${SUDO} rm -f ${WRKINST}/${PREFIX}/hylafax
@${SUDO} ln -s ${WRKINST}/var/spool/hylafax ${WRKINST}/${PREFIX}/hylafax
2001-11-18 17:18:52 +00:00
post-package:
@${SUDO} rm -f ${WRKINST}/${PREFIX}/hylafax
2001-11-18 17:18:52 +00:00
.include <bsd.port.mk>