1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-18 03:46:03 +00:00
freebsd-ports/graphics/ocrad/Makefile
Pav Lucistnik b66e9c955a - Update maintainer's email address
PR:		ports/98102
Submitted by:	Ulrich Spoerlein <uspoerlein@gmail.com> (maintainer)
2006-05-29 20:46:13 +00:00

56 lines
1.2 KiB
Makefile

# New ports collection makefile for: graphics/ocrad
# Date created: 12.11.2003
# Whom: Ulrich Spoerlein <q@uni.de>
#
# $FreeBSD$
#
PORTNAME= ocrad
PORTVERSION= 0.14
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= uspoerlein@gmail.com
COMMENT= OCR program implemented as filter
USE_BZIP2= yes
HAS_CONFIGURE= yes
USE_GMAKE= yes
USE_GETOPT_LONG= yes
CONFIGURE_ARGS= --prefix=${PREFIX}
MAKE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" \
CXX="${CXX}"
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500035
USE_GCC= 3.4
post-patch:
. for f in main.cc rational.cc
@${REINPLACE_CMD} 's/std::snprintf/snprintf/g' ${WRKSRC}/$f
. endfor
.endif
.if ${OSVERSION} < 500041
MAKE_ENV+= CPPFLAGS="${CPPFLAGS} -DHAVE_DECL_GETOPT"
.endif
PORTDOCS= AUTHORS ChangeLog NEWS README TODO
PLIST_FILES= bin/ocrad
.if !defined(NOPORTDOCS)
INFO= ocrad
MAN1= ocrad.1
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/ocrad ${PREFIX}/bin
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR} && cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
@${INSTALL_MAN} ${WRKSRC}/doc/ocrad.1 ${PREFIX}/man/man1
@${INSTALL_DATA} ${WRKSRC}/doc/ocrad.info ${PREFIX}/info
.endif
.include <bsd.port.post.mk>