aboutsummaryrefslogtreecommitdiffstats
path: root/emulators/linux-pete-xgl2gpu/Makefile
blob: a8d5aec27ede524f26faedf699663fc93adae476 (plain) (blame)
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
# New ports collection makefile for:    linux-pete-xgl2gpu
# Date created:         16 Jul 2005
# Whom:             Jean-Yves Lefort <jylefort@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   linux-pete-xgl2gpu
PORTVERSION=    2.8
CATEGORIES= emulators linux
MASTER_SITES=   http://www.pbernert.com/
DISTNAME=   gpupetexgl${MAJOR}0${MINOR}

MAINTAINER= ports@FreeBSD.org
COMMENT=    A PSEmu Pro GPU plugin using a modern OpenGL renderer (Linux version)

.if defined(WITH_NVIDIA_GL)
RUN_DEPENDS+=   ${LINUXBASE}/usr/lib/libGL.so.1:${PORTSDIR}/x11/nvidia-driver
.else
USE_LINUX_APPS+=dri
.endif

NO_WRKSUBDIR=   yes
NO_BUILD=   yes
USE_LINUX=  yes
USE_LINUX_APPS= gtk xorglibs

ONLY_FOR_ARCHS= i386 amd64

MAJOR=      ${PORTVERSION:R}
MINOR=      ${PORTVERSION:E}
PLIST_SUB+= MAJOR=${MAJOR} MINOR=${MINOR}

PSEMUPRO_PLUGINS_DIR=   ${PREFIX}/lib/psemupro/plugins
PSEMUPRO_CFGBINS_DIR=   ${PREFIX}/libexec/psemupro/cfg
PSEMUPRO_CFGFILES_DIR=  ${PREFIX}/share/psemupro/cfg

# by default, disable options which may crash the plugin
post-patch:
    @${REINPLACE_CMD} -e '/^TWinShader/ s|= 1|= 0|' \
        ${WRKSRC}/gpuPeteXGL2.cfg

do-install:
    ${MKDIR} ${PSEMUPRO_PLUGINS_DIR}
    ${INSTALL_PROGRAM} ${WRKSRC}/libgpuPeteXGL2.so.${MAJOR}.0.${MINOR} ${PSEMUPRO_PLUGINS_DIR}

    ${MKDIR} ${PSEMUPRO_CFGBINS_DIR}
    ${INSTALL_PROGRAM} ${WRKSRC}/cfgPeteXGL2 ${PSEMUPRO_CFGBINS_DIR}

    ${MKDIR} ${PSEMUPRO_CFGFILES_DIR}
    ${INSTALL_DATA} ${WRKSRC}/gpuPeteXGL2.cfg ${PSEMUPRO_CFGFILES_DIR}

.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/*.txt ${DOCSDIR}
.endif

.include <bsd.port.mk>