aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/ocrad/Makefile
blob: 6cde20bcb8a0568da735c2103223f0c7446a3ab9 (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
# New ports collection makefile for:    graphics/ocrad
# Date created:             12.11.2003
# Whom:                 Ulrich Spoerlein <q@uni.de>
#
# $FreeBSD$
#

PORTNAME=   ocrad
PORTVERSION=    0.10
CATEGORIES= graphics
MASTER_SITES=   ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= ${PORTNAME}

MAINTAINER= q@uni.de
COMMENT=    OCR program implemented as filter

USE_BZIP2=  yes
HAS_CONFIGURE=  yes
USE_GMAKE=  yes
USE_GETOPT_LONG=    yes

CONFIGURE_ARGS= --prefix=${PREFIX}
MAKE_ENV=   CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" \
        CXX="${CXX}"

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 500035
USE_GCC=    3.4
.endif
.if ${OSVERSION} < 500041
MAKE_ENV+=  CPPFLAGS="${CPPFLAGS} -DHAVE_DECL_GETOPT"
.endif

PORTDOCS=   AUTHORS ChangeLog NEWS README TODO
PLIST_FILES=    bin/ocrad
INFO=       ocrad
MAN1=       ocrad.1

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/ocrad ${PREFIX}/bin
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR} && cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
    @${INSTALL_MAN} ${WRKSRC}/doc/ocrad.1 ${PREFIX}/man/man1
    @${INSTALL_DATA} ${WRKSRC}/doc/ocrad.info ${PREFIX}/info
    @install-info ${PREFIX}/info/ocrad.info ${PREFIX}/info/dir
.endif

.include <bsd.port.post.mk>