File:  [cvs.NetBSD.org] / pkgsrc / x11 / xorg-clients / Attic / Makefile
Revision 1.34: download - view: text, annotated - select for diffs
Thu Feb 22 19:27:28 2007 UTC (17 years, 9 months ago) by wiz
Branches: MAIN
CVS tags: pkgsrc-2007Q2-base, pkgsrc-2007Q2, pkgsrc-2007Q1-base, pkgsrc-2007Q1, HEAD
Whitespace cleanup, courtesy of pkglint.
Patch provided by Sergey Svishchev in private mail.

# $NetBSD: Makefile,v 1.34 2007/02/22 19:27:28 wiz Exp $

DISTNAME=	${DISTFILES}
PKGNAME=	xorg-clients-${XORG_VER}
PKGREVISION=	9
CATEGORIES=	x11
MASTER_SITES=	${MASTER_SITE_XORG}
DISTFILES=	X11R${XORG_VER}-src1.tar.gz \
		X11R${XORG_VER}-src2.tar.gz \
		X11R${XORG_VER}-src3.tar.gz

MAINTAINER=	joerg@NetBSD.org
HOMEPAGE=	http://www.x.org/
COMMENT=	X.org client programs and related files

PKG_DESTDIR_SUPPORT=	user-destdir

DISTINFO_FILE=		${.CURDIR}/../../x11/xorg-libs/distinfo
PATCHDIR=		${.CURDIR}/../../x11/xorg-libs/patches

XBUILD_DIRS=		lib/xtrans lib/lbxutil programs fonts/util
XINSTALL_DIRS=		programs fonts/util
XINSTALL_MAN_DIRS=	programs

USE_TOOLS+=	perl:run imake
REPLACE_PERL+=	fonts/util/bdftruncate.pl

# XXX TODO: define build's VarDirectory to pkgsrc's VARBASE
OWN_DIRS=		${VARBASE}/lib/xdm
OWN_DIRS_PERMS+=	${VARBASE}/lib/xdm/authdir \
	${ROOT_USER} ${ROOT_GROUP} 0700
OWN_DIRS_PERMS+=	${VARBASE}/lib/xdm/authdir/authfiles \
	${ROOT_USER} ${ROOT_GROUP} 0700

EGDIR=			${PREFIX}/share/examples/xorg/xdm
PKG_SYSCONFSUBDIR=	xorg/xdm

CONF_FILES=		${EGDIR}/xdm-config ${PKG_SYSCONFDIR}/xdm-config
CONF_FILES+=		${EGDIR}/Xservers ${PKG_SYSCONFDIR}/Xservers
CONF_FILES+=		${EGDIR}/Xresources ${PKG_SYSCONFDIR}/Xresources
CONF_FILES+=		${EGDIR}/Xaccess ${PKG_SYSCONFDIR}/Xaccess
CONF_FILES_PERMS=	${EGDIR}/Xsetup_0 ${PKG_SYSCONFDIR}/Xsetup_0 \
	${ROOT_USER} ${ROOT_GROUP} 0755
CONF_FILES_PERMS+=	${EGDIR}/Xsession ${PKG_SYSCONFDIR}/Xsession \
	${ROOT_USER} ${ROOT_GROUP} 0755
CONF_FILES_PERMS+=	${EGDIR}/TakeConsole ${PKG_SYSCONFDIR}/TakeConsole \
	${ROOT_USER} ${ROOT_GROUP} 0755
CONF_FILES_PERMS+=	${EGDIR}/GiveConsole ${PKG_SYSCONFDIR}/GiveConsole \
	${ROOT_USER} ${ROOT_GROUP} 0755
CONF_FILES_PERMS+=	${EGDIR}/Xwilling ${PKG_SYSCONFDIR}/Xwilling \
	${ROOT_USER} ${ROOT_GROUP} 0755

post-wrapper:
	@${MKDIR} ${WRKSRC}/exports/include
	@${CP} -p ${X11ROOT}/include/X11/fonts/*.h ${BUILDLINK_DIR}/include

post-configure:
	@${MKDIR} ${WRKSRC}/exports/lib
	@${CP} -p ${X11ROOT}/lib/lib* ${WRKSRC}/exports/lib

.include "../../mk/bsd.prefs.mk"

.if ${OPSYS} == "Linux"
.  include "../../security/PAM/buildlink3.mk"
.endif

.include "../../meta-pkgs/xorg/Makefile.common"

.include "../../graphics/freetype2/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../x11/libXcursor/buildlink3.mk"
.include "../../x11/libXft/buildlink3.mk"
.include "../../x11/libXrandr/buildlink3.mk"
.include "../../mk/x11.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>