aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/picturebook/Makefile
blob: fc097efe893fc2514c1f4e96338126aba7a0f5a8 (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
# Created by: Takanori Watanabe <takawata@FreeBSD.org>
# $FreeBSD$

PORTNAME=   picturebook
PORTVERSION=    20010422
PORTREVISION=   9
CATEGORIES= graphics
MASTER_SITES=   http://samba.org/picturebook/
DISTNAME=   capture

MAINTAINER= ports@FreeBSD.org
COMMENT=    SONY VAIO camera capture utility

ONLY_FOR_ARCHS= i386

WRKSRC=     ${WRKDIR}/${PORTNAME}
USE_GNOME=  imlib
USES=       tar:tgz

PLIST_FILES=    bin/capture sbin/setbrightness sbin/vaiobat
PORTDOCS=   README README.FreeBSD

OPTIONS_DEFINE= DOCS

post-build:
    cd ${WRKSRC}; \
    ${CC} ${CFLAGS} -o setbrightness setbrightness.c; \
    ${CC} ${CFLAGS} -o vaiobat vaiobat.c

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/capture ${STAGEDIR}${PREFIX}/bin
    (cd ${WRKSRC} && ${INSTALL_PROGRAM} setbrightness vaiobat \
        ${STAGEDIR}${PREFIX}/sbin)
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_MAN} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
    ${INSTALL_MAN} ${PATCHDIR}/README.FreeBSD ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>