diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2004-10-13 01:51:42 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2004-10-13 01:51:42 +0000 |
commit | 0ea6f532446d01fb6c982986bb37ac8ed34fc674 (patch) | |
tree | cb53d615d574043f11603eda9285eb83b1a4bc69 /graphics/lphoto | |
parent | Fix build, and chase new libexif. (diff) |
[MAINTAINER] graphics/lphoto: [Add option to use jpeg-mmx]
- Add option to use jpeg-mmx
PR: ports/69836
Submitted by: Michael Johnson <ahze@ahze.net>
Notes
Notes:
svn path=/head/; revision=119137
Diffstat (limited to 'graphics/lphoto')
-rw-r--r-- | graphics/lphoto/Makefile | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/graphics/lphoto/Makefile b/graphics/lphoto/Makefile index 2cad826f7e06..d57c776a5ec8 100644 --- a/graphics/lphoto/Makefile +++ b/graphics/lphoto/Makefile @@ -19,12 +19,32 @@ LIB_DEPENDS= Magick.6:${PORTSDIR}/graphics/ImageMagick RUN_DEPENDS= gphoto2:${PORTSDIR}/graphics/gphoto2 \ pyuic:${PORTSDIR}/x11-toolkits/py-qt +USE_REINPLACE= yes USE_KDELIBS_VER=3 USE_PYTHON= yes NO_BUILD= yes WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} +# Hack to use OPTIONS since OPTIONS is listed below bsd.port.pre.mk +OPTIONS= + +.include <bsd.port.pre.mk> + +.if ${ARCH} == "i386" +OPTIONS+= JPEGMMX "Use JPEG with MMX optimization" off +.endif + +.if defined(WITH_JPEGMMX) +RUN_DEPENDS+= jpegtran-mmx:${PORTSDIR}/graphics/jpeg-mmx +.endif + +post-patch: +.if defined(WITH_JPEGMMX) + @${REINPLACE_CMD} -e 's|jpegtran|jpegtran-mmx|' \ + ${WRKSRC}/Lphoto/photolibrary.py +.endif + do-install: @cd ${WRKSRC} && ${PYTHON_CMD} install.py -d ${PREFIX}/${PYTHON_SITELIBDIR:S/${PYTHONBASE}//} -b ${PREFIX}/bin -.include <bsd.port.mk> +.include <bsd.port.post.mk> |