diff options
author | Owain Ainsworth <oga@cvs.openbsd.org> | 2009-01-10 16:29:28 +0000 |
---|---|---|
committer | Owain Ainsworth <oga@cvs.openbsd.org> | 2009-01-10 16:29:28 +0000 |
commit | f2220079d539c7d69960672698ef8db8e39597e9 (patch) | |
tree | 5ca63dd15ab918b31b66bb33f8d914d902e216f0 /lib/libdrm/Makefile | |
parent | 1d16daa667e01e8cff2a01d3f1702a4206859b74 (diff) |
De-autoconf libdrm.
Now that xenocara has been made clean with respect to using kernel headers
instead of those provided with libdrm, remove the copy of the headers included
here. Since it is now very simple, move it over to using standard bsd makefiles
instead of autoconf.
ok matthieu@
Diffstat (limited to 'lib/libdrm/Makefile')
-rw-r--r-- | lib/libdrm/Makefile | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/lib/libdrm/Makefile b/lib/libdrm/Makefile new file mode 100644 index 000000000..a4ce71c0b --- /dev/null +++ b/lib/libdrm/Makefile @@ -0,0 +1,57 @@ +# $OpenBSD: Makefile,v 1.1 2009/01/10 16:29:26 oga Exp $ +.include <bsd.xconf.mk> + +LIB= drm + +DRM_MAJOR= 2 +DRM_MINOR= 3 +DRM_TINY= 1 + +INCSDIR= ${X11BASE}/include/ + +CPP= cpp -notraditional +DEBUG?= + +CPPFLAGS+= -I. \ + -I${X11BASE}/include \ + -I/usr/include/dev/pci/drm \ + -DX_PRIVSEP + +INCS= xf86drm.h + +SRCS= xf86drm.c \ + xf86drmHash.c \ + xf86drmRandom.c \ + xf86drmSL.c + +includes: _SUBDIRUSE + cd ${.CURDIR}; for i in ${INCS}; do \ + j="cmp -s $$i ${DESTDIR}${INCSDIR}/$$i || \ + ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m 444 \ + $$i ${DESTDIR}${INCSDIR}/"; \ + echo "\tinstalling $$i"; \ + eval "$$j"; \ + done + +NOPROFILE = + +obj: _xenocara_obj + +.include <bsd.lib.mk> +.include <bsd.xorg.mk> + +libdrm.pc: libdrm.pc.in Makefile + sed -e 's,@prefix@,$(X11BASE),' \ + -e 's,@exec_prefix@,${X11BASE},' \ + -e 's,@libdir@,${LIBDIR},' \ + -e 's,@includedir@,${INCSDIR},' \ + -e 's,@PACKAGE_VERSION@,$(DRM_MAJOR).$(DRM_MINOR).$(DRM_TINY),' \ + < ${.CURDIR}/libdrm.pc.in > libdrm.pc + +afterinstall: libdrm.pc + $(INSTALL) -c -m 644 -o root -g wheel libdrm.pc \ + ${DESTDIR}${LIBDIR}/pkgconfig + +CLEANFILES+= libdrm.pc + +.include <bsd.subdir.mk> |