View | Details | Raw Unified | Return to bug 173462
Collapse All | Expand All

(-)./Makefile (-17 / +23 lines)
Lines 1-32 Link Here
1
# New ports collection makefile for:	linux-pete-xgl2gpu
1
# Created by: Jean-Yves Lefort <jylefort@FreeBSD.org>
2
# Date created:			16 Jul 2005
3
# Whom:				Jean-Yves Lefort <jylefort@FreeBSD.org>
4
#
5
# $FreeBSD: head/emulators/linux-pete-xgl2gpu/Makefile 300896 2012-07-14 13:54:48Z beat $
2
# $FreeBSD: head/emulators/linux-pete-xgl2gpu/Makefile 300896 2012-07-14 13:54:48Z beat $
6
#
7
3
8
PORTNAME=	linux-pete-xgl2gpu
4
PORTNAME=	pete-xgl2gpu
9
PORTVERSION=	2.8
5
PORTVERSION=	${XGL2GPU_VERSION}
10
CATEGORIES=	emulators linux
6
CATEGORIES=	emulators linux
11
MASTER_SITES=	http://www.pbernert.com/
7
MASTER_SITES=	http://www.pbernert.com/
12
DISTNAME=	gpupetexgl${MAJOR}0${MINOR}
8
PKGNAMEPREFIX=	linux-
9
DISTFILES=	gpupetexgl${MAJOR}0${MINOR}${EXTRACT_SUFX} \
10
		${CFG_DISTFILE}
13
11
14
MAINTAINER=	ports@FreeBSD.org
12
MAINTAINER=	cyberbotx@cyberbotx.com
15
COMMENT=	A PSEmu Pro GPU plugin using a modern OpenGL renderer (Linux version)
13
COMMENT=	A PSEmu Pro GPU plugin using a modern OpenGL renderer (Linux version)
16
14
17
.if defined(WITH_NVIDIA_GL)
18
RUN_DEPENDS+=	${LINUXBASE}/usr/lib/libGL.so.1:${PORTSDIR}/x11/nvidia-driver
19
.else
20
USE_LINUX_APPS+=dri
21
.endif
22
23
NO_WRKSUBDIR=	yes
15
NO_WRKSUBDIR=	yes
24
NO_BUILD=	yes
16
NO_BUILD=	yes
25
USE_LINUX=	yes
17
USE_LINUX=	yes
26
USE_LINUX_APPS=	gtk xorglibs
18
USE_LINUX_APPS=	gtk xorglibs
19
PORTDOCS=	*
27
20
28
ONLY_FOR_ARCHS=	i386 amd64
21
ONLY_FOR_ARCHS=	i386 amd64
29
22
23
OPTIONS_DEFINE=	NVIDIA_GL
24
NVIDIA_GL_DESC=	Use nVidia OpenGL driver
25
30
MAJOR=		${PORTVERSION:R}
26
MAJOR=		${PORTVERSION:R}
31
MINOR=		${PORTVERSION:E}
27
MINOR=		${PORTVERSION:E}
32
PLIST_SUB+=	MAJOR=${MAJOR} MINOR=${MINOR}
28
PLIST_SUB+=	MAJOR=${MAJOR} MINOR=${MINOR}
Lines 35-40 Link Here
35
PSEMUPRO_CFGBINS_DIR=	${PREFIX}/libexec/psemupro/cfg
31
PSEMUPRO_CFGBINS_DIR=	${PREFIX}/libexec/psemupro/cfg
36
PSEMUPRO_CFGFILES_DIR=	${PREFIX}/share/psemupro/cfg
32
PSEMUPRO_CFGFILES_DIR=	${PREFIX}/share/psemupro/cfg
37
33
34
.include <bsd.port.options.mk>
35
36
.include "${.CURDIR}/../linux-pete-xgl2gpu/Makefile.inc"
37
38
.if ${PORT_OPTIONS:MNVIDIA_GL}
39
RUN_DEPENDS+=	${LINUXBASE}/usr/lib/libGL.so.1:${PORTSDIR}/x11/nvidia-driver
40
.else
41
USE_LINUX_APPS+=dri
42
.endif
43
38
# by default, disable options which may crash the plugin
44
# by default, disable options which may crash the plugin
39
post-patch:
45
post-patch:
40
	@${REINPLACE_CMD} -e '/^TWinShader/ s|= 1|= 0|' \
46
	@${REINPLACE_CMD} -e '/^TWinShader/ s|= 1|= 0|' \
Lines 45-56 Link Here
45
	${INSTALL_PROGRAM} ${WRKSRC}/libgpuPeteXGL2.so.${MAJOR}.0.${MINOR} ${PSEMUPRO_PLUGINS_DIR}
51
	${INSTALL_PROGRAM} ${WRKSRC}/libgpuPeteXGL2.so.${MAJOR}.0.${MINOR} ${PSEMUPRO_PLUGINS_DIR}
46
52
47
	${MKDIR} ${PSEMUPRO_CFGBINS_DIR}
53
	${MKDIR} ${PSEMUPRO_CFGBINS_DIR}
48
	${INSTALL_PROGRAM} ${WRKSRC}/cfgPeteXGL2 ${PSEMUPRO_CFGBINS_DIR}
54
	${INSTALL_PROGRAM} ${WRKSRC}/cfg/cfgPeteXGL2 ${PSEMUPRO_CFGBINS_DIR}
49
55
50
	${MKDIR} ${PSEMUPRO_CFGFILES_DIR}
56
	${MKDIR} ${PSEMUPRO_CFGFILES_DIR}
51
	${INSTALL_DATA} ${WRKSRC}/gpuPeteXGL2.cfg ${PSEMUPRO_CFGFILES_DIR}
57
	${INSTALL_DATA} ${WRKSRC}/gpuPeteXGL2.cfg ${PSEMUPRO_CFGFILES_DIR}
52
58
53
.if !defined(NOPORTDOCS)
59
.if ${PORT_OPTIONS:MDOCS}
54
	${MKDIR} ${DOCSDIR}
60
	${MKDIR} ${DOCSDIR}
55
	${INSTALL_DATA} ${WRKSRC}/*.txt ${DOCSDIR}
61
	${INSTALL_DATA} ${WRKSRC}/*.txt ${DOCSDIR}
56
.endif
62
.endif
(-)./Makefile.inc (+7 lines)
Line 0 Link Here
1
# $FreeBSD$
2
3
XGL2GPU_VERSION=	2.9
4
MESAGPU_VERSION=	1.77
5
SOFTGPU_VERSION=	1.18
6
7
CFG_DISTFILE=	petegpucfg_V${XGL2GPU_VERSION:C/\./-/}_V${MESAGPU_VERSION:C/\./-/}_V${SOFTGPU_VERSION:C/\./-/}${EXTRACT_SUFX}
(-)./distinfo (-2 / +4 lines)
Lines 1-2 Link Here
1
SHA256 (gpupetexgl208.tar.gz) = 01486fd9c644e44abd7aa303cbdccd4139d2a133b75f53436b6b8e5fb14dc9d0
1
SHA256 (gpupetexgl209.tar.gz) = 83427665c31bbae16c1fbd7c695d0bc9acc4cfcf911302c031f852c850c9cc5d
2
SIZE (gpupetexgl208.tar.gz) = 189449
2
SIZE (gpupetexgl209.tar.gz) = 173744
3
SHA256 (petegpucfg_V2-9_V1-77_V1-18.tar.gz) = 1488750fb2f158b68ef11b693fc1f45948ec41e84b1329315703adc91679fd91
4
SIZE (petegpucfg_V2-9_V1-77_V1-18.tar.gz) = 59589
(-)./pkg-plist (-3 lines)
Lines 7-12 Link Here
7
@dirrmtry libexec/psemupro
7
@dirrmtry libexec/psemupro
8
@dirrmtry share/psemupro/cfg
8
@dirrmtry share/psemupro/cfg
9
@dirrmtry share/psemupro
9
@dirrmtry share/psemupro
10
%%PORTDOCS%%%%DOCSDIR%%/readme.txt
11
%%PORTDOCS%%%%DOCSDIR%%/version.txt
12
%%PORTDOCS%%@dirrm %%DOCSDIR%%

Return to bug 173462