Tweak x11/nvidia-settings version 355.11_1
[dports.git] / x11 / nvidia-settings / Makefile
1 # Created by: Alexander Nedotsukov <bland@FreeBSD.org>
2 # $FreeBSD$
3
4 PORTNAME=       nvidia-settings
5 PORTVERSION=    355.11
6 PORTREVISION=   1
7 CATEGORIES=     x11
8
9 MAINTAINER=     bland@FreeBSD.org
10 COMMENT=        Display Control Panel for X NVidia driver
11
12 LICENSE=        GPLv2
13
14 LIB_DEPENDS=    libjansson.so:${PORTSDIR}/devel/jansson \
15                 libvdpau.so:${PORTSDIR}/multimedia/libvdpau
16
17 USE_GITHUB=     yes
18 GH_ACCOUNT=     NVIDIA
19
20 USE_GNOME=      gtk20
21 USES=           gmake pkgconfig
22 USE_GL=         gl
23 USE_XORG=       xext xv
24
25 PLIST_FILES=    bin/nvidia-settings \
26                 man/man1/nvidia-settings.1.gz \
27                 lib/libnvidia-gtk2.so.${PORTVERSION}
28
29 LDFLAGS+=       -pthread
30 MAKE_ENV=       NV_USE_BUNDLED_LIBJANSSON=0 \
31                 NV_VERBOSE= \
32                 STRIP_CMD=${TRUE} \
33                 INSTALL_BIN_ARGS="${INSTALL_PROGRAM:Ninstall}" \
34                 INSTALL_DOC_ARGS="${INSTALL_MAN:Ninstall}" \
35                 X_CFLAGS=-I${LOCALBASE}/include \
36                 X_LDFLAGS=-L${LOCALBASE}/lib
37
38 post-patch:     .SILENT
39         ${REINPLACE_CMD} \
40                  -e '/^MANDIR/s|share/||' ${WRKSRC}/utils.mk
41
42 post-install:   .SILENT
43         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libnvidia-gtk2.so.${PORTVERSION}
44
45 .include <bsd.port.mk>