blob: f54295d16f10742bbcb64a603ecec4c145308c9b (
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
|
# 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>
|