pkgsrc/print/poppler-includes/Makefile

40 lines
1.2 KiB
Makefile

# $NetBSD: Makefile,v 1.29 2020/08/17 20:19:56 leot Exp $
PKGREVISION= 1
.include "../../print/poppler/Makefile.common"
PKGNAME= poppler-includes-${POPPLER_VERS}
COMMENT= Poppler Xpdf includes (unsupported)
CONFLICTS+= poppler-0.5.1{,nb*}
NO_BUILD= yes
INCDIR= ${DESTDIR}${PREFIX}/include
.include "../../mk/bsd.prefs.mk"
do-install:
${INSTALL_DATA_DIR} ${INCDIR}
${INSTALL_DATA_DIR} ${INCDIR}/poppler
sed -n -f ${FILESDIR}/extract.sed ${WRKSRC}/CMakeLists.txt \
| grep ^poppler/ | { while read f; do \
${INSTALL_DATA} ${WRKSRC}/"$$f" ${INCDIR}/poppler; \
done };
${INSTALL_DATA} ${WRKSRC}/poppler/poppler-config.h ${INCDIR}/poppler
for d in goo fofi splash; do \
${INSTALL_DATA_DIR} ${INCDIR}/poppler/"$$d"; \
sed -n -f ${FILESDIR}/extract.sed ${WRKSRC}/CMakeLists.txt \
| grep "^$$d/" | { while read f; do \
${INSTALL_DATA} ${WRKSRC}/"$$f" ${INCDIR}/poppler/"$$d";\
done }; \
done
# do these actually belong here?
${INSTALL_DATA} ${WRKSRC}/poppler/SignatureInfo.h ${INCDIR}/poppler
${INSTALL_DATA} ${WRKSRC}/goo/NetPBMWriter.h ${INCDIR}/poppler/goo
BUILDLINK_DEPMETHOD.fontconfig= build
.include "../../fonts/fontconfig/buildlink3.mk"
.include "../../mk/jpeg.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"