aboutsummaryrefslogtreecommitdiffstats
path: root/comms/gfax/Makefile
blob: a9a1246521b833a124de8ac0a238882998bc372f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# New ports collection makefile for:    gfax
# Date created:         20 January 2002
# Whom:             John Merryweather Cooper <jmcoopr@webmail.bmi.net>
#
# $FreeBSD$
#

PORTNAME=   gfax
PORTVERSION=    0.6.4
PORTREVISION=   3
CATEGORIES= comms print gnome
MASTER_SITES=   http://gfax.cowlug.org/

MAINTAINER= bsd-sharp-list@forge.novell.com
COMMENT=    A GNOME-2.x C# pop-up fax manager

BUILD_DEPENDS=  ${X11BASE}/lib/mono/gtk-sharp/gtk-sharp.dll:${PORTSDIR}/x11-toolkits/gtk-sharp \
        bash:${PORTSDIR}/shells/bash2
RUN_DEPENDS=    ${BUILD_DEPENDS} \
        ${LOCALBASE}/bin/sendfax:${PORTSDIR}/comms/hylafax

USE_X_PREFIX=   yes
USE_GMAKE=  yes
USE_REINPLACE=  yes
USE_GNOME=  gnomeprefix gnomehier libgnomeprint

IGNORE=     does not run

.include <bsd.port.pre.mk>

MAKE_ENV+=  SETENV="/usr/bin/env" \
        MKDIR="/bin/mkdir -p" \
        CHMOD="/bin/chmod" \
        RM="/bin/rm" \
        SH="${LOCALBASE}/bin/bash"

post-patch:
    @${REINPLACE_CMD} -e 's|/bin/bash|${LOCALBASE}/bin/bash|' \
        ${WRKSRC}/gfax \
        ${WRKSRC}/gfaxlpr \
        ${WRKSRC}/scripts/printer-setup.sh
    @${REINPLACE_CMD} -e 's|/usr/bin|${PREFIX}/bin|g' \
        ${WRKSRC}/gfax ${WRKSRC}/gfaxlpr
    @${REINPLACE_CMD} -e 's|/usr/share|${PREFIX}/share|g' \
        ${WRKSRC}/scripts/printer-setup.sh

do-build:
    ${SETENV} ${MAKE_ENV} ${GMAKE} -C ${WRKSRC} all

do-install:
    ${SETENV} ${MAKE_ENV} ${GMAKE} -C ${WRKSRC} install

.include <bsd.port.post.mk>