- Fix install with Xorg 6.9.0, unbreak

- Support amd64

PR:		ports/104532
Submitted by:	Xavier Beaudouin <kiwi@oav.net>,
		Anish Mistry <amistry@am-productions.biz>
Approved by:	maintainer timeout (x11, 1 month)
This commit is contained in:
Pav Lucistnik 2006-11-19 12:58:04 +00:00
parent 231fa7b7d3
commit d8f3214e5f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=177563
3 changed files with 31 additions and 14 deletions

View File

@ -6,30 +6,41 @@
#
PORTNAME= mga_hal
PORTVERSION= 4.1
PORTVERSION= 4.4.0
CATEGORIES= x11-servers
MASTER_SITES= ftp://ftp.matrox.com/pub/mga/archive/linux/2004/
DISTNAME= mgadriver-${PORTVERSION}
MASTER_SITES= ftp://ftp.matrox.com/pub/mga/archive/linux/%SUBDIR%/:i386,amd64
MASTER_SITE_SUBDIR= 2006/:i386 2006/64bit/:amd64
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:${ARCH}
MAINTAINER= x11@FreeBSD.org
COMMENT= Module for additional features with X.Org/XFree86 Matrox driver
RESTRICTED= "Matrox drivers may not be distributed."
RESTRICTED= Matrox drivers may not be distributed.
BROKEN= Does not install
ONLY_FOR_ARCHS= i386 amd64
USE_X_PREFIX= yes
ONLY_FOR_ARCHS= i386
.include <bsd.port.pre.mk>
PREFIX?= ${X11BASE}
WRKSRC= ${WRKDIR}/mgadriver-${PORTVERSION}
.if ${ARCH} == "i386"
DISTNAME= matrox_driver-x86_32-${PORTVERSION}
.elif ${ARCH} == "amd64"
DISTNAME= matrox_driver-x86_64-${PORTVERSION}
.endif
WRKSRC= ${WRKDIR}/${DISTNAME}
NO_BUILD= YES
XORG_VERSION= 6.9.0
do-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/docs/readme.txt ${DOCSDIR}
.endif
${INSTALL_DATA} ${WRKSRC}/xfree86/6.8.1/mga_hal_drv.o \
${MKDIR} ${PREFIX}/lib/modules/drivers
${INSTALL_DATA} ${WRKSRC}/xserver/${XORG_VERSION}/mga_hal_drv.so \
${PREFIX}/lib/modules/drivers/
${INSTALL_DATA} ${WRKSRC}/xserver/${XORG_VERSION}/mga_drv.so \
${PREFIX}/lib/modules/drivers/
.include <bsd.port.mk>
.include <bsd.port.post.mk>

View File

@ -1,3 +1,6 @@
MD5 (mgadriver-4.1.tar.gz) = f1075e3e2c8053aef73c0522f4a4ee90
SHA256 (mgadriver-4.1.tar.gz) = 9e6d6439c56403c2efa65dc01a6146139fe234a76fcd805fee20fbf40e06ed1f
SIZE (mgadriver-4.1.tar.gz) = 740410
MD5 (matrox_driver-x86_32-4.4.0.tar.gz) = 5ec049328eb0fa370851312872d9cfc5
SHA256 (matrox_driver-x86_32-4.4.0.tar.gz) = 2b82dc4d227950afb118f5957fb61fa55d4e6c87342e436e016f682f9145b727
SIZE (matrox_driver-x86_32-4.4.0.tar.gz) = 3172195
MD5 (matrox_driver-x86_64-4.4.0.tar.gz) = ebef76c86b0a4b628f8feae5b797a0a7
SHA256 (matrox_driver-x86_64-4.4.0.tar.gz) = 2ad5849c2c2744bd52374a8ed99d49a4f07cbb794657dd90688dcf170fbb9cf3
SIZE (matrox_driver-x86_64-4.4.0.tar.gz) = 3272079

View File

@ -1,3 +1,6 @@
%%PORTDOCS%%%%DOCSDIR%%/readme.txt
lib/modules/drivers/mga_hal_drv.o
lib/modules/drivers/mga_hal_drv.so
lib/modules/drivers/mga_drv.so
@dirrmtry lib/modules/drivers
@dirrmtry lib/modules
%%PORTDOCS%%@dirrm %%DOCSDIR%%