summaryrefslogtreecommitdiff
path: root/x11-fm/gprename/Makefile
blob: 7c7c417cafaf954b2c29ecf5fc0c600e9c94dcbc (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
# New ports collection makefile for:	gprename
# Date created:				2004-03-15
# Whom:					trevor
#
#
# $FreeBSD$
#

PORTNAME=	gprename
PORTVERSION=	2.7
PORTEPOCH=	1
CATEGORIES=	x11-fm
MASTER_SITES=	SF

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Perl script for renaming multiple files

LICENSE=	GPLv3
LICENSE_FILE=	${WRKSRC}/COPYING

RUN_DEPENDS=	${SITE_PERL}/${PERL_ARCH}/Gtk2.pm:${PORTSDIR}/x11-toolkits/p5-Gtk2 \
		${SITE_PERL}/${PERL_ARCH}/Locale/gettext.pm:${PORTSDIR}/devel/p5-Locale-gettext

WRKSRC=		${WRKDIR}/${PORTNAME}/trunk

USE_BZIP2=	yes
USE_PERL5_RUN=	yes
USE_GETTEXT=	yes
NO_BUILD=	yes

MAN1=		gprename.1

post-extract:
	@${RM} -rf ${WRKSRC}/build

post-patch:
	@${REINPLACE_CMD} -e \
		'/^#!/s|/.*|${PERL}|' ${WRKSRC}/bin/gprename
	@${REINPLACE_CMD} -e \
		's|/usr/local|${PREFIX}| ; \
		 s|$$(CURDIR)|$$(.CURDIR)| ; \
		 s|uninstall build|build| ; \
		 s|share/man|man|' ${WRKSRC}/Makefile

post-install:
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif

.include <bsd.port.mk>