1 # $NetBSD: Makefile,v 1.18 2012/08/28 11:46:32 he Exp $
4 DISTNAME
= Tix
${TIX_VERSION}-src
6 PKGNAME
= tk-Tix-
${TIX_VERSION}
8 MASTER_SITES
= http
://downloads.sourceforge.net
/project
/tix
/tix
/8.4.3/
10 MAINTAINER
= he@NetBSD.org
11 HOMEPAGE
= http
://tix.sourceforge.net
/
12 COMMENT
= Powerful widget library for Tcl
/Tk
16 WRKSRC
= ${WRKDIR}/Tix8.4
.3
21 CONFIGURE_ARGS
+= --enable-shared
22 CONFIGURE_ARGS
+= --with-tcl
=${BUILDLINK_PREFIX.tcl
}/lib
23 CONFIGURE_ARGS
+= --with-tk
=${BUILDLINK_PREFIX.tk
}/lib
24 CONFIGURE_ARGS
+= --disable-stubs
25 CONFIGURE_ARGS
+= --x-includes
=${X11BASE
:Q
}/include
26 CONFIGURE_ARGS
+= --x-libraries
=${X11BASE
:Q
}/lib
${LIBABISUFFIX
:Q
}
27 MAKE_ENV
+= TCL_DIR
=${BUILDLINK_PREFIX.tcl
}
28 MAKE_ENV
+= TK_DIR
=${BUILDLINK_PREFIX.tk
}
29 MAKE_ENV
+= LIBS
=${X11_LDFLAGS
:Q
}
30 INSTALL_MAKE_FLAGS
+= INSTALL_ROOT
=${DESTDIR}
32 INSTALLATION_DIRS
+= ${PKGMANDIR}/mann
33 INSTALLATION_DIRS
+= lib
/Tix
${TIX_VERSION}/docs
37 for f in
${WRKSRC}/man
/*.n
; do \
38 ${INSTALL_DATA} -m
444 $$f \
39 ${DESTDIR}${PREFIX}/${PKGMANDIR}/mann
; \
41 (cd
${WRKSRC}/docs
; tar cf
- .
) | \
42 (cd
${DESTDIR}${PREFIX}/lib
/Tix
${TIX_VERSION}/docs
; tar xfpB
-)
44 .
include "../../lang/tcl/buildlink3.mk"
45 .
include "../../x11/tk/buildlink3.mk"
46 .
include "../../x11/libX11/buildlink3.mk"
47 .
include "../../mk/bsd.pkg.mk"