Tweak sysutils/dateutils version 0.2.7
[dports.git] / multimedia / subtitleeditor / Makefile
1 # Created by: Andrew Pantyukhin <infofarmer@FreeBSD.org>
2 # $FreeBSD$
3
4 PORTNAME=       subtitleeditor
5 PORTVERSION=    0.41.0
6 PORTREVISION=   3
7 CATEGORIES=     multimedia
8 MASTER_SITES=   http://download.gna.org/${PORTNAME}/${PORTVERSION:C/\.[0-9]*$//}/ \
9                 CRITICAL
10
11 MAINTAINER=     multimedia@FreeBSD.org
12 COMMENT=        Subtitle editor
13
14 LICENSE=        GPLv3
15
16 BUILD_DEPENDS=  ${LOCALBASE}/libdata/pkgconfig/iso-codes.pc:${PORTSDIR}/misc/iso-codes
17 RUN_DEPENDS=    ${LOCALBASE}/libdata/pkgconfig/iso-codes.pc:${PORTSDIR}/misc/iso-codes
18 LIB_DEPENDS=    libglademm-2.4.so:${PORTSDIR}/devel/libglademm24 \
19                 libgstreamermm-0.10.so:${PORTSDIR}/multimedia/gstreamermm \
20                 libenchant.so:${PORTSDIR}/textproc/enchant \
21                 libpcre.so:${PORTSDIR}/devel/pcre
22
23 USES=           gmake libtool pkgconfig
24 USE_GCC=        yes
25 USE_GNOME=      gtkmm24
26 USE_GSTREAMER=  good
27 INSTALLS_ICONS= yes
28 INSTALL_TARGET= install-strip
29 GNU_CONFIGURE=  yes
30
31 CPPFLAGS+=      -I${LOCALBASE}/include
32 LDFLAGS+=       -L${LOCALBASE}/lib
33
34 PLIST_SUB=      DESKTOPDIR="${DESKTOPDIR:S,^${PREFIX}/,,}"
35
36 OPTIONS_DEFINE= NLS
37
38 .include <bsd.port.options.mk>
39
40 .if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1000000
41 BROKEN=         Does not compile on FreeBSD 10.0 and later
42 .endif
43
44 .if ${PORT_OPTIONS:MNLS}
45 USES+=          gettext
46 PLIST_SUB+=     NLS=""
47 .else
48 CONFIGURE_ARGS+=--disable-nls
49 PLIST_SUB+=     NLS="@comment "
50 .endif
51
52 post-patch:
53         @${REINPLACE_CMD} -e '/test/s|==|=|g' ${WRKSRC}/configure
54         @${REINPLACE_CMD} -e 's|strtoll|strtoq|g' ${WRKSRC}/plugins/subtitleformats/advancedsubstationalpha/advancedsubstationalpha.cc
55
56 .include <bsd.port.mk>