aboutsummaryrefslogtreecommitdiff
path: root/shells/wcd/Makefile
diff options
context:
space:
mode:
authorPawel Pekala <pawel@FreeBSD.org>2015-05-29 20:34:46 +0000
committerPawel Pekala <pawel@FreeBSD.org>2015-05-29 20:34:46 +0000
commitb688c26f3a0396fc9afd390e5af7415b61b52316 (patch)
tree6637ae90a6568cc1addfe8d7429ae284211dfd50 /shells/wcd/Makefile
parentedb1d63141bfadf282bdb31197ac08a07cbfe0cd (diff)
downloadports-b688c26f3a0396fc9afd390e5af7415b61b52316.tar.gz
ports-b688c26f3a0396fc9afd390e5af7415b61b52316.zip
Notes
Diffstat (limited to 'shells/wcd/Makefile')
-rw-r--r--shells/wcd/Makefile38
1 files changed, 38 insertions, 0 deletions
diff --git a/shells/wcd/Makefile b/shells/wcd/Makefile
new file mode 100644
index 000000000000..605e73162039
--- /dev/null
+++ b/shells/wcd/Makefile
@@ -0,0 +1,38 @@
+# Created by: Pawel Pekala <pawel@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= wcd
+PORTVERSION= 5.2.7
+CATEGORIES= shells
+MASTER_SITES= SF
+
+MAINTAINER= pawel@FreeBSD.org
+COMMENT= Command-line program to change directory fast
+
+LICENSE= GPLv2
+LICENSE_FILE= ${WRKSRC}/doc/copying.txt
+
+USES= gmake
+MAKE_ARGS= EXT= PREFIX=${PREFIX} docsubdir=${PORTNAME} \
+ mandir=${PREFIX}/man
+
+OPTIONS_DEFINE= DOCS NLS
+OPTIONS_SUB= yes
+
+NLS_USES= gettext
+
+.include <bsd.port.options.mk>
+
+.if ! ${PORT_OPTIONS:MNLS}
+MAKE_ARGS+= ENABLE_NLS=
+.endif
+
+post-patch:
+ @${REINPLACE_CMD} -e '/manfile/ s|datarootdir|prefix|' \
+ -e 's|/usr/local|${LOCALBASE}|' \
+ ${WRKSRC}/src/Makefile
+
+post-install:
+ @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/wcd
+
+.include <bsd.port.mk>