aboutsummaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/tren/Makefile16
-rw-r--r--sysutils/tren/files/patch-Makefile10
2 files changed, 17 insertions, 9 deletions
diff --git a/sysutils/tren/Makefile b/sysutils/tren/Makefile
index 25a2c6066d7b..2166679abe58 100644
--- a/sysutils/tren/Makefile
+++ b/sysutils/tren/Makefile
@@ -10,18 +10,16 @@ MAINTAINER= tren@tundraware.com
COMMENT= A Powerful File And Directory Batch Renaming Tool
USE_PYTHON= yes
-
-MAN1= tren.1
-MANCOMPRESSED= yes
-
-PLIST_FILES= bin/tren.py
+PLIST_FILES= bin/tren.py man/man1/tren.1.gz
PORTDOCS= WHATSNEW.txt tren-license.txt tren.html tren.pdf tren.ps tren.rst
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
-NO_STAGE= yes
post-install:
-.if !defined(NOPORTDOCS)
- ${MKDIR} ${DOCSDIR}/
- cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}/
+.if ${PORT_OPTIONS:MDOCS}
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}/
+ cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/
.endif
.include <bsd.port.mk>
diff --git a/sysutils/tren/files/patch-Makefile b/sysutils/tren/files/patch-Makefile
new file mode 100644
index 000000000000..aa50de01ffd8
--- /dev/null
+++ b/sysutils/tren/files/patch-Makefile
@@ -0,0 +1,10 @@
+--- Makefile.orig 2014-06-29 23:52:49.319326073 +0800
++++ Makefile 2014-06-29 23:53:01.269334923 +0800
+@@ -4,5 +4,5 @@
+ all: # Do nothing. This is a free-standing Python program.
+
+ install:
+- ${BSD_INSTALL_SCRIPT} tren.py ${PREFIX}/bin
+- ${BSD_INSTALL_MAN} tren.1.gz ${PREFIX}/man/man1
++ ${BSD_INSTALL_SCRIPT} tren.py $(DESTDIR)${PREFIX}/bin
++ ${BSD_INSTALL_MAN} tren.1.gz $(DESTDIR)${PREFIX}/man/man1