1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-15 03:14:23 +00:00
freebsd-ports/x11-fm/tkdesk/Makefile
Mikhail Teterin ddb5a7b884 Update the itcl/itk from 3.2 to 3.3 (released in April 2005). The
installed libraries are now named libitcl.so.3 & libitk.so.3 instead
of having the version be part of the libname (libitcl33.so.1). The
itclConfig.sh and itkConfig.sh are now also installed, which is required
by some software (such as the insight -- a gdb frontend).

Fix-up the (unchanged) iwidgets port to reflect the above and improve it
to not require its own copy of the itcl tree at install time.

Approved by:	maintainer

Fix-up the tkdesk port to reflect the itcl/itk changes, which required
updating it to the 2.0p2 (from 2.0). (This lovely piece of software
badly needs a caring maintainer, BTW.) While here, teach tkdesk to use
installed blt instead of building its own.

The only iwidget/itk/itcl consumer that remains broken is net/smm++ (a
MUD client). This should change as soon as the maintainer get back to
me.
2006-05-17 20:35:55 +00:00

52 lines
1.5 KiB
Makefile

# New ports collection makefile for: tkdesk
# Date created: 30 Jul 1996
# Whom: shanee@rabbit.augusta.de
#
# $FreeBSD$
#
PORTNAME= tkdesk
PORTVERSION= 2.0.2
CATEGORIES= x11-fm tk84
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME= ${PORTNAME}-${PORTVERSION:R}
PATCHFILES= ${DISTNAME}p1.patch ${DISTNAME}p2.patch
PATCH_SITES= http://tkdesk.sourceforge.net/patches/
MAINTAINER= ports@FreeBSD.org
COMMENT= A graphical, highly configurable and powerful file manager
LIB_DEPENDS= BLT24:${PORTSDIR}/x11-toolkits/blt \
itcl:${PORTSDIR}/lang/itcl \
tk84:${PORTSDIR}/x11-toolkits/tk84
PATCH_DIST_STRIP=-p1
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAKE_ENV+= LIB_RUNTIME_DIR=${LOCABASE}/lib
CONFIGURE_ENV= CPPFLAG="-I${LOCALBASE}/include/itcl3.3" \
LDFLAGS="-L${LOCALBASE}/lib -litcl"
CONFIGURE_ARGS= --with-tcl=${LOCALBASE}/lib/tcl8.4 \
--with-tk=${LOCALBASE}/lib/tk8.4 \
--with-blt=${LOCALBASE} \
--with-itcl=${LOCALBASE}/lib/itcl3.3
EXTRACT_AFTER_ARGS=| ${TAR} -xf - --exclude blt
MAN1= tkdesk.1 cd-tkdesk.1 ed-tkdesk.1 od-tkdesk.1
post-patch:
@${GREP} -lR "<malloc\.h>" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
's|<malloc\.h>|<stdlib.h>|g'
pre-install:
@${FIND} ${WRKSRC} -type f -name "*.orig" -delete
post-install:
@${STRIP_CMD} ${PREFIX}/bin/tkdesksh
@${STRIP_CMD} ${PREFIX}/bin/tkdeskclient
@${MKDIR} -m 755 ${PREFIX}/lib/TkDesk/configs/.trash
.include <bsd.port.mk>