blob: c95cf91af72964f4de9f9f3121ad61338a30deea (
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
|
# Created by: Jonathan Liu <Net147@hotmail.com>
# $FreeBSD$
PORTNAME= linrename
PORTVERSION= 2.12r
PORTREVISION= 2
CATEGORIES= sysutils
MASTER_SITES= http://mirror.linux.org.au/pub/linux/utils/util-linux/ \
http://debian.csail.mit.edu/pub/linux/utils/util-linux/ \
http://www.club.cc.cmu.edu/pub/linux.out-of-date/utils/util-linux/ \
${MASTER_SITE_KERNEL_ORG}
MASTER_SITE_SUBDIR= linux/utils/util-linux
DISTNAME= util-linux-${PORTVERSION}
DEPRECATED= No more public distfile
EXPIRATION_DATE= 2012-11-26
MAINTAINER= ports@FreeBSD.org
COMMENT= Rename multiple files using substitution
PLIST_FILES= bin/linrename
MAN1= linrename.1
USE_BZIP2= yes
USE_GETTEXT= yes
CFLAGS+= -I${LOCALBASE}/include -L${LOCALBASE}/lib -lintl -I${WRKSRC}/lib
EXTRACT_AFTER_ARGS= | tar -xf - \
${DISTNAME}/lib/nls.h \
${DISTNAME}/misc-utils/rename.1 \
${DISTNAME}/misc-utils/rename.c
.include <bsd.port.pre.mk>
do-build:
${CC} ${CFLAGS} -o ${WRKSRC}/${PORTNAME} ${WRKSRC}/misc-utils/rename.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/misc-utils/rename.1 ${PREFIX}/man/man1/${MAN1}
.include <bsd.port.post.mk>
|