summaryrefslogtreecommitdiffstats
path: root/deskutils/babytrans/Makefile
blob: e5ed3581d1720fad9d64a2f278dcd2fb5e5aa73f (plain)
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
# Created by: Frederic Cambus
# $FreeBSD$

PORTNAME=	babytrans
PORTVERSION=	0.9.1
PORTREVISION=	10
CATEGORIES=	deskutils
MASTER_SITES=	http://fjolliton.free.fr/babytrans/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	GTK+/GNOME front-end for Babylon Translator .dic files

USES=        pathfix gettext
USE_GNOME=	gtk12 gnomeprefix
GNU_CONFIGURE=	yes
CPPFLAGS+=	${CXXFLAGS} -I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib
USE_GMAKE=	yes
PKGMESSAGE=	${WRKDIR}/pkg-message
SUB_FILES=	pkg-message

NO_STAGE=	yes
post-patch:
.for file in de es fr pt_BR
	@${REINPLACE_CMD} -e "s|CHARSET|ISO-8859-1|" \
		-e "s|ENCODING|8bit|" ${WRKSRC}/po/${file}.po
.endfor

post-install:
	@${MKDIR} ${DATADIR}
	@${MKDIR} ${PREFIX}/share/applets/Utility
	${INSTALL_DATA} ${WRKSRC}/config-file/dictionary ${DATADIR}
	@${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>
OpenPOWER on IntegriCloud