aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/lphoto/Makefile
blob: 41a83c391dd6d3ab2a494dc2a0e24c9eefee2e37 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# New ports collection makefile for:    lphoto
# Date created:     2004-06-03
# Whom:         michael johnson <ahze@ahze.net>
#
# $FreeBSD$
#

PORTNAME=   lphoto
PORTVERSION=    2.0.42
PORTREVISION=   1
CATEGORIES= graphics
MASTER_SITES=   http://software.linspire.com/emptypool/lindowsos/pool/main/l/lphoto/
DISTNAME=   ${PORTNAME}_${PORTVERSION}-0.0.0.45.lindows0.1

MAINTAINER= ports@FreeBSD.org
COMMENT=    A complete desktop solution for digital photo management

BUILD_DEPENDS=  kdepyuic:${PORTSDIR}/x11-toolkits/py-kde
# libs for burning cd/vcd in lphoto, does not work in freebsd.
#LIB_DEPENDS=   Magick.8:${PORTSDIR}/graphics/ImageMagick \
#       vcdinfo.0:${PORTSDIR}/multimedia/vcdimager \
#       avcodec.1:${PORTSDIR}/multimedia/ffmpeg
RUN_DEPENDS=    gphoto2:${PORTSDIR}/graphics/gphoto2 \
        kdepyuic:${PORTSDIR}/x11-toolkits/py-kde \
        ${PYTHON_SITELIBDIR}/OpenGL/GL/GL__init__.py:${PORTSDIR}/graphics/py-opengl
#       cdrecord:${PORTSDIR}/sysutils/cdrtools

USE_REINPLACE=  yes
USE_PYTHON= yes
NO_BUILD=   yes
WRKSRC=     ${WRKDIR}/${PORTNAME}-${PORTVERSION}

.include <bsd.port.pre.mk>

.if ${ARCH}=="i386"
.if ${MACHINE_CPU:Mmmx} && !defined(WITHOUT_JPEGMMX)
RUN_DEPENDS+=   jpegtran-mmx:${PORTSDIR}/graphics/jpeg-mmx

pre_everything::
    @${ECHO_MSG} "===> Define WITHOUT_JPEGMMX to disable jpeg-mmx support"
    @${ECHO_MSG} "===>"

post-patch:
    @${REINPLACE_CMD} -e 's|jpegtran|jpegtran-mmx|' \
        ${WRKSRC}/Lphoto/photolibrary.py
.endif
.endif

do-install:
    @cd ${WRKSRC} && ${PYTHON_CMD} install.py -d ${PREFIX}/${PYTHON_SITELIBDIR:S/${PYTHONBASE}//} -b ${PREFIX}/bin

.include <bsd.port.post.mk>