aboutsummaryrefslogtreecommitdiff
path: root/deskutils/gnochm/Makefile
blob: 958e71644486e5b2dca8cf913e42707a275d38fb (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
# New ports collection makefile for:	gnochm
# Date created:                		25 November 2004
# Whom:                    		Radek Kozlowski <radek@raadradd.com>
#
# $FreeBSD$
#

PORTNAME=	gnochm
PORTVERSION=	0.9.4
CATEGORIES=	deskutils python gnome
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	${PORTNAME}

MAINTAINER=	radek@raadradd.com
COMMENT=	A GNOME viewer for CHM files

BUILD_DEPENDS=	${PYTHON_SITELIBDIR}/chm/_chmlib.so:${PORTSDIR}/textproc/pychm
RUN_DEPENDS=	${PYTHON_SITELIBDIR}/chm/_chmlib.so:${PORTSDIR}/textproc/pychm

USE_GMAKE=	yes
USE_GNOME=	gnomehack gnomeprefix intlhack pygnome2
USE_LIBTOOL_VER=15
USE_PYTHON=	yes
USE_REINPLACE=	yes
USE_X_PREFIX=	yes
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
		LDFLAGS="-L${LOCALBASE}/lib"

GCONF_SCHEMAS=	gnochm.schemas
INSTALLS_OMF=	yes

MAN1=		gnochm.1
MANLANG=	"" it
MANCOMPRESSED=	no

post-patch:
	@${REINPLACE_CMD} -e 's|@APPDATADIR@|@APPDATADIR@/gnome|' ${WRKSRC}/gnochm.py.in
	@${REINPLACE_CMD} -e 's|$(prefix)/share/man|$(prefix)/man|' ${WRKSRC}/data/Makefile.in

.include <bsd.port.mk>