summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorVolker Stolz <vs@FreeBSD.org>2005-02-01 18:02:06 +0000
committerVolker Stolz <vs@FreeBSD.org>2005-02-01 18:02:06 +0000
commit6c71874cf111bf9eac36148b59b2258ba9eec0e8 (patch)
treede82e5b87601eed6ae2ae1bcd3f3bbf71432c9fd /graphics
parentUpdate to 0.47 (diff)
Fix build on 4.x
PR: ports/76869 Submitted by: maintainer
Diffstat (limited to 'graphics')
-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 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>
diff --git a/graphics/ocrad/pkg-plist b/graphics/ocrad/pkg-plist
deleted file mode 100644
index c3269db7f09f..000000000000
--- 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%%