mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-16 07:58:04 +00:00
61 lines
1.3 KiB
Makefile
61 lines
1.3 KiB
Makefile
# New ports collection makefile for: mupdf
|
|
# Date created: 2009-08-07
|
|
# Whom: Martin Dieringer <martin.dieringer@gmx.de>
|
|
#
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= mupdf
|
|
PORTVERSION= 0.6
|
|
PORTREVISION= 1
|
|
PORTEPOCH= 1
|
|
CATEGORIES= graphics
|
|
MASTER_SITES= http://www.mupdf.com/download/source/
|
|
|
|
MAINTAINER= martin.dieringer@gmx.de
|
|
COMMENT= Lightweight PDF viewer and toolkit
|
|
|
|
LIB_DEPENDS= freetype.9:${PORTSDIR}/print/freetype2 \
|
|
jpeg.11:${PORTSDIR}/graphics/jpeg \
|
|
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}
|
|
USE_XORG= x11 xext
|
|
USE_GNOME= pkgconfig
|
|
USE_GCC= 4.2+
|
|
|
|
MAKE_JOBS_SAFE= yes
|
|
|
|
LICENSE= GPLv3
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.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[^&]*&&//' \
|
|
${WRKSRC}/Makefile
|
|
${REINPLACE_CMD} -e 's/LAGS :=/LAGS +=/g' \
|
|
-e 's/Linux/FreeBSD/g' \
|
|
-e '/^CC/s/=/?=/' \
|
|
-e '/-O3/d' \
|
|
-e '/-msse/d' \
|
|
${WRKSRC}/Makerules
|
|
|
|
.include <bsd.port.mk>
|