mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
06fc30e67c
PR: 195354 Submitted by: maintainer (Chris Hutchinson)
54 lines
1.5 KiB
Makefile
54 lines
1.5 KiB
Makefile
# Created by: chuckr
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= iwidgets
|
|
PORTVERSION= 4.0.1
|
|
PORTREVISION= 1
|
|
CATEGORIES= x11-toolkits tk
|
|
MASTER_SITES= SF/incrtcl/%5BIncr%20Widgets%5D/${PORTVERSION}
|
|
DISTNAME= iwidgets${PORTVERSION}
|
|
|
|
MAINTAINER= portmaster@bsdforge.com
|
|
COMMENT= Iwidgets - [incr Widgets] companion to [incr Tk]
|
|
|
|
LIB_DEPENDS= libitk.so:${PORTSDIR}/x11-toolkits/itk
|
|
|
|
NO_BUILD= yes
|
|
HAS_CONFIGURE= yes
|
|
USES= tk
|
|
CONFIGURE_ARGS= --prefix=${PREFIX} \
|
|
--with-tcl=${TCL_LIBDIR} \
|
|
--with-tk=${TK_LIBDIR} \
|
|
--with-itcl=${LOCALBASE}
|
|
SUB_LIST= IWIDGETS=${DISTNAME}
|
|
SUB_FILES= pkg-message
|
|
PLIST_SUB= IWIDGETS=${DISTNAME}
|
|
MAKE_ARGS+= INSTALL_ROOT=${STAGEDIR}
|
|
|
|
PORTDOCS= CHANGES ChangeLog README iwidgets.ps
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e 's,^MKINSTALLDIRS =.*,MKINSTALLDIRS=${MKDIR},' \
|
|
-e 's,^INSTALL =.*,INSTALL=${INSTALL} -c,' \
|
|
-e 's,^INSTALL_PROGRAM =.*,INSTALL_PROGRAM=${INSTALL_PROGRAM},' \
|
|
-e 's,^INSTALL_DATA =.*,INSTALL_DATA=${INSTALL_DATA},' \
|
|
-e 's,^INSTALL_SCRIPT =.*,INSTALL_SCRIPT=${INSTALL_SCRIPT},' \
|
|
-e 's,@ITCL_VERSION@,3.3,g' ${WRKSRC}/Makefile.in
|
|
|
|
post-install:
|
|
${RM} -f ${STAGEDIR}${PREFIX}/lib/iwidgets
|
|
${LN} -s ${DISTNAME} ${STAGEDIR}${PREFIX}/lib/iwidgets
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_MAN} ${WRKSRC}/doc/iwidgets.ps ${STAGEDIR}${DOCSDIR}
|
|
.for f in CHANGES ChangeLog README
|
|
${INSTALL_MAN} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
|
|
.endfor
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|