aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits
diff options
context:
space:
mode:
authorgahr <gahr@FreeBSD.org>2013-05-13 21:22:54 +0800
committergahr <gahr@FreeBSD.org>2013-05-13 21:22:54 +0800
commitcdb040f70e9175ea64dcc8e41d33659fe3ca56b1 (patch)
treea5ab09a694d011eefa3fdb3522277480b632f532 /x11-toolkits
parent1d760870e5976bf92e1a334f83124492709fea83 (diff)
downloadfreebsd-ports-gnome-cdb040f70e9175ea64dcc8e41d33659fe3ca56b1.tar.gz
freebsd-ports-gnome-cdb040f70e9175ea64dcc8e41d33659fe3ca56b1.tar.zst
freebsd-ports-gnome-cdb040f70e9175ea64dcc8e41d33659fe3ca56b1.zip
- Respect PREFIX and DOCSDIR
Reported by: miwi (Tcl/Tk 86 exp-run)
Diffstat (limited to 'x11-toolkits')
-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 =