1#	$NetBSD: Makefile,v 1.10 2005/01/21 05:15:36 rtr Exp $
2
3.include <bsd.own.mk>
4
5LIB=	Xcursor
6.PATH:	${X11SRCDIR.xc}/lib/${LIB}
7
8SRCS=	cursor.c display.c file.c library.c xlib.c
9
10INCS=	Xcursor.h
11INCSDIR=${X11INCDIR}/X11/Xcursor
12
13MAN=	Xcursor.3
14
15CPPFLAGS+=	${X11FLAGS.THREADS}
16CPPFLAGS+=	-DICONDIR=\"${X11LIBDIR}/icons\"
17
18LIBDPLIBS=\
19	Xrender	${.CURDIR}/../Xrender \
20	X11	${.CURDIR}/../X11/dynamic
21
22# XXX it would be really swell if SCRIPTS was available from bsd.lib.mk
23FILES=			xcursor.pc xcursor-config
24FILESDIR_xcursor.pc=	${X11USRLIBDIR}/pkgconfig
25FILESDIR_xcursor-config=${X11BINDIR}
26FILESOWN_xcursor-config=${BINOWN}
27FILESGRP_xcursor-config=${BINGRP}
28FILESMODE_xcursor-config=${BINMODE}
29
30CLEANFILES+=${FILES}
31realall: ${FILES}
32
33XCURSORDIR=	${X11SRCDIR.xc}/lib/Xcursor
34CONFIG_SUBST=	${HOST_SH} ${XCURSORDIR}/config-subst \
35		prefix="${X11ROOTDIR}" \
36		exec_prefix="${X11BINDIR}" \
37		libdir="${X11USRLIBDIR}" \
38		includedir="${X11INCDIR}" \
39		hardcode_libdir_flag_spec="-Wl,-rpath,${X11USRLIBDIR}" \
40		PACKAGE_VERSION="1.0.0"
41
42xcursor.pc:
43	${CONFIG_SUBST} < ${XCURSORDIR}/xcursor.pc.in > ${.TARGET}
44
45xcursor-config:
46	${CONFIG_SUBST} < ${XCURSORDIR}/xcursor-config.in > ${.TARGET}
47
48.include <bsd.x11.mk>
49.include <bsd.lib.mk>
50