41 lines
1.4 KiB
Makefile
41 lines
1.4 KiB
Makefile
# New ports collection makefile for: tktreectrl
|
|
# Date created: 08 October 2006
|
|
# Whom: Andrew Pantyukhin <infofarmer@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= tktreectrl
|
|
PORTVERSION= 2.2.3
|
|
CATEGORIES= x11-toolkits tk84
|
|
MASTER_SITES= SF
|
|
|
|
MAINTAINER= infofarmer@FreeBSD.org
|
|
COMMENT= Multi-column hierarchical listbox widget
|
|
|
|
LIB_DEPENDS= tk${USE_TK}.1:${PORTSDIR}/x11-toolkits/tk${USE_TK}
|
|
|
|
USE_TK= yes
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --with-tcl=${LOCALBASE}/lib/tcl${TK_VER} \
|
|
--with-tk=${LOCALBASE}/lib/tk${TK_VER} \
|
|
--x-libraries=${X11BASE}/lib --x-includes=${X11BASE}/include \
|
|
--mandir=${MANPREFIX}/man \
|
|
--exec-prefix=${PREFIX} --enable-shared
|
|
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} ${TCL_INCLUDES} ${TK_INCLUDES}"
|
|
TCL_INCLUDES= -I${LOCALBASE}/include/tcl${TK_VER} -I${LOCALBASE}/include/tcl${TK_VER}/generic
|
|
TK_INCLUDES= -I${LOCALBASE}/include/tk${TK_VER} -I${LOCALBASE}/include/tk${TK_VER}/generic \
|
|
-I${LOCALBASE}/include/tk${TK_VER}/unix
|
|
TKPKG= treectrl${PORTVERSION}
|
|
TKLIBVER= 2.2
|
|
PLIST_SUB= VER=${PORTVERSION} TKPKG=${TKPKG} TKLIBVER=${TKLIBVER}
|
|
USE_LDCONFIG= ${PREFIX}/lib/${TKPKG}
|
|
MANN= treectrl.n
|
|
|
|
post-install:
|
|
@${LN} -sf ${PREFIX}/lib/${TKPKG}/libtreectrl${TKLIBVER}.so \
|
|
${PREFIX}/lib/${TKPKG}/libtreectrl${TKLIBVER}.so.0
|
|
@${LN} -sf ${PREFIX}/lib/${TKPKG}/libtreectrl${TKLIBVER}.so \
|
|
${PREFIX}/lib/${TKPKG}/libtreectrl.so.0
|
|
|
|
.include <bsd.port.mk>
|