View | Details | Raw Unified | Return to bug 42733 | Differences between
and this patch

Collapse All | Expand All

(-)lingoteach.new/Makefile (-9 / +52 lines)
Lines 7-14 Link Here
7
7
8
PORTNAME=      lingoteach
8
PORTNAME=      lingoteach
9
PORTVERSION=   0.3.7
9
PORTVERSION=   0.3.7
10
PORTREVISION=  1
10
CATEGORIES=    misc
11
CATEGORIES=    misc
11
MASTER_SITES=  http://unc.dl.sourceforge.net/sourceforge/lingoteach/
12
MASTER_SITES=  http://unc.dl.sourceforge.net/sourceforge/lingoteach/
13
.if defined(WITH_SOUND)
14
DISTFILES=     ${PORTNAME}-sound-${PORTVERSION}.tar.gz \
15
	       ${PORTNAME}-${PORTVERSION}.tar.gz
16
.endif
12
17
13
MAINTAINER=    mva121@gmx.net
18
MAINTAINER=    mva121@gmx.net
14
19
Lines 16-32 Link Here
16
	       xml2-config:${PORTSDIR}/textproc/libxml2:install
21
	       xml2-config:${PORTSDIR}/textproc/libxml2:install
17
LIB_DEPENDS=   xml2.5:${PORTSDIR}/textproc/libxml2:install \
22
LIB_DEPENDS=   xml2.5:${PORTSDIR}/textproc/libxml2:install \
18
	       gtk-x11-2.0.0:${PORTSDIR}/x11-toolkits/gtk20:install
23
	       gtk-x11-2.0.0:${PORTSDIR}/x11-toolkits/gtk20:install
24
.if defined(WITH_SOUND)
25
RUN_DEPENDS=   ogg123:${PORTSDIR}/audio/vorbis-tools
26
.endif
19
27
20
GNU_CONFIGURE= yes
28
GNU_CONFIGURE= yes
21
CONFIGURE_TARGET=
29
CONFIGURE_TARGET=""
22
USE_GMAKE=     yes
30
USE_GMAKE=     yes
23
31
24
post-install::
32
.if defined(WITH_SOUND)
25
	@${ECHO_MSG} "--------------------------------------------------------"
33
PLIST=	       ${WRKDIR}/plist
26
	@${ECHO_MSG} " If you want the sound snippets too, go to the projects "
34
.endif
27
	@${ECHO_MSG} " homepage - http://lingoteach.org, fetch the tar ball   "
35
28
	@${ECHO_MSG} " of the sound snippets and copy the content of data     "
36
SORT?=	       /usr/bin/sort
29
	@${ECHO_MSG} " to $PREFIX/share/lingoteach/data.                      "
37
30
	@${ECHO_MSG} "--------------------------------------------------------"
38
.include <bsd.port.pre.mk>
31
39
32
.include <bsd.port.mk>
40
.if !defined(WITH_SOUND)
41
pre-extract::
42
	@${ECHO_CMD} "************************************************"
43
	@${ECHO_CMD} "*                                              *"
44
	@${ECHO_CMD} "* For Sound in Lingoteach, type Ctrl-C now and *"
45
	@${ECHO_CMD} "*            define WITH_SOUND=yes             *"
46
	@${ECHO_CMD} "*                                              *"
47
	@${ECHO_CMD} "************************************************"
48
	@sleep 3
49
.endif
50
51
.if defined(WITH_SOUND)
52
pre-install::
53
	cd ${WRKSRC}/src; ${ECHO_CMD} \
54
	"bin/`find . -type f -perm 755 |cut -c3-`" > ${PLIST}; \
55
	cd ${WRKDIR}/${PORTNAME}-sound-${PORTVERSION}/data; \
56
	${FIND} . -type f \! -name "Make*" | cut -c2- | \
57
	${SED} 's|^|${DATADIR:S,${PREFIX}/,,}/data|' \
58
	| ${SORT} >> ${PLIST}; \
59
	cd ${WRKDIR}/${PORTNAME}-${PORTVERSION}/data; \
60
	${FIND} . -type f \! -name "Make*" | cut -c2- | ${SED} \
61
	's|^|${DATADIR:S,${PREFIX}/,,}/data|' | ${SORT} >> ${PLIST}; \
62
	cd ${WRKDIR}/${PORTNAME}-sound-${PORTVERSION}/data; \
63
	${FIND} . -type d | cut -c2- | ${SED} \
64
	's|^|@dirrm ${DATADIR:S,${PREFIX}/,,}/data|' | ${SORT} -r >> ${PLIST};
65
	${ECHO_CMD} "@dirrm ${DATADIR:S,${PREFIX}/,,}" >> ${PLIST};
66
.endif
67
68
.if defined(WITH_SOUND)
69
post-install::
70
	cd ${WRKDIR}/${PORTNAME}-sound-${PORTVERSION}/data; \
71
	${RM} Make*; \
72
	${CP} -R ${WRKDIR}/${PORTNAME}-sound-${PORTVERSION}/data \
73
	${DATADIR};
74
.endif
75
.include <bsd.port.post.mk>

Return to bug 42733