aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/ocrad/Makefile
blob: baf4fc9f11b84ce572505d9aed3ccaa2f050e050 (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
# Created by: Ulrich Spoerlein <q@uni.de>
# $FreeBSD$

PORTNAME=   ocrad
PORTVERSION=    0.21
PORTREVISION=   1
CATEGORIES= graphics
MASTER_SITES=   GNU
MASTER_SITE_SUBDIR= ${PORTNAME}

MAINTAINER= lippe@FreeBSD.org
COMMENT=    OCR program implemented as filter

LICENSE=    GPLv3

HAS_CONFIGURE=  yes
CONFIGURE_ARGS= --prefix=${PREFIX} CXXFLAGS="${CXXFLAGS}" CXX="${CXX}"
CXXFLAGS+=  -Wall -W
MAKE_ARGS=  -j`${SYSCTL} -n hw.ncpu`

PLIST_FILES=    bin/${PORTNAME}

MAN1=       ocrad.1
PORTDOCS=   AUTHORS ChangeLog NEWS README TODO
PORTEXAMPLES=   *

NO_STAGE=   yes
.include <bsd.port.options.mk>

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/doc/${MAN1} ${MAN1PREFIX}/man/man1

.if ${PORT_OPTIONS:MDOCS}
    @${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
.endif

.if ${PORT_OPTIONS:MEXAMPLES}
    @${MKDIR} ${EXAMPLESDIR}
    @(cd ${WRKSRC}/testsuite && ${COPYTREE_SHARE} \* ${EXAMPLESDIR})
.endif

.include <bsd.port.mk>