aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/ocrad/Makefile
diff options
context:
space:
mode:
authorvs <vs@FreeBSD.org>2005-02-02 02:02:06 +0800
committervs <vs@FreeBSD.org>2005-02-02 02:02:06 +0800
commitfc1bfed506dddc22f1122894b6887c8d1519dc8d (patch)
tree81064f16958cfb559a08adf83ade5d0b3a5f2009 /graphics/ocrad/Makefile
parent002c7b0d59b12e54870885415e302976e9062937 (diff)
downloadfreebsd-ports-gnome-fc1bfed506dddc22f1122894b6887c8d1519dc8d.tar.gz
freebsd-ports-gnome-fc1bfed506dddc22f1122894b6887c8d1519dc8d.tar.zst
freebsd-ports-gnome-fc1bfed506dddc22f1122894b6887c8d1519dc8d.zip
Fix build on 4.x
PR: ports/76869 Submitted by: maintainer
Diffstat (limited to 'graphics/ocrad/Makefile')
-rw-r--r--graphics/ocrad/Makefile20
1 files changed, 15 insertions, 5 deletions
diff --git a/graphics/ocrad/Makefile b/graphics/ocrad/Makefile
index d181544f0dcb..6cde20bcb8a0 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>