From bc78c124244fffe23a1205979b9bd2a417457762 Mon Sep 17 00:00:00 2001 From: pgollucci Date: Wed, 6 Oct 2010 20:31:12 +0000 Subject: - Upate to 0.7 - Unbreak PR: ports/150698 Submitted by: swell.k@gmail.com Approved by: Martin Dieringer (maintainer) --- graphics/mupdf/Makefile | 34 +++++++++------------------------- 1 file changed, 9 insertions(+), 25 deletions(-) (limited to 'graphics/mupdf/Makefile') diff --git a/graphics/mupdf/Makefile b/graphics/mupdf/Makefile index 63b98a17f56..c1a85b5dce9 100644 --- a/graphics/mupdf/Makefile +++ b/graphics/mupdf/Makefile @@ -5,11 +5,10 @@ # $FreeBSD$ PORTNAME= mupdf -PORTVERSION= 0.6 -PORTREVISION= 1 +PORTVERSION= 0.7 PORTEPOCH= 1 CATEGORIES= graphics -MASTER_SITES= http://www.mupdf.com/download/source/ +MASTER_SITES= http://www.mupdf.com/download/ MAINTAINER= martin.dieringer@gmx.de COMMENT= Lightweight PDF viewer and toolkit @@ -19,11 +18,8 @@ LIB_DEPENDS= freetype.9:${PORTSDIR}/print/freetype2 \ jbig2dec.0:${PORTSDIR}/graphics/jbig2dec \ openjpeg.2:${PORTSDIR}/graphics/openjpeg -BROKEN= does not build - USE_GMAKE= yes -MAKE_ARGS+= build=release prefix=${PREFIX} -WRKSRC= ${WRKDIR}/${PORTNAME} +MAKE_ARGS+= build=release prefix=${PREFIX} verbose=1 USE_XORG= x11 xext USE_GNOME= pkgconfig USE_GCC= 4.2+ @@ -33,28 +29,16 @@ MAKE_JOBS_SAFE= yes LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/COPYING -CFLAGS+= -I${LOCALBASE}/include -LDFLAGS+= -L${LOCALBASE}/lib - -.include - -.if ${ARCH} == "sparc64" -BROKEN= Does not install on sparc64 -.elif ${ARCH} == amd64 -CFLAGS+= -DARCH_X86_64 -.else -CFLAGS+= -DARCH_X86 -.endif - post-patch: .SILENT ${REINPLACE_CMD} -e 's#\(PDF.*_EXE=.*DIR./\)#\1mu_#g' \ - -e 's/@[[:space:]]*echo[^&]*&&//' \ + -e '/install:/,/^$$/ { /-d/d; }' \ + -e '/install.*bin$$/s/install/$$(BSD_INSTALL_PROGRAM)/' \ + -e '/install.*lib$$/s/install/$$(BSD_INSTALL_PROGRAM)/' \ + -e '/install.*include$$/s/install/$$(BSD_INSTALL_DATA)/' \ ${WRKSRC}/Makefile ${REINPLACE_CMD} -e 's/LAGS :=/LAGS +=/g' \ - -e 's/Linux/FreeBSD/g' \ - -e '/^CC/s/=/?=/' \ - -e '/-O3/d' \ - -e '/-msse/d' \ + -e 's/-O2//' -e 's/-g//' \ + -e 's|/usr/local|${LOCALBASE}|' \ ${WRKSRC}/Makerules .include -- cgit