aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/smilutils/Makefile
blob: 3a7a23420e8ec55020c6e9ddd62fa62a443a36b0 (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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# New ports collection makefile for:   smilutils
# Date created:        26 january 2008
# Whom:                trebestie@gmail.com
#
# $FreeBSD$
#

PORTNAME=   smilutils
DISTVERSION=    0.3.2
PORTREVISION=   3
DISTVERSIONSUFFIX=  cvs
CATEGORIES= multimedia
MASTER_SITES=   ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= rafan

MAINTAINER= trebestie@gmail.com
COMMENT=    A collection of utilities to handle DV

LIB_DEPENDS=    dv.4:${PORTSDIR}/multimedia/libdv \
        png.5:${PORTSDIR}/graphics/png \
        samplerate.1:${PORTSDIR}/audio/libsamplerate \
        avcodec.1:${PORTSDIR}/multimedia/ffmpeg \
        mp3lame.0:${PORTSDIR}/audio/lame \
        vorbisenc.2:${PORTSDIR}/audio/libvorbis \
        quicktime.0:${PORTSDIR}/multimedia/libquicktime \
        ogg.5:${PORTSDIR}/audio/libogg

USE_BZIP2=  yes
WRKSRC=     ${WRKDIR}/${PORTNAME}

USE_LDCONFIG=   yes
USE_AUTOTOOLS=  aclocal:19 automake:19 autoconf:261 autoheader:261 libtool:15
USE_GETTEXT=    yes
USE_GMAKE=  yes
USE_GNOME=  gtk20 libxml2 libglade2
USE_ICONV=  yes
USE_SDL=    yes
GNU_CONFIGURE=  yes

CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include/lqt -I${LOCALBASE}/include" \
        LDFLAGS="-L${LOCALBASE}/lib/libquicktime -L${LOCALBASE}/lib" \
        PTHREAD_LIBS="${PTHREAD_LIBS}"

CONFIGURE_ARGS= --with-avcodec=${LOCALBASE}/include/ffmpeg --enable-mp3lame --enable-vorbis \
        --with-ffmpeg=${LOCALBASE}/lib --with-x

MAN1=   image2raw.1 ppm2raw.1 ppm2webcam.1 raw2dv.1 \
    raw2image.1 raw2webcam.1 raw2yuv.1 rawmultiply.1 \
    rawplay.1 smil2raw.1 smil2wav.1 smil2yuv.1 \
    smilutils.1 xwd2raw.1

run-autotools:
    @cd ${WRKSRC} && ${SH} autogen.sh

# No tarball, we get cvs version.
# Based on an idea by Abel Chow <achow@transoft.net>
# who maintains tidy-devel port
# Look at http://lists.freebsd.org/pipermail/freebsd-ports/2007-September/043631.html
# for more informations

.if defined(MAINTAINER_MODE)

CVSROOT=    ":pserver:anonymous@kino.cvs.sourceforge.net:/cvsroot/kino"

CVSROOT=    ":pserver:anonymous@kino.cvs.sourceforge.net:/cvsroot/kino"
CVS_PASSFILE=   ${WRKDIR}/temp-cvs-passfile

getcvs:
    ${MKDIR} ${WRKDIR}/cvs
    ${ECHO_CMD} ${CVSROOT} A > ${CVS_PASSFILE}
    cd ${WRKDIR}/cvs && \
    CVSROOT=${CVSROOT} CVS_PASSFILE=${CVS_PASSFILE} cvs -z3 co -P smilutils

tarball:
    ${RM} -rf ${WRKDIR}/cvs/smilutils/CVSROOT
    ${FIND} ${WRKDIR}/cvs -name CVS | ${XARGS} ${RM} -rf
    cd ${WRKDIR}/cvs &&     \
    ${TAR} cfj ${_DISTDIR}${DISTFILES} smilutils

.endif

.include <bsd.port.mk>