summaryrefslogtreecommitdiff
path: root/x11/xorg-libs/Makefile
blob: 0839af750afd39afe466d4a90aa7b7b1af028126 (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# $NetBSD: Makefile,v 1.14 2005/02/09 12:53:19 xtraeme Exp $

DISTNAME=		${DISTFILES}
PKGNAME=		xorg-libs-${XORG_VER}
PKGREVISION=		5
CATEGORIES=		x11
MASTER_SITES=		${MASTER_SITE_XORG}
DISTFILES=		X11R${XORG_VER}-src1.tar.gz X11R${XORG_VER}-src2.tar.gz \
			X11R${XORG_VER}-src3.tar.gz
PATCH_SITES=		http://www.x.org/pub/X11R6.8.1/patches/
PATCHFILES=		xorg-681-CAN-2004-0914.patch

MAINTAINER=		xtraeme@NetBSD.org
HOMEPAGE=		http://www.x.org/
COMMENT=		X.org Libraries

BUILD_DEPENDS=		xorg-imake>=${XORG_VER}:../../x11/xorg-imake

.include "../../mk/bsd.prefs.mk"

.include "../../meta-pkgs/xorg/Makefile.common"

.if ${X11ROOT} == ${LOCALBASE}
CONFLICTS+=		MesaLib-[0-9]* glu-[0-9]*
CONFLICTS+=		xextensions-[0-9]*
CONFLICTS+=		libX11-[0-9]*
CONFLICTS+=		libXau-[0-9]*
.endif

USE_BUILDLINK3=			yes
BUILDLINK_PASSTHRU_DIRS+=	${X11ROOT}/lib

XBUILD_DIRS=		lib nls programs/Xserver/include \
			programs/Xserver/hw/xfree86/parser
XINSTALL_DIRS=		include lib nls programs/Xserver/include \
			programs/Xserver/hw/xfree86/parser
XINSTALL_MAN_DIRS=	${XINSTALL_DIRS}

SUBST_CLASSES+=		mkstrs
SUBST_STAGE.mkstrs=	post-patch
SUBST_FILES.mkstrs=	config/cf/Library.tmpl
SUBST_SED.mkstrs=	-e 's,@MAKESTRS@,${X11ROOT}/bin/makestrs,g'
SUBST_MESSAGE.mkstrs=	"Fixing path of makestrs."

.if ${OPSYS} == "Linux"
post-install:
	@${LDCONFIG} ${X11ROOT}/lib || ${TRUE}
.endif

pre-install:
.if !exists(${X11ROOT}/lib/pkgconfig)
	${INSTALL_DATA_DIR} ${X11BASE}/lib/pkgconfig
.endif
.for f in fixesext.pc compositeext.pc
	@${SED} -e "s,@X11BASE@,${X11BASE},g"		\
		-e "s,@LOCALBASE@,${LOCALBASE},g"	\
		${FILESDIR}/${f} > ${WRKSRC}/${f}
	${INSTALL_DATA} ${WRKSRC}/${f} ${X11BASE}/lib/pkgconfig/${f}
.endfor


.if !empty(OPSYS:MNetBSD)
.  if !empty(MACHINE_ARCH:Mi386) || !empty(MACHINE_ARCH:Mx86_64)
PLIST_SRC+=	${.CURDIR}/PLIST.common
PLIST_SRC+=	${.CURDIR}/PLIST.common_end
PLIST_SRC+=	${.CURDIR}/PLIST.${OPSYS}
PLIST_SRC+=	${.CURDIR}/PLIST.${OPSYS}.i386
.  endif
.endif

.include "../../fonts/fontconfig/buildlink3.mk"
.include "../../graphics/freetype2/buildlink3.mk"
.include "../../textproc/expat/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"