aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/freetuxtv/Makefile
blob: 789d3d1bc78087ffff6f45fcf64d4330fbf7b5c3 (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
# Created by: Rusmir Dusko <nemysis@FreeBSD.org>
# $FreeBSD$

PORTNAME=   freetuxtv
PORTVERSION=    0.6.5
PORTREVISION=   16
CATEGORIES= multimedia
MASTER_SITES=   GOOGLE_CODE

MAINTAINER= ports@FreeBSD.org
COMMENT=    WebTV player based on GTK2+ and LibVLC

LICENSE=    GPLv3

LIB_DEPENDS=    libvlc.so:${PORTSDIR}/multimedia/vlc \
        libdbus-glib-1.so:${PORTSDIR}/devel/dbus-glib \
        libsqlite3.so:${PORTSDIR}/databases/sqlite3 \
        libcurl.so:${PORTSDIR}/ftp/curl \
        libnotify.so:${PORTSDIR}/devel/libnotify \

USES=       gmake iconv libtool pkgconfig
USE_GNOME=  gtk20
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --with-gtk=2.0
CFLAGS+=    -Wno-return-type -w
CPPFLAGS+=  -I${LOCALBASE}/include
LIBS+=      -L${LOCALBASE}/lib
INSTALLS_ICONS= yes

PORTDOCS=   AUTHORS ChangeLog README

OPTIONS_DEFINE= DOCS NLS
OPTIONS_SUB=    yes

NLS_CONFIGURE_ENABLE=   nls
NLS_USES=   gettext

SUB_FILES=  pkg-message

# Wrong versioning upstream, Upstream use GTK3 in newer Versions
PORTSCOUT=  ignore:1

post-patch:
    @${REINPLACE_CMD} -e 's|$${pkgdatadir}/doc|$${pkgdocdir}|' \
        -e 's|install-data-am: install-freetuxtvdocDATA|install-data-am: |' \
        ${WRKSRC}/Makefile.in
    @${REINPLACE_CMD} -e 's/libvlc_media_new_path/libvlc_media_new_location/' \
        ${WRKSRC}/lib/libvlc-gtk/gtk-libvlc-media-player.c
    @${REINPLACE_CMD} -e 's|g_strcasecmp|g_ascii_strcasecmp|' \
        ${WRKSRC}/src/main.c

post-install:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}

    ${LN} -sf ${PREFIX}/share/icons/hicolor/48x48/apps/${PORTNAME}.png \
        ${STAGEDIR}${PREFIX}/share/pixmaps/

.include <bsd.port.mk>