aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/ocrad/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/ocrad/Makefile')
-rw-r--r--graphics/ocrad/Makefile29
1 files changed, 17 insertions, 12 deletions
diff --git a/graphics/ocrad/Makefile b/graphics/ocrad/Makefile
index baf4fc9f11b8..1eaa25eb4d2e 100644
--- a/graphics/ocrad/Makefile
+++ b/graphics/ocrad/Makefile
@@ -2,11 +2,11 @@
# $FreeBSD$
PORTNAME= ocrad
-PORTVERSION= 0.21
-PORTREVISION= 1
+PORTVERSION= 0.22
CATEGORIES= graphics
MASTER_SITES= GNU
MASTER_SITE_SUBDIR= ${PORTNAME}
+EXTRACT_SUFX= .tar.lz
MAINTAINER= lippe@FreeBSD.org
COMMENT= OCR program implemented as filter
@@ -18,27 +18,32 @@ CONFIGURE_ARGS= --prefix=${PREFIX} CXXFLAGS="${CXXFLAGS}" CXX="${CXX}"
CXXFLAGS+= -Wall -W
MAKE_ARGS= -j`${SYSCTL} -n hw.ncpu`
-PLIST_FILES= bin/${PORTNAME}
+PLIST_FILES= bin/${PORTNAME} man/man1/ocrad.1.gz
-MAN1= ocrad.1
-PORTDOCS= AUTHORS ChangeLog NEWS README TODO
+PORTDOCS= AUTHORS ChangeLog NEWS README
PORTEXAMPLES= *
-NO_STAGE= yes
.include <bsd.port.options.mk>
+.if ${OSVERSION} < 1000024
+EXTRACT_DEPENDS=lzip:${PORTSDIR}/archivers/lzip
+EXTRACT_CMD= ${LOCALBASE}/bin/lzip
+EXTRACT_BEFORE_ARGS= -cd
+EXTRACT_AFTER_ARGS= | ${TAR} -xf -
+.endif
+
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
- ${INSTALL_MAN} ${WRKSRC}/doc/${MAN1} ${MAN1PREFIX}/man/man1
+ ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/doc/ocrad.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
.if ${PORT_OPTIONS:MDOCS}
- @${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
- @${MKDIR} ${EXAMPLESDIR}
- @(cd ${WRKSRC}/testsuite && ${COPYTREE_SHARE} \* ${EXAMPLESDIR})
+ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ @(cd ${WRKSRC}/testsuite && ${COPYTREE_SHARE} \* ${STAGEDIR}${EXAMPLESDIR})
.endif
.include <bsd.port.mk>