aboutsummaryrefslogtreecommitdiffstats
path: root/x11/xscreensaver-gnome-hacks/Makefile
blob: d2b05ab813bf13b191358974c63784a93f1de342 (plain) (blame)
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
# Created by: Joe Marcus Clarke <marcus@FreeBSD.org>
# $FreeBSD$

PORTNAME=   xscreensaver-gnome-hacks
PORTREVISION=   3

MAINTAINER= ports@FreeBSD.org
COMMENT=    Screensaver modules for use with xscreensaver and gnome-screensaver

MASTERDIR=  ${.CURDIR}/../xscreensaver-gnome
DESCR=      ${.CURDIR}/pkg-descr
PLIST=      ${.CURDIR}/pkg-plist

CONFLICTS=  xscreensaver-[0-9]* xscreensaver-gnome-[0-9]*

OPTIONS_DEFINE= ALL_FORTUNES
ALL_FORTUNES_DESC=  Enable support for all fortunes

USES=       perl5 shebangfix
USE_PERL5=  build
SHEBANG_FILES=  ${SS_SCRIPTS:S,^,driver/,}
EXTRA_PATCHES=  ${FILESDIR}/extra-patch-nodriver

SS_SCRIPTS= xscreensaver-getimage-desktop xscreensaver-getimage-file \
        xscreensaver-getimage-video \
        xscreensaver-text
SS_PROGRAMS=    xscreensaver-getimage

post-build:
    @cd ${WRKSRC}/driver && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} \
        Makefile ${MAKE_ARGS} xscreensaver-getimage

post-install-slave:
    @${MKDIR} ${STAGEDIR}${PREFIX}/bin
.for sf in ${SS_SCRIPTS}
    ${INSTALL_SCRIPT} ${WRKSRC}/driver/${sf} ${STAGEDIR}${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/driver/${sf}.man \
        ${STAGEDIR}${MAN1PREFIX}/man/man1/${sf}.1
.endfor
.for sf in ${SS_PROGRAMS}
    ${INSTALL_PROGRAM} ${WRKSRC}/driver/${sf} ${STAGEDIR}${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/driver/${sf}.man \
        ${STAGEDIR}${MAN1PREFIX}/man/man1/${sf}.1
.endfor

.include "${MASTERDIR}/Makefile"