summaryrefslogtreecommitdiffstats
path: root/graphics/ocrad
diff options
context:
space:
mode:
authorvs <vs@FreeBSD.org>2005-02-01 18:02:06 +0000
committervs <vs@FreeBSD.org>2005-02-01 18:02:06 +0000
commitfc1bfed506dddc22f1122894b6887c8d1519dc8d (patch)
tree81064f16958cfb559a08adf83ade5d0b3a5f2009 /graphics/ocrad
parent002c7b0d59b12e54870885415e302976e9062937 (diff)
downloadFreeBSD-ports-fc1bfed506dddc22f1122894b6887c8d1519dc8d.zip
FreeBSD-ports-fc1bfed506dddc22f1122894b6887c8d1519dc8d.tar.gz
Fix build on 4.x
PR: ports/76869 Submitted by: maintainer
Diffstat (limited to 'graphics/ocrad')
-rw-r--r--graphics/ocrad/Makefile20
-rw-r--r--graphics/ocrad/pkg-plist8
2 files changed, 15 insertions, 13 deletions
diff --git a/graphics/ocrad/Makefile b/graphics/ocrad/Makefile
index d181544..6cde20b 100644
--- a/graphics/ocrad/Makefile
+++ b/graphics/ocrad/Makefile
@@ -16,24 +16,34 @@ COMMENT= OCR program implemented as filter
USE_BZIP2= yes
HAS_CONFIGURE= yes
+USE_GMAKE= yes
USE_GETOPT_LONG= yes
-USE_GCC= 3.4
CONFIGURE_ARGS= --prefix=${PREFIX}
MAKE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" \
- CXX=${CXX}
+ CXX="${CXX}"
+
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 500035
+USE_GCC= 3.4
+.endif
+.if ${OSVERSION} < 500041
+MAKE_ENV+= CPPFLAGS="${CPPFLAGS} -DHAVE_DECL_GETOPT"
+.endif
-DOCS= AUTHORS ChangeLog NEWS README TODO
+PORTDOCS= AUTHORS ChangeLog NEWS README TODO
+PLIST_FILES= bin/ocrad
INFO= ocrad
MAN1= ocrad.1
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/ocrad ${PREFIX}/bin
.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR} && cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
+ @${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
@install-info ${PREFIX}/info/ocrad.info ${PREFIX}/info/dir
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/graphics/ocrad/pkg-plist b/graphics/ocrad/pkg-plist
deleted file mode 100644
index c3269db..0000000
--- a/graphics/ocrad/pkg-plist
+++ /dev/null
@@ -1,8 +0,0 @@
-@comment $FreeBSD$
-bin/ocrad
-%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
-%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
-%%PORTDOCS%%%%DOCSDIR%%/NEWS
-%%PORTDOCS%%%%DOCSDIR%%/README
-%%PORTDOCS%%%%DOCSDIR%%/TODO
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
OpenPOWER on IntegriCloud