Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / x11 / tk-Tix / Makefile
blob4e34521450bfb4eb8db185b489d3a18f991d107a
1 # $NetBSD: Makefile,v 1.18 2012/08/28 11:46:32 he Exp $
4 DISTNAME= Tix${TIX_VERSION}-src
5 TIX_VERSION= 8.4.3
6 PKGNAME= tk-Tix-${TIX_VERSION}
7 CATEGORIES= x11 tcl tk
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
13 LICENSE= 2-clause-bsd
15 MAKE_JOBS_SAFE= no
16 WRKSRC= ${WRKDIR}/Tix8.4.3
17 GNU_CONFIGURE= yes
19 .include "options.mk"
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}
31 TEST_TARGET= test
32 INSTALLATION_DIRS+= ${PKGMANDIR}/mann
33 INSTALLATION_DIRS+= lib/Tix${TIX_VERSION}/docs
34 USE_TOOLS+= tar
36 post-install:
37 for f in ${WRKSRC}/man/*.n; do \
38 ${INSTALL_DATA} -m 444 $$f \
39 ${DESTDIR}${PREFIX}/${PKGMANDIR}/mann; \
40 done
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"