openbsd-ports/textproc/ebook-tools/Makefile
jasper c9b08e14e1 import ebook-utils 0.2.1
Utility/library for converting between different formats of e-books.

initial port from Vadim Zhukov
tweaks by me and sthen@, ok sthen@
2011-12-23 13:04:00 +00:00

43 lines
967 B
Makefile

# $OpenBSD: Makefile,v 1.1.1.1 2011/12/23 13:04:00 jasper Exp $
V = 0.2.1
COMMENT = accessing and converting various ebook file formats
DISTNAME = ebook-tools-${V}
SHARED_LIBS += epub 0.0 # 0.2
CATEGORIES = textproc devel
# MIT
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
WANTLIB += c xml2 zip
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=ebook-tools/${V}/}
MODULES = devel/cmake
BUILD_DEPENDS = devel/doxygen
LIB_DEPENDS = textproc/libxml \
archivers/libzip \
SEPARATE_BUILD = simple
NO_REGRESS = Yes
MAKE_ENV= DOXYGEN_ENCODE_PATH_STRIP=${WRKSRC}
DOCSDIR = ${PREFIX}/share/doc/ebook-tools
post-build:
cd ${WRKBUILD} && ${MAKE_ENV} make doc
post-install:
${INSTALL_DATA_DIR} ${DOCSDIR}
cp -R ${WRKBUILD}/doc/html ${DOCSDIR}
@find ${DOCSDIR} -type d -print0 | xargs -0t chmod ${DIRMODE}
@find ${DOCSDIR} -type f -print0 | xargs -0t chmod ${DOCMODE}
.include <bsd.port.mk>