34 lines
730 B
Makefile
34 lines
730 B
Makefile
# $OpenBSD: Makefile,v 1.19 2019/07/12 20:47:04 sthen Exp $
|
|
|
|
COMMENT= OCR program for pnm files
|
|
|
|
DISTNAME= ocrad-0.27
|
|
|
|
CATEGORIES= graphics
|
|
EXTRACT_SUFX= .tar.lz
|
|
|
|
# GPLv3
|
|
PERMIT_PACKAGE= Yes
|
|
|
|
WANTLIB= c m ${COMPILER_LIBCXX}
|
|
|
|
COMPILER = base-clang ports-gcc base-gcc
|
|
|
|
MASTER_SITES= ${MASTER_SITE_GNU:=ocrad/}
|
|
|
|
CONFIGURE_STYLE=simple
|
|
|
|
MAKE_FLAGS= CXX="${CXX}" CXXFLAGS="${CXXFLAGS}"
|
|
FAKE_FLAGS= infodir="${PREFIX}/info" \
|
|
mandir="${PREFIX}/man"
|
|
|
|
TEST_TARGET = check
|
|
|
|
post-install:
|
|
${INSTALL_MAN} ${WRKBUILD}/doc/ocrad.1 ${PREFIX}/man/man1
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/ocrad
|
|
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/ocrad
|
|
rm ${PREFIX}/include/ocradlib.h ${PREFIX}/lib/libocrad.a
|
|
|
|
.include <bsd.port.mk>
|