2008-11-20 15:28:22 +01:00
|
|
|
# $NetBSD: Makefile,v 1.17 2008/11/20 14:28:22 dillo Exp $
|
2005-12-11 11:07:31 +01:00
|
|
|
#
|
|
|
|
|
2006-01-11 18:49:35 +01:00
|
|
|
.include "../../print/poppler/Makefile.common"
|
2005-12-11 11:07:31 +01:00
|
|
|
|
2006-01-11 18:49:35 +01:00
|
|
|
PKGNAME= poppler-qt-${POPPLER_VERS}
|
2006-03-31 22:37:37 +02:00
|
|
|
|
2005-12-11 11:07:31 +01:00
|
|
|
COMMENT= PDF rendering library (QT wrapper)
|
2008-11-20 15:28:22 +01:00
|
|
|
MAINTAINER= reed@reedmedia.net
|
2005-12-11 11:07:31 +01:00
|
|
|
|
2007-11-03 17:10:38 +01:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS+= --disable-cairo-output
|
|
|
|
CONFIGURE_ARGS+= --disable-splash-output
|
|
|
|
CONFIGURE_ARGS+= --enable-poppler-qt
|
|
|
|
CONFIGURE_ARGS+= --disable-gtk-test
|
|
|
|
CONFIGURE_ARGS+= --disable-utils
|
|
|
|
|
2005-12-11 11:07:31 +01:00
|
|
|
PKGCONFIG_OVERRIDE+= ${WRKSRC}/poppler-qt.pc.in
|
|
|
|
|
2006-03-30 23:30:25 +02:00
|
|
|
INCS=-I. -I.. -I../poppler `pkg-config poppler --cflags` -I${QTDIR}/include
|
2005-12-11 11:07:31 +01:00
|
|
|
|
2007-08-09 20:42:51 +02:00
|
|
|
INSTALLATION_DIRS+= lib include/poppler lib/pkgconfig
|
|
|
|
|
2005-12-11 11:07:31 +01:00
|
|
|
do-build:
|
|
|
|
(cd ${WRKSRC}/qt; \
|
|
|
|
${LIBTOOL} --tag=CXX --mode=compile ${CXX} ${CXXFLAGS} ${INCS} -c -o poppler-document.lo poppler-document.cc; \
|
|
|
|
${LIBTOOL} --tag=CXX --mode=compile ${CXX} ${CXXFLAGS} ${INCS} -c -o poppler-page.lo poppler-page.cc; \
|
|
|
|
${LIBTOOL} --tag=CXX --mode=link ${CXX} ${LDFLAGS} `pkg-config poppler --libs` -L${QTDIR}/lib ${COMPILER_RPATH_FLAG}${QTDIR}/lib -o libpoppler-qt.la -rpath ${PREFIX}/lib poppler-document.lo poppler-page.lo -lqt-mt )
|
|
|
|
${SED} -e s:@VERSION@:${POPPLER_VERS}: \
|
|
|
|
-e s:@prefix@:${PREFIX}: \
|
|
|
|
-e 's:@exec_prefix@:$${prefix}:' \
|
|
|
|
-e 's:@libdir@:$${exec_prefix}/lib:' \
|
|
|
|
-e 's:@includedir@:$${prefix}/include:' \
|
|
|
|
${WRKSRC}/poppler-qt.pc.in > ${WRKSRC}/poppler-qt.pc
|
|
|
|
|
|
|
|
do-install:
|
2007-08-09 20:42:51 +02:00
|
|
|
${LIBTOOL} --mode=install ${INSTALL_LIB} ${WRKSRC}/qt/libpoppler-qt.la ${DESTDIR}${PREFIX}/lib
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/qt/poppler-qt.h ${DESTDIR}${PREFIX}/include/poppler
|
2006-04-01 15:59:55 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/qt/poppler-page-transition.h \
|
2007-08-09 20:42:51 +02:00
|
|
|
${DESTDIR}${PREFIX}/include/poppler
|
2006-10-13 22:25:22 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/qt/poppler-link-qt3.h \
|
2007-08-09 20:42:51 +02:00
|
|
|
${DESTDIR}${PREFIX}/include/poppler
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/poppler-qt.pc ${DESTDIR}${PREFIX}/lib/pkgconfig
|
2005-12-11 11:07:31 +01:00
|
|
|
|
2006-05-31 20:13:54 +02:00
|
|
|
BUILDLINK_API_DEPENDS.poppler+= poppler>=${POPPLER_VERS}
|
2005-12-11 11:07:31 +01:00
|
|
|
.include "../../print/poppler/buildlink3.mk"
|
|
|
|
.include "../../x11/qt3-libs/buildlink3.mk"
|
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|