1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00
freebsd-ports/graphics/ocrad/Makefile
Felippe de Meirelles Motta a913751f89 - Update to 0.22.
- Stage Support
- Fix build on current
2013-10-06 05:06:13 +00:00

50 lines
1.2 KiB
Makefile

# Created by: Ulrich Spoerlein <q@uni.de>
# $FreeBSD$
PORTNAME= ocrad
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
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} man/man1/ocrad.1.gz
PORTDOCS= AUTHORS ChangeLog NEWS README
PORTEXAMPLES= *
.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} ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/doc/ocrad.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
@(cd ${WRKSRC}/testsuite && ${COPYTREE_SHARE} \* ${STAGEDIR}${EXAMPLESDIR})
.endif
.include <bsd.port.mk>