freebsd-ports/graphics/ocrad/Makefile
Mathieu Arnold 60d1a83c2a MASTER_SITES cleanup.
- Replace ${MASTER_SITE_FOO} with FOO.
- Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9%
  of the time.)
- Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and
  no hint of what it should be was present.
- Fix some logic.
- And generally, make things more simple and easy to understand.

While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and
SAMBA macros.

Also, replace some EXTRACT_SUFX occurences with USES=tar:*.

Checked by:	make fetch-urlall-list
With hat:	portmgr
Sponsored by:	Absolight
2015-05-14 10:15:04 +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
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>