pkgsrc/x11/XF86Setup/Makefile
minskim 2827f5b2d8 Enable tk84 and replace x11/tk with x11/tk83. Packages compatible
with 8.4 will be updated to depend on x11/tk after Tk update.
2004-03-08 20:27:13 +00:00

43 lines
1.2 KiB
Makefile

# $NetBSD: Makefile,v 1.32 2004/03/08 20:27:17 minskim Exp $
DISTNAME= XF86Setup-3.3.6
PKGREVISION= 1
CATEGORIES= x11
MASTER_SITES= ${MASTER_SITE_LOCAL}
EXTRACT_SUFX= .tar.bz2
MAINTAINER= tech-pkg@NetBSD.org
HOMEPAGE= http://www.xfree86.org/
COMMENT= Graphical configuration tool for XFree86
BUILD_DEPENDS= tcl>=8.3.2:../../lang/tcl83
BUILD_DEPENDS+= tk>=8.3.2:../../x11/tk83
ONLY_FOR_PLATFORM= *-*-i386
WRKSRC= ${WRKDIR}/hw/xfree86/XF86Setup
TCLLIB= ${LOCALBASE}/lib/libtcl83.a
TKLIB= ${LOCALBASE}/lib/libtk83.a
NO_SRC_ON_FTP= Already in MASTER_SITE_LOCAL
USE_IMAKE= yes
.if !defined(X11_RELEASE) && !defined(CHECK_X11)
X11_RELEASE!= ${MAKE} CHECK_X11=YES print-x11-release
MAKEFLAGS+= X11_RELEASE=${X11_RELEASE}
.if (${X11_RELEASE} == "6.4")
PKG_SKIP_REASON= "This package doesn't work with your X11 distribution."
.endif
.endif
pre-configure:
@${TOUCH} ${WRKSRC}/res_cpp_symbol
${CP} ${WRKSRC}/main.c ${WRKSRC}/main.c.orig
${SED} -e 's:PKG_PREFIX:${PREFIX}:g' ${WRKSRC}/main.c.orig > ${WRKSRC}/main.c
.include "../../mk/bsd.pkg.mk"
print-x11-release:
@${GREP} '^#define SharedXextRev' ${X11BASE}/lib/X11/config/X11.tmpl \
| ${AWK} '{print($$3)}'