blob: c841ab22c93f53aa759001181b2a03eafcaf8e5b (
plain) (
tree)
|
|
# Created by: Jean-Yves Lefort <jylefort@FreeBSD.org>
# $FreeBSD$
PORTNAME= pete-xgl2gpu
PORTVERSION= ${XGL2GPU_VERSION}
CATEGORIES= emulators linux
MASTER_SITES= http://www.pbernert.com/
PKGNAMEPREFIX= linux-
DISTFILES= gpupetexgl${MAJOR}0${MINOR}${EXTRACT_SUFX} \
${CFG_DISTFILE}
MAINTAINER= cyberbotx@cyberbotx.com
COMMENT= PSEmu Pro GPU plugin using a modern OpenGL renderer (Linux version)
NO_WRKSUBDIR= yes
NO_BUILD= yes
USE_LINUX= yes
USE_LINUX_APPS= gtk xorglibs
PORTDOCS= *
ONLY_FOR_ARCHS= i386 amd64
OPTIONS_DEFINE= NVIDIA_GL
NVIDIA_GL_DESC= Use nVidia OpenGL driver
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
.include <bsd.port.options.mk>
.include "${.CURDIR}/../linux-pete-xgl2gpu/Makefile.inc"
.if ${PORT_OPTIONS:MNVIDIA_GL}
RUN_DEPENDS+= ${LINUXBASE}/usr/lib/libGL.so.1:${PORTSDIR}/x11/nvidia-driver
.else
USE_LINUX_APPS+=dri
.endif
# 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}/cfg/cfgPeteXGL2 ${PSEMUPRO_CFGBINS_DIR}
${MKDIR} ${PSEMUPRO_CFGFILES_DIR}
${INSTALL_DATA} ${WRKSRC}/gpuPeteXGL2.cfg ${PSEMUPRO_CFGFILES_DIR}
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/*.txt ${DOCSDIR}
.endif
.include <bsd.port.mk>
|