1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00
freebsd-ports/sysutils/rename/Makefile
2021-04-06 16:31:07 +02:00

34 lines
905 B
Makefile

# Created by: Chad Castleberry AKA ritalin
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>