1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-11 02:50:24 +00:00
freebsd-ports/sysutils/rename/Makefile
Mathieu Arnold cf255ef60e Fix build.
Pointy hat to:	mat
Sponsored by:	Absolight
2016-03-24 11:59:29 +00:00

35 lines
917 B
Makefile

# Created by: Chad Castleberry AKA ritalin
# $FreeBSD$
PORTNAME= rename
PORTVERSION= 1.99.2
CATEGORIES= sysutils
MASTER_SITES= SF/${PORTNAME}
MAINTAINER= ports@FreeBSD.org
COMMENT= Rename multiple files using regular expressions
LICENSE= GPLv3+
LICENSE_FILE= ${WRKSRC}/COPYING
PLIST_FILES= bin/renamex man/man1/renamex.1.gz
post-patch:
@${REINPLACE_CMD} -e \
'/^CC/s|\([[:blank:]]\)\(=\)|\1?\2| ; \
/^PREFIX/s|\([[:blank:]]\)\(=\)|\1?\2| ; \
s|/usr/local/bin|$$(PREFIX)/bin| ; \
s|/usr/local/man|$$(PREFIX)/man| ; \
/^CFLAGS/s|\([[:blank:]]\)\(=\)|\1+\2| ; \
s|-O[0-9]|| ; \
s|$$^$$|$$(OBJS)| ; \
/cp/s|^|#| ; \
s|install .* 0755 -s|$${BSD_INSTALL_PROGRAM}| ; \
s|\([[:blank:]]\)\($$(BINDIR)\)|\1$$(DESTDIR)\2| ; \
s|install .* 0644|$${BSD_INSTALL_MAN}| ; \
s|\([[:blank:]]\)\($$(MANDIR)\)|\1$$(DESTDIR)\2| ; \
s|^%.*|.c.o:|' \
${WRKSRC}/Makefile
.include <bsd.port.mk>