b0ccc694f9
Pete's XGL2 GPU is a PSEmu Pro GPU plugin using a hardware-accelerated modern OpenGL renderer. This is the Linux version, tested with emulators/linux-ePSXe. WWW: http://www.pbernert.com/
62 lines
1.7 KiB
Makefile
62 lines
1.7 KiB
Makefile
# 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.7
|
|
CATEGORIES= emulators linux
|
|
MASTER_SITES= http://www.pbernert.com/
|
|
DISTNAME= gpupetexgl${MAJOR}0${MINOR}
|
|
|
|
MAINTAINER= jylefort@brutele.be
|
|
COMMENT= A PSEmu Pro GPU plugin using a modern OpenGL renderer (Linux version)
|
|
|
|
RUN_DEPENDS= ${LINUXBASE}/usr/lib/libgtk-1.2.so.0:${PORTSDIR}/x11-toolkits/linux-gtk
|
|
|
|
.if defined(WITH_NVIDIA_GL)
|
|
RUN_DEPENDS+= ${LINUXBASE}/usr/lib/libGL.so.1:${PORTSDIR}/x11/nvidia-driver
|
|
.else
|
|
RUN_DEPENDS+= ${LINUXBASE}/usr/X11R6/lib/libGL.so.1:${PORTSDIR}/graphics/linux_dri
|
|
.endif
|
|
|
|
USE_REINPLACE= yes
|
|
NO_WRKSUBDIR= yes
|
|
NO_BUILD= yes
|
|
USE_LINUX= yes
|
|
USE_X_PREFIX= yes
|
|
|
|
ONLY_FOR_ARCHS= i386
|
|
|
|
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 \
|
|
'/^NoRenderTexture/ s|= 0|= 1|; \
|
|
/^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>
|