f75176b39c
apg is a bit special as it has some hardcoded ownership, so mark that as "destdir".
73 lines
2.1 KiB
Makefile
73 lines
2.1 KiB
Makefile
# $NetBSD: Makefile,v 1.45 2006/10/09 12:52:36 joerg Exp $
|
|
|
|
DISTNAME= ${DISTFILES}
|
|
PKGNAME= xorg-libs-${XORG_VER}
|
|
PKGREVISION= 10
|
|
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
|
|
|
|
MAINTAINER= joerg@NetBSD.org
|
|
HOMEPAGE= http://www.x.org/
|
|
COMMENT= X.org Libraries
|
|
|
|
BUILD_DEPENDS= xorg-imake-[0-9]*:../../x11/xorg-imake
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
PLIST_SRC= ${WRKDIR}/.PLIST_SRC
|
|
XORG_PLIST_ENTRY= ${OPSYS}
|
|
.if ${OPSYS} != "Darwin"
|
|
XORG_PLIST_ENTRY+= i18n
|
|
. if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" || \
|
|
${MACHINE_ARCH} == "sparc64"
|
|
XORG_PLIST_ENTRY+= DGA-common
|
|
. endif
|
|
.endif
|
|
|
|
.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
|
|
|
|
INSTALLATION_DIRS+= ${X11BASE}/lib/pkgconfig
|
|
|
|
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.
|
|
|
|
post-install:
|
|
@${SED} ${XORG_PLIST_SED} ${PKGDIR}/PLIST > ${PLIST_SRC}
|
|
|
|
pre-install:
|
|
.if !exists(${X11BASE}/lib/pkgconfig)
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${X11BASE}/lib/pkgconfig
|
|
.endif
|
|
.for f in render.pc fixesext.pc compositeext.pc
|
|
@${SED} -e "s,@X11BASE@,${X11BASE},g" \
|
|
-e "s,@LOCALBASE@,${LOCALBASE},g" \
|
|
${FILESDIR}/${f} > ${WRKSRC}/${f}
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${X11BASE}/lib/pkgconfig/${f}
|
|
.endfor
|
|
|
|
.include "../../devel/zlib/buildlink3.mk"
|
|
.include "../../fonts/fontconfig/buildlink3.mk"
|
|
.include "../../graphics/freetype2/buildlink3.mk"
|
|
.include "../../textproc/expat/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|