blob: 6ed144b06a2756866902e709e734e5a0654da49e (
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
|
# ex:ts=8
# Ports collection makefile for: solfege
# Date created: Apr 10, 2003
# Whom: ijliao
#
# $FreeBSD$
# $MCom$
PORTNAME= solfege
PORTVERSION= 3.7.0
PORTREVISION= 2
CATEGORIES= audio
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
PKGNAMESUFFIX= -nosound
MAINTAINER= ports@FreeBSD.org
COMMENT= Free eartraining software
BUILD_DEPENDS= ${STYLESHEET}:${PORTSDIR}/textproc/docbook-xsl
USE_GNOME= gnomehack gnomeprefix libxslt pygtk2
WANT_GNOME= yes
USE_PYTHON= yes
USE_GETTEXT= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= ac_cv_path_XML2PO=""
CONFIGURE_ARGS= --mandir=${MANPREFIX}/man \
--disable-oss-sound \
--enable-docbook-stylesheet=${STYLESHEET}
MAKE_ARGS= skipmanual=yes
MAN1= lessonfile_editor.1 solfege.1
STYLESHEET= ${LOCALBASE}/share/xsl/docbook/xhtml/chunk.xsl
.include <bsd.port.pre.mk>
.if ${HAVE_GNOME:Mpygnomeextras}!=""
USE_GNOME+= pygnomeextras
.endif
.if defined(PACKAGE_BUILDING)
BUILD_DEPENDS+= Xvfb:${X_VFBSERVER_PORT} \
${X11BASE}/lib/X11/fonts/misc/8x13O.pcf.gz:${X_FONTS_MISC_PORT}
.else
.if !defined(DISPLAY) || ${DISPLAY} == ""
IGNORE= requires an active X session (and DISPLAY variable). Please compile this while running X
.endif
.endif
post-patch:
@${RM} ${WRKSRC}/lesson-files/bin/csound-play-harmonic-interval.sh.orig
@${GREP} -lR "/usr/bin/python" ${WRKSRC} | ${XARGS} \
${REINPLACE_CMD} -e 's|/usr/bin/python|${SETENV} python|g'
@${REINPLACE_CMD} -e 's|type=sequencer-device|type=fake-synth|g ; \
s|/usr/bin|${LOCALBASE}/bin|g' ${WRKSRC}/default.config
@${REINPLACE_CMD} -e 's|(datadir)/locale|(prefix)/share/locale|g' \
${WRKSRC}/po/Makefile
.include <bsd.port.post.mk>
|