1 1.1.2.1 pgoyette # $NetBSD: Makefile,v 1.1.2.1 2017/01/07 08:56:00 pgoyette Exp $ 2 1.1 mrg 3 1.1 mrg DRIVER= xf86-video-nouveau 4 1.1 mrg DRIVER_NAME= nouveau_drv 5 1.1 mrg 6 1.1 mrg SRCS= nouveau_copy.c \ 7 1.1 mrg nouveau_copy85b5.c \ 8 1.1 mrg nouveau_copy90b5.c \ 9 1.1 mrg nouveau_copya0b5.c \ 10 1.1 mrg nouveau_exa.c \ 11 1.1 mrg nouveau_xv.c \ 12 1.1 mrg nouveau_dri2.c \ 13 1.1 mrg nouveau_glamor.c \ 14 1.1 mrg nouveau_present.c \ 15 1.1 mrg nouveau_sync.c \ 16 1.1 mrg nouveau_wfb.c \ 17 1.1 mrg nv_accel_common.c \ 18 1.1 mrg nv_driver.c \ 19 1.1 mrg nv_shadow.c \ 20 1.1 mrg nv04_exa.c \ 21 1.1 mrg nv04_xv_ovl.c \ 22 1.1 mrg nv04_xv_blit.c \ 23 1.1 mrg nv10_exa.c \ 24 1.1 mrg nv10_xv_ovl.c \ 25 1.1 mrg nv30_exa.c \ 26 1.1 mrg nv30_xv_tex.c \ 27 1.1 mrg nv40_exa.c \ 28 1.1 mrg nv40_xv_tex.c \ 29 1.1 mrg nv50_accel.c \ 30 1.1 mrg nv50_exa.c \ 31 1.1 mrg nv50_xv.c \ 32 1.1 mrg nvc0_accel.c \ 33 1.1 mrg nvc0_exa.c \ 34 1.1 mrg nvc0_xv.c \ 35 1.1 mrg drmmode_display.c \ 36 1.1 mrg vl_hwmc.c 37 1.1 mrg 38 1.1 mrg LIBDPLIBS+= drm_nouveau ${.CURDIR}/../../../lib/libdrm_nouveau 39 1.1 mrg 40 1.1 mrg MAN= nouveau.4 41 1.1 mrg 42 1.1 mrg CPPFLAGS+= -DHAVE_XAA_H 43 1.1 mrg CPPFLAGS+= -I${DESTDIR}${X11INCDIR}/libdrm 44 1.1 mrg 45 1.1 mrg CPPFLAGS+= -DNV_MAJOR_VERSION=${PACKAGE_MAJOR} 46 1.1 mrg CPPFLAGS+= -DNV_MINOR_VERSION=${PACKAGE_MINOR} 47 1.1 mrg CPPFLAGS+= -DNV_PATCHLEVEL=${PACKAGE_PATCH} 48 1.1 mrg CPPFLAGS+= -DNV_DRIVER_DATE=${DRIVER_DATE} 49 1.1 mrg 50 1.1 mrg .include "../Makefile.xf86-driver" 51 1.1 mrg 52 1.1.2.1 pgoyette # XXX 53 1.1.2.1 pgoyette .if ${HAVE_GCC:U0} > 48 54 1.1.2.1 pgoyette COPTS.nouveau_xv.c+= ${${ACTIVE_CC} == "gcc":? -Wno-error=discarded-qualifiers :} 55 1.1.2.1 pgoyette .endif 56 1.1.2.1 pgoyette COPTS.nouveau_xv.c+= ${${ACTIVE_CC} == "clang":? -Wno-error=incompatible-pointer-types-discards-qualifiers :} 57 1.1.2.1 pgoyette 58 1.1.2.1 pgoyette .if ${XORG_SERVER_SUBDIR} != "xorg-server.old" 59 1.1.2.1 pgoyette CPPFLAGS+= -DHAVE_XORG_LIST 60 1.1.2.1 pgoyette .endif 61 1.1.2.1 pgoyette 62 1.1 mrg # from pkgsrc/x11/xf86-video-nouveau/patches/patch-configure 63 1.1 mrg DRIVER_DATE!=awk '/^Date:/{print "\"" $0 "\"";exit}' ${X11SRCDIR.${DRIVER}}/ChangeLog 64