freebsd-ports/graphics/ocrad/Makefile
Emanuel Haupt 5005b67362 According to the Porter's Handbook (5.12.2.3.) default options must be added to
OPTIONS_DEFINE. This policy has been implemented only recently that's why we
have many ports violating this policy.

This patch adds the default options specified in the Porter's Handbook to
OPTIONS_DEFINE where they are being used. Ports maintained by
gnome@FreeBSD.org, kde@FreeBSD.org and x11@FreeBSD.org have been excluded.

Approved by:    portmgr (bapt)
2014-02-10 13:54:26 +00:00

51 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= *
OPTIONS_DEFINE= DOCS EXAMPLES
.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>