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 |