aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/metacam/Makefile
blob: c5edb953d448f13f9c7f2cb640c4b9ca509b5dd2 (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
47
48
49
50
51
52
# New ports collection makefile for:    metacam
# Date created:             2 Sep 2005
# Whom:                 Emanuel Haupt <ehaupt@critical.ch>
#
# $FreeBSD$
#

PORTNAME=   metacam
PORTVERSION=    1.2
CATEGORIES= graphics
MASTER_SITES=   http://critical.ch/distfiles/ \
        http://energy.critical.ch/distfiles/ \
        ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= ehaupt

MAINTAINER= ehaupt@FreeBSD.org
COMMENT=    A digital camera EXIF meta-information reader

USE_GMAKE=  yes
USE_GETOPT_LONG=yes
USE_GCC=    3.4+

CFLAGS+=    -I${LOCALBASE}/include
CXXFLAGS+=  -I${LOCALBASE}/include
MAKE_ENV+=  LDFLAGS="${LDFLAGS}"

PLIST_FILES=    bin/metacam
PORTDOCS=   README.canon README.casio
MAN1=       metacam.1

ALL_TARGET= ${PORTNAME}

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 500000
post-patch:
    @${REINPLACE_CMD} -e 's|<\(getopt\.h\)>|"\1"|' ${WRKSRC}/${PORTNAME}.cc
    ${CP} ${FILESDIR}/getopt.h ${WRKSRC}
.endif

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
    ${INSTALL_MAN} ${FILESDIR}/${PORTNAME}.1 ${MANPREFIX}/man/man1

.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
    ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.post.mk>