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
|
PORTNAME= swissfileknife
PORTVERSION= 1.9.8.2
CATEGORIES= misc
MASTER_SITES= SF/${PORTNAME}/1-${PORTNAME}/${PORTVERSION}
DISTNAME= sfk-${PORTVERSION:R}
MAINTAINER= danfe@FreeBSD.org
COMMENT= One hundred command-line tools in one binary
WWW= http://stahlworks.com/dev/swiss-file-knife.html
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/COPYING
GNU_CONFIGURE= yes
CPPFLAGS+= -DVER_STR_OS=\\\"${OPSYS:tl}-${ARCH}\\\"
PLIST_FILES= bin/sfk
PORTDOCS= ChangeLog README
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e 's,ifndef MAC_OS_X,ifdef __linux__, ;\
s,ifdef MAC_OS_X,ifdef __FreeBSD__,' ${WRKSRC}/sfkbase.hpp
@${REINPLACE_CMD} -e 's,defined(MAC_OS_X) || defined(SOLARIS),&\
|| defined(__FreeBSD__),' \
${WRKSRC}/sfk.cpp ${WRKSRC}/sfkext.cpp
@${REINPLACE_CMD} -e '/_STDINT_H/,+6d' ${WRKSRC}/sfkmatch.hpp
@${REINPLACE_CMD} -e 's,^ *register, ,' ${WRKSRC}/sfkpack.cpp
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
|