blob: 431f53b0694a68e21b66606feaaaff3d55a076bc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# $NetBSD: Makefile,v 1.5 2004/01/08 04:45:12 rtr Exp $
.include <bsd.own.mk>
LIB= Xcursor
.PATH: ${X11SRCDIR.xc}/lib/${LIB}
SRCS= cursor.c display.c file.c library.c xlib.c
INCS= Xcursor.h
INCSDIR=${X11INCDIR}/X11/Xcursor
MAN= Xcursor.3
CPPFLAGS+= ${X11FLAGS.THREADLIB}
CPPFLAGS+= -DICONDIR=\"${X11LIBDIR}/icons\"
LDADD+= -lXrender -lXext -lX11
DPADD+= ${LIBXRENDER} ${LIBXEXT} ${LIBX11}
# XXX it would be really swell if SCRIPTS was available from bsd.lib.mk
FILES= xcursor.pc xcursor-config
FILESDIR_xcursor.pc= ${X11USRLIBDIR}/pkgconfig
FILESDIR_xcursor-config=${X11BINDIR}
FILESOWN_xcursor-config=${BINOWN}
FILESGRP_xcursor-config=${BINGRP}
FILESMODE_xcursor-config=${BINMODE}
.PHONY: xcursor.pc xcursor-config
all dependall: xcursor.pc xcursor-config
XCURSORDIR= ${X11SRCDIR.xc}/lib/Xcursor
CONFIG_SUBST= ${HOST_SH} ${XCURSORDIR}/config-subst \
prefix="${X11ROOTDIR}" \
exec_prefix="${X11BINDIR}" \
libdir="${X11USRLIBDIR}" \
includedir="${X11INCDIR}" \
PACKAGE_VERSION="1.0.0"
xcursor.pc:
${CONFIG_SUBST} < ${XCURSORDIR}/xcursor.pc.in > ${.TARGET}
xcursor-config:
${CONFIG_SUBST} < ${XCURSORDIR}/xcursor-config.in > ${.TARGET}
.include <bsd.x11.mk>
.include <bsd.lib.mk>
|