aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/dvdstyler/Makefile
blob: eb1cc5dac7048ddcfc104e55488d484dac1be88f (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
83
# New ports collection makefile for:    dvdstyler
# Date created:     2004-07-30
# Whom:         Michael Johnson <ahze@ahze.net>
#
# $FreeBSD$
#

PORTNAME=   dvdstyler
DISTVERSION=    2.1
PORTREVISION=   2
PORTEPOCH=  2
CATEGORIES= multimedia
MASTER_SITES=   SF/${PORTNAME}/${PORTNAME}/${DISTVERSION}
DISTNAME=   DVDStyler-${DISTVERSION}

MAINTAINER= multimedia@FreeBSD.org
COMMENT=    WXGTK2 front end to dvd recoding and authoring programs

LICENSE=    GPLv2

BUILD_DEPENDS=  dvdauthor:${PORTSDIR}/multimedia/dvdauthor \
        mplex:${PORTSDIR}/multimedia/mjpegtools \
        growisofs:${PORTSDIR}/sysutils/dvd+rw-tools \
        xmlto:${PORTSDIR}/textproc/xmlto \
        zip:${PORTSDIR}/archivers/zip
RUN_DEPENDS=    dvdauthor:${PORTSDIR}/multimedia/dvdauthor \
        mplex:${PORTSDIR}/multimedia/mjpegtools \
        growisofs:${PORTSDIR}/sysutils/dvd+rw-tools \
        xmlto:${PORTSDIR}/textproc/xmlto
LIB_DEPENDS+=   avformat.1:${PORTSDIR}/multimedia/ffmpeg \
        exif:${PORTSDIR}/graphics/libexif

USE_BZIP2=  yes
USE_WX=     2.8
WX_COMPS=   wx svg
WX_CONF_ARGS=   absolute
USE_GMAKE=  yes
USE_GNOME=  desktopfileutils
USE_PKGCONFIG=  build
WANT_GNOME= yes
USE_GETTEXT=    yes
USE_CDRTOOLS=   yes # dvdstyler needs mkisofs
GNU_CONFIGURE=  yes
CPPFLAGS+=  "-I${LOCALBASE}/include"
LDFLAGS+=   -L${LOCALBASE}/lib ${PTHREAD_LIBS}
MAN1=       dvdstyler.1

.include <bsd.port.pre.mk>

.if ${HAVE_GNOME:Mlibgnomeui}!=""
USE_GNOME+= libgnomeui
.endif

.if defined(WITH_DVD_DEVICE)
DEFAULT_DVD_DEVICE=${WITH_DVD_DEVICE}
.else
DEFAULT_DVD_DEVICE=/dev/cd0
.endif

pre-everything::
.if !defined(WITH_DVD_DEVICE)
    @${ECHO_MSG} "===>"
    @${ECHO_MSG} "===> The default DVD device is ${DEFAULT_DVD_DEVICE}"
    @${ECHO_MSG} "===> Define WITH_DVD_DEVICE if you want to change the default"
    @${ECHO_MSG} "===> For example, 'make WITH_DVD_DEVICE=\"/dev/somedevice\"'"
.endif

post-patch:
    @${REINPLACE_CMD} -e 's|/dev/dvd|${DEFAULT_DVD_DEVICE}|g' \
        ${WRKSRC}/src/BurnDlg.cpp ${WRKSRC}/src/Config.h
    @${REINPLACE_CMD} -e 's|gnome-config|disable-config|g ;  \
        s|kde-config|disable-config|g' ${WRKSRC}/configure

post-install:
    @${MKDIR} ${PREFIX}/share/applications
    @${INSTALL_DATA} ${WRKSRC}/data/dvdstyler.desktop \
        ${PREFIX}/share/applications/
    @${MKDIR} ${PREFIX}/share/pixmaps
    @${INSTALL_DATA} ${WRKSRC}/src/rc/dvdstyler.png \
        ${PREFIX}/share/pixmaps/
    @-update-desktop-database

.include <bsd.port.post.mk>