diff options
author | Felippe de Meirelles Motta <lippe@FreeBSD.org> | 2013-03-21 20:41:09 +0000 |
---|---|---|
committer | Felippe de Meirelles Motta <lippe@FreeBSD.org> | 2013-03-21 20:41:09 +0000 |
commit | 511ad25f6482257e6908b87dcb26af0c6a20c4f8 (patch) | |
tree | bb6cf2a348f7ecaced800be3346936af8a10bdcd /graphics/ocrad | |
parent | 35362f0b9ebd1dba51c4387db3163a017aaae95d (diff) | |
download | ports-511ad25f6482257e6908b87dcb26af0c6a20c4f8.tar.gz ports-511ad25f6482257e6908b87dcb26af0c6a20c4f8.zip |
Notes
Diffstat (limited to 'graphics/ocrad')
-rw-r--r-- | graphics/ocrad/Makefile | 34 | ||||
-rw-r--r-- | graphics/ocrad/pkg-plist | 13 |
2 files changed, 19 insertions, 28 deletions
diff --git a/graphics/ocrad/Makefile b/graphics/ocrad/Makefile index 4c061e4ad0c5..dcdefdc5b6a2 100644 --- a/graphics/ocrad/Makefile +++ b/graphics/ocrad/Makefile @@ -1,39 +1,43 @@ -# New ports collection makefile for: graphics/ocrad -# Date created: 12.11.2003 -# Whom: Ulrich Spoerlein <q@uni.de> -# +# Created by: Ulrich Spoerlein <q@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@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> diff --git a/graphics/ocrad/pkg-plist b/graphics/ocrad/pkg-plist deleted file mode 100644 index 461ae746cd29..000000000000 --- a/graphics/ocrad/pkg-plist +++ /dev/null @@ -1,13 +0,0 @@ -bin/ocrad -%%PORTDOCS%%%%DOCSDIR%%/AUTHORS -%%PORTDOCS%%%%DOCSDIR%%/COPYING -%%PORTDOCS%%%%DOCSDIR%%/ChangeLog -%%PORTDOCS%%%%DOCSDIR%%/NEWS -%%PORTDOCS%%%%DOCSDIR%%/README -%%PORTDOCS%%%%DOCSDIR%%/TODO -%%PORTDOCS%%%%DOCSDIR%%/INSTALL -%%PORTEXAMPLES%%%%EXAMPLESDIR%%/test.pbm -%%PORTEXAMPLES%%%%EXAMPLESDIR%%/test.txt -%%PORTEXAMPLES%%%%EXAMPLESDIR%%/check.sh -%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%% -%%PORTDOCS%%@dirrm %%DOCSDIR%% |