blob: 8c0db9f02dc843befbdb3a7374ba1ef852d260c7 (
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
65
|
# New ports collection makefile for: namefix
# Date created: 28 August 2006
# Whom: Andrew Pantyukhin <infofarmer@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= namefix
PORTVERSION= 4.0.2
CATEGORIES= sysutils
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}.pl/${PORTVERSION}
DISTNAME= ${PORTNAME}.pl_${PORTVERSION}
EXTRACT_SUFX= .7z
MAINTAINER= ports@FreeBSD.org
COMMENT= Batch renamer
LICENSE= GPLv2
EXTRACT_DEPENDS=7z:${PORTSDIR}/archivers/p7zip
RUN_DEPENDS= p5-MP3-Tag>=0:${PORTSDIR}/audio/p5-MP3-Tag \
p5-Tk>=0:${PORTSDIR}/x11-toolkits/p5-Tk \
p5-Tk-JComboBox>=0:${PORTSDIR}/x11-toolkits/p5-Tk-JComboBox \
p5-Tk-DynaTabFrame>=0:${PORTSDIR}/x11-toolkits/p5-Tk-DynaTabFrame
EXTRACT_CMD= 7z
EXTRACT_BEFORE_ARGS= x
EXTRACT_AFTER_ARGS= -bd -y >/dev/null 2>&1
WRKSRC= ${WRKDIR}/${PORTNAME}.pl
NO_BUILD= yes
USES= perl5
USE_PERL5= run
do-configure:
.for bin in ${PORTNAME} ${PORTNAME}-cli
@${ECHO_CMD} '#!/bin/sh' > ${WRKDIR}/${bin}.in
@${ECHO_CMD} 'namefix_dir=${PREFIX}/${SITE_PERL_REL}/${PORTNAME}' >> ${WRKDIR}/${bin}.in
@${ECHO_CMD} 'cd $${namefix_dir}; exec ./${bin}.pl $$@' >> ${WRKDIR}/${bin}.in
.endfor
do-install:
.for bin in ${PORTNAME} ${PORTNAME}-cli
${INSTALL_SCRIPT} ${WRKDIR}/${bin}.in ${PREFIX}/bin/${bin}
.endfor
@${MKDIR} ${PREFIX}/${SITE_PERL_REL}/${PORTNAME}
.for data in ${PORTNAME} ${PORTNAME}-cli
${INSTALL_SCRIPT} ${WRKSRC}/${data}.pl ${PREFIX}/${SITE_PERL_REL}/${PORTNAME}
.endfor
${INSTALL_DATA} ${WRKSRC}/mem.jpg ${PREFIX}/${SITE_PERL_REL}/${PORTNAME}
.for dir in libs libs/cli libs/gui
@${MKDIR} ${PREFIX}/${SITE_PERL_REL}/${PORTNAME}/${dir}
${INSTALL_DATA} ${WRKSRC}/${dir}/*.pm ${PREFIX}/${SITE_PERL_REL}/${PORTNAME}/${dir}
.endfor
@${MKDIR} ${PREFIX}/${SITE_PERL_REL}/${PORTNAME}/txt
${INSTALL_DATA} ${WRKSRC}/txt/*.txt ${PREFIX}/${SITE_PERL_REL}/${PORTNAME}/txt
.include <bsd.port.pre.mk>
.if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64"
BROKEN= Does not install on ia64, powerpc, or sparc64
.endif
.include <bsd.port.post.mk>
|