summaryrefslogtreecommitdiffstats
path: root/misc/gtktalog/Makefile
blob: 355aaa4ca0762ef9fc1c456fed4a79a95a86545f (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# New ports collection makefile for:	gtktalog
# Date created:				20 Mar 2002
# Whom:					Juan Salaverria <rael@vectorstar.net>
#
# $FreeBSD$
#

PORTNAME=	gtktalog
PORTVERSION=	1.0.4
CATEGORIES=	misc
MASTER_SITES=	${MASTER_SITE_SAVANNAH}
MASTER_SITE_SUBDIR=	${PORTNAME}/${PORTNAME}.pkg/${PORTVERSION}

MAINTAINER=	rael@vectorstar.net
COMMENT=	GTKtalog is a tool to make disk catalogs

BUILD_DEPENDS=	plaympeg:${PORTSDIR}/multimedia/smpeg
RUN_DEPENDS=	plaympeg:${PORTSDIR}/multimedia/smpeg

USE_GNOME=	gnomeprefix gnomelibs gnometarget
GNU_CONFIGURE=	yes
USE_X_PREFIX=	yes
USE_BZIP2=	yes
USE_REINPLACE=	yes

MAN1=		gtktalog.1

DOCS=	AUTHORS BUGS ChangeLog NEWS README TODO

CONFIGURE_ENV=	XGETTEXT=${LOCALBASE}/bin/xgettext

post-patch:
	@${REINPLACE_CMD} -e "s@-lpthread@${PTHREAD_LIBS}@" ${WRKSRC}/configure
	@${REINPLACE_CMD} -E "s@^(Applicationsdir = ).*@\1${PREFIX}/share/gnome/apps/Applications@" ${WRKSRC}/Makefile.in
	@${REINPLACE_CMD} -E "s@^(localedir = ).*@\1${PREFIX}/share/locale@" \
		${WRKSRC}/po/Makefile.in.in
	@${REINPLACE_CMD} -E "s@^(gtktalog_helpdir = ).*@\1${PREFIX}/share/gnome/help/gtktalog/C@" ${WRKSRC}/Docs/C/Makefile.in
	@${REINPLACE_CMD} -E "s@^(gtktalog_helpdir = ).*@\1${PREFIX}/share/gnome/help/gtktalog/fr@" ${WRKSRC}/Docs/fr/Makefile.in
	@${REINPLACE_CMD} -E "s@^(MountPoint ).*@\1/cdrom@" \
		${WRKSRC}/src/gtktalog/gtktalog.cf.in.in

post-install:
	${RMDIR} ${PREFIX}/share/gnome/help/gtktalog/*/images 2>/dev/null || ${TRUE}
.if !defined(NOPORTDOCS)
	${INSTALL} -d -o root -g wheel -m 0755 ${DOCSDIR}
.for f in ${DOCS}
	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.endif

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