aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/multican/Makefile
blob: f0898e32f02d1401e923c3ce36927f1e64499416 (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
# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
# $FreeBSD$

PORTNAME=   multican
DISTVERSION=    0.0.5
PORTREVISION=   1
CATEGORIES= graphics
MASTER_SITES=   SF

MAINTAINER= nemysis@FreeBSD.org
COMMENT=    Remote control utility for Canon DSLR cameras

LICENSE=    GPLv2

CFLAGS+=    -fPIC   # required at least on amd64
USE_LDCONFIG=   yes

PLIST_FILES=    bin/multican lib/libmultican.so.0 lib/libmultican.so \
        include/canonio.h include/usbio.h

PORTDOCS=   ChangeLog README TODO

OPTIONS_DEFINE= DOCS

post-patch:
    @${REINPLACE_CMD} -e 's|endian.h|sys/&|' ${WRKSRC}/canonio.c \
        ${WRKSRC}/usbio.c ${WRKSRC}/multican.c
    @${REINPLACE_CMD} -e 's|`getconf LFS_CFLAGS`|-w|' \
        ${WRKSRC}/Makefile

post-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
    ${INSTALL_LIB} ${WRKSRC}/libmultican.so.0 ${STAGEDIR}${PREFIX}/lib/
    ${LN} -sf libmultican.so.0 ${STAGEDIR}${PREFIX}/lib/libmultican.so
    ${INSTALL_DATA} ${WRKSRC}/*.h ${STAGEDIR}${PREFIX}/include/

    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>