pkgsrc-wip/modular-xorg-server/Makefile
Blair Sadewitz b448a4bd26 I ain't gonna grieve, my lord no more ...
${RM} -f is a must here.
2008-02-18 10:23:44 +00:00

116 lines
4.1 KiB
Makefile

# $NetBSD: Makefile,v 1.13 2008/02/18 10:23:44 bsadewitz Exp $
DISTNAME= xorg-server-1.4.0.90
PKGNAME= modular-${DISTNAME}
CATEGORIES= x11
MASTER_SITES= http://www.NetBSD.org/~bjs/distfiles/
EXTRACT_SUFX= .tar.bz2
SPECIAL_PERMS+= bin/Xorg ${SETUID_ROOT_PERMS}
PKG_DESTDIR_SUPPORT= user-destdir
MAINTAINER= bjs@NetBSD.org
COMMENT= Xorg X11 Server from modular X.org X11
USE_LIBTOOL= yes
GNU_CONFIGURE= yes
PKGCONFIG_OVERRIDE+= xorg-server.pc.in
USE_TOOLS+= gmake pkg-config
BUILD_DEFS+= VARBASE
BUILD_DEFS_EFFECTS+= XKB_OUTPUT_DIR
OWN_DIRS+= ${XKB_OUTPUT_DIR}
XKB_OUTPUT_DIR?= ${VARBASE}/db/xkb
CONFIGURE_ARGS+= --localstatedir=${VARBASE}
CONFIGURE_ARGS+= --with-xkb-output=${XKB_OUTPUT_DIR:Q}
.include "../../mk/bsd.prefs.mk"
CONFIGURE_ARGS+= --disable-dmx
CONFIGURE_ARGS+= --disable-xprint
CONFIGURE_ARGS+= --disable-xwin
CONFIGURE_ARGS+= --with-release-version=${PKGNAME}
CONFIGURE_ARGS+= --with-vendor-name="The NetBSD Foundation"
CONFIGURE_ARGS+= --with-vendor-name-short="pkgsrc"
.if ${OPSYS} == "NetBSD"
CONFIGURE_ARGS+= --with-builder-addr="tech-x11@NetBSD.org"
CONFIGURE_ARGS+= --with-os-vendor="The NetBSD Foundation"
.endif
CONFIGURE_ARGS+= --with-os-name=${MACHINE_PLATFORM}
CONFIGURE_ARGS+= --enable-dri
CONFIGURE_ARGS+= --enable-xorg
CONFIGURE_ENV+= APP_MAN_SUFFIX=1 FILE_MAN_SUFFIX=5
DEPENDS+= xkeyboard-config-[0-9]*:../../x11/xkeyboard-config
BUILDLINK_API_DEPENDS.compositeproto+= compositeproto>=0.4
BUILDLINK_API_DEPENDS.fixesproto+= fixesproto>=4.0
BUILDLINK_API_DEPENDS.glproto+= glproto>=1.4.8
BUILDLINK_API_DEPENDS.kbproto+= kbproto>=1.0.3
BUILDLINK_API_DEPENDS.randrproto+= randrproto>=1.2.1
###
### If we're using a 64-bit architecture, randrproto>=0.9.3 and
### xf86dgaproto>=2.0.3 are required.
###
.if ${MACHINE_ARCH} == "x86_64" || ${MACHINE_ARCH} == "sparc64" || \
${MACHINE_ARCH} == "alpha"
BUILDLINK_API_DEPENDS.renderproto+= renderproto>=0.9.3
BUILDLINK_API_DEPENDS.xf86dgaproto+= xf86dgaproto>=2.0.3
.endif
BUILDLINK_API_DEPENDS.inputproto+= inputproto>=1.4.2
post-extract: dri-post-extract
${CP} ${FILESDIR}/modeline2c.awk ${WRKSRC}/hw/xfree86/common
${RM} -f ${WRKDIR}/Mesa-7.0.2/src/mesa/Makefile.orig
${RM} -f ${WRKDIR}/Mesa-7.0.2/docs/README.MINGW32.orig
.include "options.mk"
.include "../../devel/ncurses/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../fonts/libfontenc/buildlink3.mk"
.include "../../x11/bigreqsproto/buildlink3.mk"
.include "../../x11/compositeproto/buildlink3.mk"
.include "../../x11/damageproto/buildlink3.mk"
.include "../../x11/evieext/buildlink3.mk"
.include "../../x11/fixesproto/buildlink3.mk"
.include "../../x11/fontsproto/buildlink3.mk"
.include "../../x11/glproto/buildlink3.mk"
.include "../../x11/inputproto/buildlink3.mk"
.include "../../x11/libX11/buildlink3.mk"
.include "../../x11/libXau/buildlink3.mk"
.include "../../x11/libXaw/buildlink3.mk"
.include "../../x11/libXext/buildlink3.mk"
.include "../../x11/libXfixes/buildlink3.mk"
.include "../../x11/libXfont/buildlink3.mk"
.include "../../x11/libXt/buildlink3.mk"
.include "../../x11/libXxf86misc/buildlink3.mk"
.include "../../x11/libXxf86vm/buildlink3.mk"
.include "../../x11/libdrm/buildlink3.mk"
.include "../../x11/libxkbfile/buildlink3.mk"
.include "../../x11/libxkbui/buildlink3.mk"
.include "../../x11/pixman/buildlink3.mk"
.include "../../x11/randrproto/buildlink3.mk"
.include "../../x11/recordproto/buildlink3.mk"
.include "../../x11/renderproto/buildlink3.mk"
.include "../../x11/resourceproto/buildlink3.mk"
.include "../../x11/scrnsaverproto/buildlink3.mk"
.include "../../x11/trapproto/buildlink3.mk"
.include "../../x11/videoproto/buildlink3.mk"
.include "../../x11/xcmiscproto/buildlink3.mk"
.include "../../x11/xextproto/buildlink3.mk"
.include "../../x11/xf86bigfontproto/buildlink3.mk"
.include "../../x11/xf86dgaproto/buildlink3.mk"
.include "../../x11/xf86driproto/buildlink3.mk"
.include "../../x11/xf86miscproto/buildlink3.mk"
.include "../../x11/xf86vidmodeproto/buildlink3.mk"
.include "../../x11/xineramaproto/buildlink3.mk"
.include "../../x11/xproto/buildlink3.mk"
.include "../../x11/xtrans/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"