svn commit: r314871 - head/graphics/ocrad
Felippe de Meirelles Motta
lippe at FreeBSD.org
Thu Mar 21 20:41:10 UTC 2013
Author: lippe
Date: Thu Mar 21 20:41:09 2013
New Revision: 314871
URL: http://svnweb.freebsd.org/changeset/ports/314871
Log:
- Convert to OptionsNG
- Make portlint happy
PR: ports/177130
Submitted by: nemysis <nemysis at gmx.ch>
Approved by: lippe (maintainer)
Deleted:
head/graphics/ocrad/pkg-plist
Modified:
head/graphics/ocrad/Makefile (contents, props changed)
Modified: head/graphics/ocrad/Makefile
==============================================================================
--- head/graphics/ocrad/Makefile Thu Mar 21 20:38:15 2013 (r314870)
+++ head/graphics/ocrad/Makefile Thu Mar 21 20:41:09 2013 (r314871)
@@ -1,39 +1,43 @@
-# New ports collection makefile for: graphics/ocrad
-# Date created: 12.11.2003
-# Whom: Ulrich Spoerlein <q at uni.de>
-#
+# Created by: Ulrich Spoerlein <q at uni.de>
# $FreeBSD$
-#
PORTNAME= ocrad
PORTVERSION= 0.21
+PORTREVISION= 1
CATEGORIES= graphics
-MASTER_SITES= ${MASTER_SITE_GNU}
+MASTER_SITES= GNU
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= lippe at FreeBSD.org
COMMENT= OCR program implemented as filter
-HAS_CONFIGURE= yes
+LICENSE= GPLv3
+HAS_CONFIGURE= yes
CONFIGURE_ARGS= --prefix=${PREFIX} CXXFLAGS="${CXXFLAGS}" CXX="${CXX}"
CXXFLAGS+= -Wall -W
MAKE_ARGS= -j`${SYSCTL} -n hw.ncpu`
-DOCS= AUTHORS COPYING ChangeLog NEWS README TODO INSTALL
-EXAMPLES= test.pbm test.txt check.sh
+PLIST_FILES= bin/${PORTNAME}
+
MAN1= ocrad.1
+PORTDOCS= AUTHORS ChangeLog NEWS README TODO
+PORTEXAMPLES= *
+
+.include <bsd.port.options.mk>
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/ocrad ${PREFIX}/bin/
- ${INSTALL_MAN} ${WRKSRC}/doc/ocrad.1 ${MAN1PREFIX}/man/man1/
-.if !defined(NOPORTDOCS)
+ ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/doc/${MAN1} ${MAN1PREFIX}/man/man1
+
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${DOCS:S,^,${WRKSRC}/,} ${DOCSDIR}/
+ ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
.endif
-.if !defined(NOPORTEXAMPLES)
+
+.if ${PORT_OPTIONS:MEXAMPLES}
@${MKDIR} ${EXAMPLESDIR}
- ${INSTALL_DATA} ${EXAMPLES:S,^,${WRKSRC}/testsuite/,} ${EXAMPLESDIR}/
+ @(cd ${WRKSRC}/testsuite && ${COPYTREE_SHARE} \* ${EXAMPLESDIR})
.endif
.include <bsd.port.mk>
More information about the svn-ports-all
mailing list