let poppler compile the qt wrapper stuff, as koffice needs it.

This commit is contained in:
espie 2006-10-29 11:03:26 +00:00
parent ff9279beaf
commit 397fac782e
5 changed files with 58 additions and 13 deletions

View File

@ -1,11 +1,16 @@
# $OpenBSD: Makefile,v 1.2 2006/09/18 11:59:59 espie Exp $
# $OpenBSD: Makefile,v 1.3 2006/10/29 11:03:26 espie Exp $
COMMENT= "PDF rendering library"
COMMENT-qt= "qt interface to PDF rendering library"
DISTNAME= poppler-0.5.3
V= 0.5.3
DISTNAME= poppler-$V
CATEGORIES= print
SHARED_LIBS= poppler 1.0 \
poppler-glib 1.0
FULLPKGNAME-qt= poppler-qt-$V
SHARED_LIBS += poppler 1.0 # .1.0
SHARED_LIBS += poppler-glib 1.0 # .1.0
SHARED_LIBS += poppler-qt 0.0 # .1.0
HOMEPAGE= http://poppler.freedesktop.org/
@ -17,23 +22,53 @@ PERMIT_DISTFILES_CDROM= Yes
MASTER_SITES= ${HOMEPAGE}
PSEUDO_FLAVORS=no_qt
FLAVOR?=
SUBPACKAGE?=
.if empty(FLAVOR:L:Mno_qt)
MULTI_PACKAGES+=-qt
# the configure test for qt is highly bogus, so instead, we keep it disabled
# and override the correct variables so that it gets built anyways.
MAKE_FLAGS= POPPLER_QT_CXXFLAGS='-pthread -I${MODQT_INCDIR}' \
POPPLER_QT_LIBS='-pthread -L${MODQT_LIBDIR} -lqt-mt' \
qt_subdir=qt \
qt_pc_file=poppler-qt.pc
. if !defined(PACKAGING) || defined(PACKAGING) && ${SUBPACKAGE} == "-qt"
MODULES+= x11/qt3
LIB_DEPENDS+= poppler::print/poppler
. endif
.endif
CONFIGURE_STYLE=gnu
CONFIGURE_ARGS= --enable-xpdf-headers \
--disable-poppler-qt \
--disable-poppler-qt4 \
--disable-utils \
--enable-zlib
CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib" \
CXXFLAGS="${CXXFLAGS} -I${LOCALBASE}/include"
MODULES= devel/gettext
BUILD_DEPENDS= :pkgconfig-*:devel/pkgconfig
LIB_DEPENDS= gdk-x11-2.0,gdk_pixbuf-2.0::x11/gtk+2
FAKE_FLAGS= ${MAKE_FLAGS} DESTDIR=${WRKINST}
WANTLIB+= freetype fontconfig jpeg z
WANTLIB= Xrender png z freetype X11 fontconfig m Xext glitz \
gmodule-2.0 cairo jpeg \
.if !defined(PACKAGING) || defined(PACKAGING) && ${SUBPACKAGE} == ""
MODULES+= devel/gettext
LIB_DEPENDS+= gdk-x11-2.0,gdk_pixbuf-2.0::x11/gtk+2
WANTLIB+= Xrender png X11 m Xext glitz \
gmodule-2.0 cairo \
pango-1.0 pangocairo-1.0 pangoft2-1.0 \
gobject-2.0 glib-2.0
.endif
BUILD_DEPENDS= :pkgconfig-*:devel/pkgconfig
USE_LIBTOOL= Yes
USE_X11= Yes

View File

@ -1,7 +1,7 @@
$OpenBSD: patch-goo_Makefile_in,v 1.1.1.1 2006/06/18 13:09:44 alek Exp $
--- goo/Makefile.in.orig Mon Apr 17 13:28:31 2006
+++ goo/Makefile.in Mon Apr 17 13:28:54 2006
@@ -329,25 +329,25 @@ distclean-compile:
$OpenBSD: patch-goo_Makefile_in,v 1.2 2006/10/29 11:03:26 espie Exp $
--- goo/Makefile.in.orig Wed May 31 06:57:29 2006
+++ goo/Makefile.in Sat Oct 28 21:18:33 2006
@@ -333,25 +333,25 @@ distclean-compile:
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gmempp.Plo@am__quote@
.c.o:

View File

@ -0,0 +1 @@
Poppler-qt is a wrapper for poppler for use with the qt library

View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PFRAG.shared-qt,v 1.1 2006/10/29 11:03:26 espie Exp $
@lib lib/libpoppler-qt.so.${LIBpoppler-qt_VERSION}

View File

@ -0,0 +1,7 @@
@comment $OpenBSD
%%SHARED%%
include/poppler/poppler-page-transition.h
include/poppler/poppler-qt.h
lib/libpoppler-qt.a
lib/libpoppler-qt.la
lib/pkgconfig/poppler-qt.pc