Hi, ports@:

    Here is a patch for graphics/ocrad:
    i) Update to 0.28
    ii) Add graphics/png as BUILD and RUN DEPENDS
    iii) Adjust CXXFLAGS

    It build well and "tests completed successfully." on 
amd64-7.1 system.

   2 ports depend on it: mail/p5-FuzzyOcr and multimedia/ogmrip.
Both build well with this patch and NO_TEST defined.


wen
Index: Makefile
===================================================================
RCS file: /cvs/ports/graphics/ocrad/Makefile,v
retrieving revision 1.20
diff -u -p -r1.20 Makefile
--- Makefile    11 Mar 2022 19:22:55 -0000      1.20
+++ Makefile    3 Apr 2022 08:20:26 -0000
@@ -1,6 +1,6 @@
 COMMENT=       OCR program for pnm files
 
-DISTNAME=      ocrad-0.27
+DISTNAME=      ocrad-0.28
 
 CATEGORIES=    graphics
 EXTRACT_SUFX=  .tar.lz
@@ -16,11 +16,15 @@ MASTER_SITES=       ${MASTER_SITE_GNU:=ocrad/}
 
 CONFIGURE_STYLE=simple
 
-MAKE_FLAGS=    CXX="${CXX}" CXXFLAGS="${CXXFLAGS}"
+MAKE_FLAGS=    CXX="${CXX}" \
+               CXXFLAGS="${CXXFLAGS} -I${LOCALBASE}/include -L${LOCALBASE}/lib"
 FAKE_FLAGS=    infodir="${PREFIX}/info" \
                mandir="${PREFIX}/man"
 
 TEST_TARGET =  check
+
+BUILD_DEPENDS= graphics/png
+RUN_DEPENDS=   graphics/png
 
 post-install:
        ${INSTALL_MAN} ${WRKBUILD}/doc/ocrad.1 ${PREFIX}/man/man1
Index: distinfo
===================================================================
RCS file: /cvs/ports/graphics/ocrad/distinfo,v
retrieving revision 1.7
diff -u -p -r1.7 distinfo
--- distinfo    18 Feb 2019 06:09:30 -0000      1.7
+++ distinfo    3 Apr 2022 08:20:26 -0000
@@ -1,2 +1,2 @@
-SHA256 (ocrad-0.27.tar.lz) = qb/mfpoECQev9WQNylY5JHa2qJ5I433JS6hGxbZzOzY=
-SIZE (ocrad-0.27.tar.lz) = 91709
+SHA256 (ocrad-0.28.tar.lz) = NMzqV229rapZeeYgI0TD/2hzfYKcp7ZvcchJfTa7vy4=
+SIZE (ocrad-0.28.tar.lz) = 95567

Reply via email to