openbsd-ports/editors/openoffice3/patches/patch-xpdf_makefile_mk
2010-06-26 15:48:11 +00:00

20 lines
745 B
Plaintext

$OpenBSD: patch-xpdf_makefile_mk,v 1.5 2010/06/26 15:48:12 robert Exp $
--- xpdf/makefile.mk.orig.port Wed May 26 20:35:11 2010
+++ xpdf/makefile.mk Fri Jun 25 23:56:15 2010
@@ -77,7 +77,14 @@ LDFLAGS:=$(ARCH_FLAGS)
.ENDIF
CONFIGURE_ACTION=configure
+.IF "$(OS)"=="OPENBSD"
+CONFIGURE_FLAGS+=--without-libpaper-library --without-x --enable-multithreaded --enable-exceptions \
+ CFLAGS='${ENVCFLAGS} -DLOCALBASE=\"${LOCALBASE}\" -pthread' \
+ CXXFLAGS='${ENVCFLAGS} -DLOCALBASE=\"${LOCALBASE}\" -pthread' \
+ LDFLAGS="-pthread"
+.ELSE
CONFIGURE_FLAGS+=--without-x --without-libpaper-library --without-t1-library --enable-multithreaded --enable-exceptions
+.ENDIF
.IF "$(OS)$(CPU)"=="MACOSXP"
CXXFLAGS+=-malign-natural