aboutsummaryrefslogtreecommitdiffstats
path: root/misc/lingoteach/Makefile
blob: 3639460c76dc55138a0d9ccf9ac34fd8f226a412 (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
# $FreeBSD$

PORTNAME=   lingoteach
PORTVERSION=    0.3.9
PORTREVISION=   15
CATEGORIES= misc
MASTER_SITES=   SF/${PORTNAME}/OldFiles:src
DISTFILES=  ${PORTNAME}-ui-${PORTVERSION}.tar.gz:src

MAINTAINER= ports@FreeBSD.org
COMMENT=    Language teaching program with sound

LIB_DEPENDS=    liblingoteach.so:textproc/liblingoteach

WRKSRC=     ${WRKDIR}/${PORTNAME}-ui-${PORTVERSION}

USE_GNOME=  gtk20
GNU_CONFIGURE=  yes
USES=       gmake pkgconfig libtool

CPPFLAGS+=  -I${LOCALBASE}/include
LIBS+=      -L${LOCALBASE}/lib `pkg-config --libs gmodule-2.0`

# sound version
SOUNDV=     0.3.9

PORTDATA=   *
PORTDOCS=   *

OPTIONS_DEFINE= NLS SOUND DEBUG DOCS
OPTIONS_SUB=    yes

SOUND_DESC= Download additional sounds
NLS_USES=   gettext
NLS_CONFIGURE_ENABLE=   nls
DEBUG_CONFIGURE_ENABLE= debug

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MSOUND}
MASTER_SITES+=  SF/${PORTNAME}/${PORTNAME}-sound/${SOUNDV}:sound
DISTFILES+= ${PORTNAME}-sound-${SOUNDV}.tar.gz:sound
.endif

post-patch::
.if ${PORT_OPTIONS:MDOCS}
    @${REINPLACE_CMD} -e 's|^SUBDIRS = intl src po data doc|SUBDIRS = src po data doc|g' \
        ${WRKSRC}/Makefile.in
.else
    @${REINPLACE_CMD} -e 's|^SUBDIRS = intl src po data doc|SUBDIRS = src po data|g' \
        ${WRKSRC}/Makefile.in
.endif

.if ${PORT_OPTIONS:MSOUND}
post-install::
    cd ${WRKDIR}/${PORTNAME}-sound-${SOUNDV}/data; \
        ${RM} -f Make*; \
        ${CP} -R ${WRKDIR}/${PORTNAME}-sound-${SOUNDV}/data \
        ${STAGEDIR}${DATADIR};
.endif

.include <bsd.port.mk>