aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/libdrm
diff options
context:
space:
mode:
authorlinimon <linimon@FreeBSD.org>2012-06-25 01:30:00 +0800
committerlinimon <linimon@FreeBSD.org>2012-06-25 01:30:00 +0800
commitba80dc3330aaeb38382c78dc0b38f6006ab3b6a9 (patch)
tree48e21617f2b2e384c987aa171c65538a09e53490 /graphics/libdrm
parente7c4937129f900893def7826391764b04b98b4f0 (diff)
downloadfreebsd-ports-gnome-ba80dc3330aaeb38382c78dc0b38f6006ab3b6a9.tar.gz
freebsd-ports-gnome-ba80dc3330aaeb38382c78dc0b38f6006ab3b6a9.tar.zst
freebsd-ports-gnome-ba80dc3330aaeb38382c78dc0b38f6006ab3b6a9.zip
Fix build on powerpc and sparc64.
PR: ports/167489 No objection from: x11@
Diffstat (limited to 'graphics/libdrm')
-rw-r--r--graphics/libdrm/Makefile10
-rw-r--r--graphics/libdrm/pkg-plist12
2 files changed, 15 insertions, 7 deletions
diff --git a/graphics/libdrm/Makefile b/graphics/libdrm/Makefile
index 727509a9381b..28e235498276 100644
--- a/graphics/libdrm/Makefile
+++ b/graphics/libdrm/Makefile
@@ -50,9 +50,17 @@ LIBDRM_REVISION=1
PLIST_SUB+= OLD="" NEW="@comment "
.endif
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == "amd64" || ${ARCH} == "i386" || ${ARCH} == "ia64"
+PLIST_SUB+= X86=""
+.else
+PLIST_SUB+= X86="@comment "
+.endif
+
pre-patch:
@${REINPLACE_CMD} 's|{libdir}/pkgconfig|{prefix}/libdata/pkgconfig|g; \
12661s/x86_/amd/g' \
${WRKSRC}/configure
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/graphics/libdrm/pkg-plist b/graphics/libdrm/pkg-plist
index 5cef834e71f0..d8cd14c43f6c 100644
--- a/graphics/libdrm/pkg-plist
+++ b/graphics/libdrm/pkg-plist
@@ -11,13 +11,13 @@
%%OLD%%include/drm/savage_drm.h
%%OLD%%include/drm/sis_drm.h
%%OLD%%include/drm/via_drm.h
-%%OLD%%include/intel_bufmgr.h
+%%OLD%%%%X86%%include/intel_bufmgr.h
%%NEW%%include/libdrm/drm.h
%%NEW%%include/libdrm/drm_fourcc.h
%%NEW%%include/libdrm/drm_mode.h
%%NEW%%include/libdrm/drm_sarea.h
%%NEW%%include/libdrm/i915_drm.h
-%%NEW%%include/libdrm/intel_bufmgr.h
+%%NEW%%%%X86%%include/libdrm/intel_bufmgr.h
%%NEW%%include/libdrm/intel_debug.h
%%NEW%%include/libdrm/mach64_drm.h
%%NEW%%include/libdrm/mga_drm.h
@@ -53,9 +53,9 @@ include/xf86drmMode.h
lib/libdrm.la
lib/libdrm.so
lib/libdrm.so.2
-lib/libdrm_intel.la
-lib/libdrm_intel.so
-lib/libdrm_intel.so.1
+%%X86%%lib/libdrm_intel.la
+%%X86%%lib/libdrm_intel.so
+%%X86%%lib/libdrm_intel.so.1
lib/libdrm_nouveau.la
lib/libdrm_nouveau.so
lib/libdrm_nouveau.so.1
@@ -66,7 +66,7 @@ lib/libdrm_nouveau.so.1
%%NEW%%%%KMS%%lib/libkms.so
%%NEW%%%%KMS%%lib/libkms.so.1
libdata/pkgconfig/libdrm.pc
-libdata/pkgconfig/libdrm_intel.pc
+%%X86%%libdata/pkgconfig/libdrm_intel.pc
libdata/pkgconfig/libdrm_nouveau.pc
%%NEW%%libdata/pkgconfig/libdrm_radeon.pc
%%NEW%%%%KMS%%libdata/pkgconfig/libkms.pc