From owner-svn-ports-head@freebsd.org Tue May 22 04:46:02 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DA219EE6635; Tue, 22 May 2018 04:46:01 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8F4AD827E5; Tue, 22 May 2018 04:46:01 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 70A6A75D2; Tue, 22 May 2018 04:46:01 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w4M4k1cA041709; Tue, 22 May 2018 04:46:01 GMT (envelope-from yuri@FreeBSD.org) Received: (from yuri@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w4M4k0IK041706; Tue, 22 May 2018 04:46:00 GMT (envelope-from yuri@FreeBSD.org) Message-Id: <201805220446.w4M4k0IK041706@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: yuri set sender to yuri@FreeBSD.org using -f From: Yuri Victorovich Date: Tue, 22 May 2018 04:46:00 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r470593 - in head/graphics/ocrad: . files X-SVN-Group: ports-head X-SVN-Commit-Author: yuri X-SVN-Commit-Paths: in head/graphics/ocrad: . files X-SVN-Commit-Revision: 470593 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 May 2018 04:46:02 -0000 Author: yuri Date: Tue May 22 04:46:00 2018 New Revision: 470593 URL: https://svnweb.freebsd.org/changeset/ports/470593 Log: graphics/ocrad: Install the header and the library Port changes: * Take maintainership * Remove do-install because project's makefile installs files fine * Adjust CONFIGURE_ARGS for man/info paths * Add USE_LDCONFIG * Remove MKDIR where it is not needed * Unsilence the install command Added: head/graphics/ocrad/files/ head/graphics/ocrad/files/patch-Makefile.in (contents, props changed) Modified: head/graphics/ocrad/Makefile head/graphics/ocrad/pkg-descr Modified: head/graphics/ocrad/Makefile ============================================================================== --- head/graphics/ocrad/Makefile Tue May 22 02:00:34 2018 (r470592) +++ head/graphics/ocrad/Makefile Tue May 22 04:46:00 2018 (r470593) @@ -3,36 +3,37 @@ PORTNAME= ocrad PORTVERSION= 0.26 +PORTREVISION= 1 CATEGORIES= graphics MASTER_SITES= GNU EXTRACT_SUFX= .tar.lz -MAINTAINER= ports@FreeBSD.org +MAINTAINER= yuri@FreeBSD.org COMMENT= OCR program implemented as filter LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/COPYING HAS_CONFIGURE= yes -CONFIGURE_ARGS= --prefix=${PREFIX} CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" +CONFIGURE_ARGS= --prefix=${PREFIX} CXX="${CXX}" CXXFLAGS="${CXXFLAGS} -fPIC" --mandir=${PREFIX}/man --infodir=${PREFIX}/info +USE_LDCONFIG= yes -PORTDOCS= AUTHORS ChangeLog NEWS README -PORTEXAMPLES= * -PLIST_FILES= bin/${PORTNAME} man/man1/ocrad.1.gz +PLIST_FILES= bin/${PORTNAME} \ + include/ocradlib.h \ + lib/libocrad.so \ + man/man1/ocrad.1.gz \ + info/ocrad.info OPTIONS_DEFINE= DOCS EXAMPLES -do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin - ${INSTALL_MAN} ${WRKSRC}/doc/ocrad.1 ${STAGEDIR}${MAN1PREFIX}/man/man1 +PORTDOCS= AUTHORS ChangeLog NEWS README +PORTEXAMPLES= * post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} - (cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} \ - ${STAGEDIR}${DOCSDIR}) + cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR} post-install-EXAMPLES-on: - @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} - @(cd ${WRKSRC}/testsuite && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}) + cd ${WRKSRC}/testsuite && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR} .include Added: head/graphics/ocrad/files/patch-Makefile.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/ocrad/files/patch-Makefile.in Tue May 22 04:46:00 2018 (r470593) @@ -0,0 +1,33 @@ +--- Makefile.in.orig 2018-05-22 03:44:46 UTC ++++ Makefile.in +@@ -23,16 +23,16 @@ objs = arg_parser.o main.o + uninstall uninstall-bin uninstall-info uninstall-man \ + doc info man check dist clean distclean + +-all : $(progname) lib$(libname).a ++all : $(progname) lib$(libname).so + +-lib$(libname).a: $(ocr_objs) $(lib_objs) +- $(AR) -rcs $@ $(ocr_objs) $(lib_objs) ++lib$(libname).so: $(ocr_objs) $(lib_objs) ++ $(CXX) -shared -fPIC -o $@ $(ocr_objs) $(lib_objs) + + $(progname) : $(ocr_objs) $(objs) + $(CXX) $(LDFLAGS) $(CXXFLAGS) -o $@ $(ocr_objs) $(objs) + +-ocradcheck : ocradcheck.o lib$(libname).a +- $(CXX) $(LDFLAGS) $(CXXFLAGS) -o $@ ocradcheck.o lib$(libname).a ++ocradcheck : ocradcheck.o lib$(libname).so ++ $(CXX) $(LDFLAGS) $(CXXFLAGS) -o $@ ocradcheck.o lib$(libname).so + + ocradcheck.o : ocradcheck.cc + $(CXX) $(CPPFLAGS) $(CXXFLAGS) -DPROGVERSION=\"$(pkgversion)\" -c -o $@ $< +@@ -101,7 +101,7 @@ install-bin : all + if [ ! -d "$(DESTDIR)$(libdir)" ] ; then $(INSTALL_DIR) "$(DESTDIR)$(libdir)" ; fi + $(INSTALL_PROGRAM) ./$(progname) "$(DESTDIR)$(bindir)/$(progname)" + $(INSTALL_DATA) $(VPATH)/$(libname)lib.h "$(DESTDIR)$(includedir)/$(libname)lib.h" +- $(INSTALL_DATA) ./lib$(libname).a "$(DESTDIR)$(libdir)/lib$(libname).a" ++ $(INSTALL_DATA) ./lib$(libname).so "$(DESTDIR)$(libdir)/lib$(libname).so" + + install-bin-strip : all + $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' install-bin Modified: head/graphics/ocrad/pkg-descr ============================================================================== --- head/graphics/ocrad/pkg-descr Tue May 22 02:00:34 2018 (r470592) +++ head/graphics/ocrad/pkg-descr Tue May 22 04:46:00 2018 (r470593) @@ -6,4 +6,4 @@ of text normally found on printed pages. It can be used as a stand-alone console application, or as a backend to other programs. -WWW: http://www.gnu.org/software/ocrad/ocrad.html +WWW: https://www.gnu.org/software/ocrad/ocrad.html