d4fc7a52e2
better than not working at all. upgrading the bundled version or other options will be discussed with upstream. while there, remove two empty patches OK kili@
36 lines
1.2 KiB
Makefile
36 lines
1.2 KiB
Makefile
# $OpenBSD: Makefile,v 1.7 2011/10/04 12:53:38 sebastia Exp $
|
|
|
|
COMMENT = framework for accessing and rendering PDF content
|
|
|
|
DISTNAME = PDFKit-0.9.1
|
|
REVISION = 0
|
|
SHARED_LIBS += PDFKit 0.0
|
|
|
|
HOMEPAGE = http://wiki.gnustep.org/index.php/PDFKit
|
|
MASTER_SITES = http://savannah.nongnu.org/download/gap/
|
|
|
|
MODULES = x11/gnustep
|
|
MODGNUSTEP_NEEDS_BASE = No
|
|
MODGNUSTEP_NEEDS_GUI = No
|
|
WANTLIB += freetype m
|
|
BUILD_DEPENDS = x11/gnustep/gui \
|
|
textproc/xpdf:patch
|
|
|
|
BUNDLED_XPDF = 3.02
|
|
|
|
CONFIGURE_STYLE = gnu
|
|
CONFIGURE_ENV = ${MAKE_ENV} LDFLAGS="-lz" CPPFLAGS="-I${X11BASE}/include"
|
|
CONFIGURE_ARGS = --with-freetype2-add-includes=${X11BASE}/include \
|
|
--with-freetype2-includes=${X11BASE}/include/freetype2
|
|
MAKE_FLAGS = PDFKit_INTERFACE_VERSION=${LIBPDFKit_VERSION}
|
|
|
|
pre-configure:
|
|
${SUBST_CMD} ${WRKSRC}/xpdf/xpdf-${BUNDLED_XPDF}/xpdf/Makefile.in
|
|
cp ${WRKSRC}/xpdf/xpdf-${BUNDLED_XPDF}/GNUmakefile.in ${WRKDIR}/textproc/xpdf/xpdf-*
|
|
cp ${WRKSRC}/xpdf/xpdf-${BUNDLED_XPDF}/Makefile.in ${WRKDIR}/textproc/xpdf/xpdf-*
|
|
cp ${WRKSRC}/xpdf/xpdf-${BUNDLED_XPDF}/xpdf/Makefile.in ${WRKDIR}/textproc/xpdf/xpdf-*/xpdf
|
|
rm -r ${WRKSRC}/xpdf/xpdf-${BUNDLED_XPDF}
|
|
ln -s ${WRKDIR}/textproc/xpdf/xpdf-* ${WRKSRC}/xpdf/xpdf-${BUNDLED_XPDF}
|
|
|
|
.include <bsd.port.mk>
|