mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-24 04:33:24 +00:00
3d7e8000ef
PR: ports/108702 Submitted by: Jonathan Liu <Net147 (at) hotmail.com> (maintainer)
44 lines
1.2 KiB
Makefile
44 lines
1.2 KiB
Makefile
# Ports collection makefile for: linrename
|
|
# Date created: December 13 2006
|
|
# Whom: Jonathan Liu <Net147@hotmail.com>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= linrename
|
|
PORTVERSION= 2.12r
|
|
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/ \
|
|
http://www.kernel.org/pub/linux/utils/util-linux/ \
|
|
ftp://ftp.kernel.org/pub/linux/utils/util-linux/old/
|
|
DISTNAME= util-linux-${PORTVERSION}
|
|
|
|
MAINTAINER= Net147@hotmail.com
|
|
COMMENT= Rename multiple files using substitution
|
|
|
|
PLIST_FILES= bin/linrename
|
|
MAN1= linrename.1
|
|
|
|
USE_BZIP2= yes
|
|
USE_GETTEXT= yes
|
|
USE_GCC= 3.4+
|
|
|
|
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>
|