aboutsummaryrefslogtreecommitdiff
path: root/x11-toolkits/tktable
diff options
context:
space:
mode:
authorPietro Cerutti <gahr@FreeBSD.org>2013-05-13 13:22:54 +0000
committerPietro Cerutti <gahr@FreeBSD.org>2013-05-13 13:22:54 +0000
commit53514d0e9140d156ac96ebae23b339ca307079c1 (patch)
treea5ab09a694d011eefa3fdb3522277480b632f532 /x11-toolkits/tktable
parenta36cc43ba56bb8a6cf7c06db28419b8bfe86d665 (diff)
downloadports-53514d0e9140d156ac96ebae23b339ca307079c1.tar.gz
ports-53514d0e9140d156ac96ebae23b339ca307079c1.zip
- Respect PREFIX and DOCSDIR
Reported by: miwi (Tcl/Tk 86 exp-run)
Notes
Notes: svn path=/head/; revision=318077
Diffstat (limited to 'x11-toolkits/tktable')
-rw-r--r--x11-toolkits/tktable/Makefile24
-rw-r--r--x11-toolkits/tktable/files/patch-Makefile.in2
2 files changed, 10 insertions, 16 deletions
diff --git a/x11-toolkits/tktable/Makefile b/x11-toolkits/tktable/Makefile
index 0038d6ed5ca4..ba45c87b3ae8 100644
--- a/x11-toolkits/tktable/Makefile
+++ b/x11-toolkits/tktable/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: tktable
-# Date created: 25 Jun 2003
-# Whom: thierry@pompo.net
-#
+# Created by: thierry@pompo.net
# $FreeBSD$
-#
PORTNAME= tktable
PORTVERSION= 2.10
@@ -18,7 +14,6 @@ COMMENT= A table/matrix widget extension to Tk
LICENSE= BSD
LICENSE_FILE= ${WRKSRC}/license.txt
-USE_XORG= x11
USE_TK= 84+
GNU_CONFIGURE= yes
@@ -26,28 +21,27 @@ PORTDOCS= *
PLIST_SUB= DISTNAME=${DISTNAME}
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
CONFIGURE_ARGS= --with-tcl=${TCL_LIBDIR} \
--with-tk=${TK_LIBDIR} \
--with-tclinclude=${TCL_INCLUDEDIR} \
--with-tkinclude=${TK_INCLUDEDIR} \
- --with-x
+ --with-x \
+ --prefix=${PREFIX} \
+ --exec-prefix=${PREFIX}
post-patch:
-.if !defined(NOPORTDOCS)
+ ${REINPLACE_CMD} -e 's|%%DOCSDIR%%|${DOCSDIR}|' \
+ ${WRKSRC}/Makefile.in
+.if ${PORT_OPTIONS:MDOCS}
INSTALL_TARGET= install install-doc
.endif
-post-install:
-.if !defined(NOPORTDOCS)
- @${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
-.endif
-
.if defined(MAINTAINER_MODE)
test: build
(cd ${WRKSRC}; \
${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} test)
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/x11-toolkits/tktable/files/patch-Makefile.in b/x11-toolkits/tktable/files/patch-Makefile.in
index e39902116274..1b599abf92f9 100644
--- a/x11-toolkits/tktable/files/patch-Makefile.in
+++ b/x11-toolkits/tktable/files/patch-Makefile.in
@@ -13,7 +13,7 @@
datadir = @datadir@
mandir = @mandir@
includedir = @includedir@
-+docsdir = /usr/local/share/doc/tktable
++docsdir = %%DOCSDIR%%
DESTDIR =