1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-14 03:10:47 +00:00
freebsd-ports/x11-toolkits/tktable/Makefile
Rong-En Fan 209aabc97a - Respect X11BASE
This port requires Xlib to build, thus set USE_XLIB. With GNU_CONFIGURE,
  it sets correctly path.

Reported by:	pointyhat
2006-11-30 02:39:17 +00:00

54 lines
1.3 KiB
Makefile

# New ports collection makefile for: tktable
# Date created: 25 Jun 2003
# Whom: thierry@pompo.net
#
# $FreeBSD$
#
PORTNAME= tktable
PORTVERSION= 2.8
PORTREVISION= 1
CATEGORIES= x11-toolkits tk84
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME= ${PORTNAME:S/tk/Tk/}${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= A table/matrix widget extension to tk/tcl
LIB_DEPENDS= tk84.1:${PORTSDIR}/x11-toolkits/tk84
USE_XLIB= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --prefix=${PREFIX} \
--with-tcl=${LOCALBASE}/lib/tcl${TK_VER} \
--with-tk=${LOCALBASE}/lib/tk${TK_VER} \
--with-tclinclude=${LOCALBASE}/include/tcl${TK_VER} \
--with-tkinclude=${LOCALBASE}/include/tk${TK_VER} \
--with-x
TK_VER= 8.4
PLIST_SUB= DESTDIR=lib/${DISTNAME}
post-patch:
.if defined(NOPORTDOCS)
@${REINPLACE_CMD} -e "s:install-libraries install-doc:install-libraries:" \
${WRKSRC}/Makefile.in
.else
@${REINPLACE_CMD} -e "s:%%DOCSDIR%%:${DOCSDIR}:g" ${WRKSRC}/Makefile.in
.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.mk>