summaryrefslogtreecommitdiff
path: root/comms/gfax/Makefile
blob: 16a80909d9d3b3197fdf805a345b1bc4952a21e1 (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
54
55
56
57
58
59
60
61
62
63
64
# New ports collection makefile for:	gfax
# Date created:			20 January 2002
# Whom:				John Merryweather Cooper <jmcoopr@webmail.bmi.net>
#
# $FreeBSD$
#

PORTNAME=	gfax
PORTVERSION=	0.5
PORTREVISION=	1
CATEGORIES=	comms print
MASTER_SITES=	http://gfax.cowlug.org/

MAINTAINER=	coop9211@uidaho.edu
COMMENT=	A GNOME pop-up fax manager

RUN_DEPENDS=	${PYTHON_SITELIBDIR}/gtk-1.2/_gnomemodule.so:${PORTSDIR}/x11-toolkits/py-gnome \
		${LOCALBASE}/bin/sendfax:${PORTSDIR}/comms/hylafax

USE_PYTHON=	yes
USE_X_PREFIX=	yes
USE_REINPLACE=	yes
NO_BUILD=	yes

BASEFILES=	controller.py en.h fax-g3.profile fax.py file_handler.py \
		gfax.desktop gfax.glade gfax.png gfax.py gfax.spec \
		hfaxlib.py install.sh mgettydruid.glade prefs.py \
		prefs_ui.py setup.glade ui.py uninstall.sh

PIXFILES=	gfax.png gnome-logo-icon-transparent.png
DOCFILES=	AUTHORS COPYING Changelog HACKING INSTALL TODO

post-extract:
	@${REINPLACE_CMD} -e 's|/usr/lib/gfax|${PREFIX}/lib/gfax|g' \
		${WRKSRC}/gfax.py
	@${REINPLACE_CMD} -e 's|/usr/share/gfax|${PREFIX}/share/gfax|g ; \
		s|/usr/lib/gfax|${PREFIX}/lib/gfax|g' \
		${WRKSRC}/prefs.py

do-install:
	@${MKDIR} ${PREFIX}/lib/gfax
	@${MKDIR} ${PREFIX}/lib/gfax/pixmaps
	@${MKDIR} ${PREFIX}/share/gnome/apps/Applications
	@${MKDIR} ${PREFIX}/share/gnome/ximian
	@${MKDIR} ${PREFIX}/share/gnome/ximian/Programs
	@${MKDIR} ${PREFIX}/share/gnome/ximian/Programs/Utilities
.for base in ${BASEFILES}
	@${INSTALL_DATA} ${WRKSRC}/${base} ${PREFIX}/lib/gfax
.endfor
	@${INSTALL_SCRIPT} ${WRKSRC}/gfax.py ${PREFIX}/bin/gfax
	@${INSTALL_DATA} ${WRKSRC}/gfax.desktop ${PREFIX}/share/gnome/apps/Applications
	@${INSTALL_DATA} ${WRKSRC}/gfax.desktop ${PREFIX}/share/gnome/ximian/Programs/Utilities
	@${INSTALL_DATA} ${WRKSRC}/gfax.png ${PREFIX}/share/gnome/pixmaps
.for pixmaps in ${PIXFILES}
	@${INSTALL_DATA} ${WRKSRC}/pixmaps/${pixmaps} ${PREFIX}/lib/gfax/pixmaps
.endfor
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
.for doc in ${DOCFILES}
	@${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>