blob: 8ed15ef63fb0b24b9d71187d22847d81d04c9031 (
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
|
# Created by: Ulrich Spoerlein <q@uni.de>
# $FreeBSD$
PORTNAME= ocrad
PORTVERSION= 0.25
CATEGORIES= graphics
MASTER_SITES= GNU
EXTRACT_SUFX= .tar.lz
MAINTAINER= ports@FreeBSD.org
COMMENT= OCR program implemented as filter
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
HAS_CONFIGURE= yes
CONFIGURE_ARGS= --prefix=${PREFIX} CXX="${CXX}" CXXFLAGS="${CXXFLAGS}"
PORTDOCS= AUTHORS ChangeLog NEWS README
PORTEXAMPLES= *
PLIST_FILES= bin/${PORTNAME} man/man1/ocrad.1.gz
OPTIONS_DEFINE= DOCS EXAMPLES
.include <bsd.port.options.mk>
.if ${OSVERSION} < 1000024
EXTRACT_DEPENDS= lzip:archivers/lzip
EXTRACT_CMD= ${LOCALBASE}/bin/lzip
EXTRACT_BEFORE_ARGS= -cd
EXTRACT_AFTER_ARGS= | ${TAR} -xf -
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/doc/ocrad.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} \
${STAGEDIR}${DOCSDIR})
post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
@(cd ${WRKSRC}/testsuite && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
.include <bsd.port.mk>
|