aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/flip/Makefile
blob: 80dc2da704adb6b22a95e5e97dc722d605ddce50 (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
# ex:ts=8
# Ports collection makefile for:    flip
# Date created:         Mar 4, 2002
# Whom:             ijliao
#
# $FreeBSD$
#

PORTNAME=   flip
PORTVERSION=    2.3.0
PORTREVISION=   5
CATEGORIES= graphics
MASTER_SITES=   http://www.reptilelabour.com/software/files/flip/

MAINTAINER= ports@FreeBSD.org
COMMENT=    Load a sequence of TIFF files and play them back at a target frame rate

BUILD_DEPENDS=  qmake:${PORTSDIR}/devel/qmake

LIB_DEPENDS=    tiff.4:${PORTSDIR}/graphics/tiff
RUN_DEPENDS=    mpeg_encode:${PORTSDIR}/multimedia/mpeg_encode

WRKSRC=     ${WRKDIR}/${DISTNAME:R}

PLIST_FILES=    bin/flip
USE_QT_VER= 3
MAKE_ENV=   QTDIR="${QT_PREFIX}"
NO_LATEST_LINK= YES

post-patch:
    @${REINPLACE_CMD} -e  's|warn_on release|warn_on thread release|g ; \
         s|/usr/X11R6/include|$${LOCALBASE}/include|g ; \
         s|= -ltiff|= -L$${LOCALBASE}/lib -ltiff|g' ${WRKSRC}/FLIP.pro
    @${REINPLACE_CMD} -e \
        's|/usr/bin|${LOCALBASE}/bin|g' ${WRKSRC}/Config.cpp

do-configure:
    @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} qmake \
        -spec ${LOCALBASE}/share/qt/mkspecs/freebsd-g++ FLIP.pro

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/flip ${PREFIX}/bin

.include <bsd.port.mk>