freebsd-ports/graphics/lphoto/Makefile
Michael Johnson 16c542cb5b Update to 1.0.26
Approved by:	marcus (co mentor)
2004-11-07 19:56:21 +00:00

49 lines
1.3 KiB
Makefile

# New ports collection makefile for: lphoto
# Date created: 2004-06-03
# Whom: michael johnson <ahze@ahze.net>
#
# $FreeBSD$
#
PORTNAME= lphoto
PORTVERSION= 1.0.26
CATEGORIES= graphics
MASTER_SITES= http://software.linspire.com/emptypool/lindowsos/pool/main/l/lphoto/
DISTNAME= ${PORTNAME}_${PORTVERSION}-0.0.0.45.lindows0.1
MAINTAINER= ahze@FreeBSD.org
COMMENT= A complete desktop solution for digital photo management
BUILD_DEPENDS= kdepyuic:${PORTSDIR}/x11-toolkits/py-kde
LIB_DEPENDS= Magick.6:${PORTSDIR}/graphics/ImageMagick
RUN_DEPENDS= gphoto2:${PORTSDIR}/graphics/gphoto2 \
kdepyuic:${PORTSDIR}/x11-toolkits/py-kde
USE_REINPLACE= yes
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.post.mk>