blob: 53d87d9a33846502d752be21f308c630147734d8 (
plain)
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
59
60
61
62
63
64
65
|
PORTNAME= nvidia-settings
PORTVERSION= 470.86
CATEGORIES= x11
MAINTAINER= x11@FreeBSD.org
COMMENT= Display Control Panel for X NVidia driver
LICENSE= GPLv2
ONLY_FOR_ARCHS= amd64 i386
ONLY_FOR_ARCHS_REASON= Nvidia driver is only available on x86
BUILD_DEPENDS= ${LOCALBASE}/include/dbus-1.0/dbus/dbus.h:devel/dbus
LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \
libfreetype.so:print/freetype2 \
libharfbuzz.so:print/harfbuzz \
libjansson.so:devel/jansson \
libvdpau.so:multimedia/libvdpau
USES= gl gmake gnome pkgconfig gettext-runtime xorg
USE_GNOME= gtk20 cairo gdkpixbuf2
USE_GL= gl
USE_XORG= x11 xext xv xxf86vm
USE_GITHUB= yes
GH_ACCOUNT= NVIDIA
PLIST_FILES= bin/nvidia-settings \
libexec/nvidia-settings \
man/man1/nvidia-settings.1.gz \
lib/libnvidia-gtk2.so.${PORTVERSION} \
share/applications/nvidia-settings.desktop \
share/pixmaps/nvidia-settings.png
SUB_FILES= nvidia-settings
LDFLAGS+= -pthread
LLD_UNSAFE= yes
MAKE_ENV= NV_USE_BUNDLED_LIBJANSSON=0 \
NV_VERBOSE=1 \
GTK3_AVAILABLE=0 \
INSTALL_DOC_ARGS="${INSTALL_MAN:Ninstall}" \
XNVCTRL_CFLAGS=-I${LOCALBASE}/include \
XNVCTRL_LDFLAGS=-L${LOCALBASE}/lib
post-patch: .SILENT
${REINPLACE_CMD} -e '/^MANDIR/s|share/||' ${WRKSRC}/utils.mk
${REINPLACE_CMD} -E -e 's,__(PIXMAP|UTILS)_PATH__/,,' \
-e 's|__NVIDIA_SETTINGS_DESKTOP_CATEGORIES__|Settings;HardwareSettings;|' \
${WRKSRC}/doc/nvidia-settings.desktop
${REINPLACE_CMD} -e 's|/usr/share/nvidia/|${LOCALBASE}/share/doc/NVIDIA_GLX-1.0/|' \
${WRKSRC}/src/gtk+-2.x/ctkappprofile.c
post-install: .SILENT
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libnvidia-gtk2.so.${PORTVERSION}
${INSTALL_DATA} ${WRKSRC}/doc/nvidia-settings.desktop \
${STAGEDIR}/${DESKTOPDIR}
${INSTALL_DATA} ${WRKSRC}/doc/nvidia-settings.png \
${STAGEDIR}/${PREFIX}/share/pixmaps
${MV} ${STAGEDIR}${PREFIX}/bin/nvidia-settings \
${STAGEDIR}${PREFIX}/libexec/nvidia-settings
${INSTALL} ${WRKDIR}/nvidia-settings \
${STAGEDIR}${PREFIX}/bin/nvidia-settings
.include <bsd.port.mk>
|