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

PORTNAME=   GSubEdit
PORTVERSION=    0.4.p1
PORTREVISION=   1
CATEGORIES= multimedia gnome
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME:L}
DISTNAME=   ${PORTNAME:L}-${PORTVERSION:S/.p/pre/}

MAINTAINER= lioux@FreeBSD.org
COMMENT=    GNOME Subtitle Editor is a tool for editing/converting video subtitles

USE_REINPLACE=  yes
USE_X_PREFIX=   yes
USE_GMAKE=  yes
USE_GNOME=  gnomeprefix gnomehack gnomelibs
USE_SIZE=   yes
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --without-included-gettext

post-patch:
# CFLAGS safeness
# pthread safeness
    @${REINPLACE_CMD} -E -e 's|-g -O2||; \
        s|-lpthread|${PTHREAD_LIBS}|g' \
        ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} \
        ${WRKSRC}/src/Makefile.in
# prefix safeness for docs
    @${REINPLACE_CMD} -E -e \
        's|^(gsubeditdocdir[[:space:]]*=).*$$|\1${DOCSDIR}|' \
        ${WRKSRC}/Makefile.in
# prefix safeness for pixmaps
    @${REINPLACE_CMD} -E -e \
        's|^(packagepixmapsdir[[:space:]]*=).*$$|\1share/gnome/pixmaps/\$${PACKAGE}|' \
        ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} \
# install neither charset.alias nor locale.alias. Therefore, do not
# build distfiles' gettext
    @${REINPLACE_CMD} -E -e \
        's|^(SUBDIRS[[:space:]]*=.+)intl|\1|' \
        ${WRKSRC}/Makefile.in
# do not install docs
.ifdef(NOPORTDOCS)
    @${REINPLACE_CMD} -E -e \
        's|^(install-data-am.+)install-gsubeditdocDATA|\1|'
        \ ${WRKSRC}/Makefile.in
.endif

.include <bsd.port.mk>