2004-12-04 19:12:10 +00:00
|
|
|
# New ports collection makefile for: cantus_3
|
|
|
|
# Date created: 18 May 2004
|
|
|
|
# Whom: asa@gascom.ru
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2007-08-13 13:11:02 +00:00
|
|
|
PORTNAME= cantus
|
|
|
|
PORTVERSION= 3.0.2
|
2008-06-06 13:08:29 +00:00
|
|
|
PORTREVISION= 2
|
2007-08-13 13:11:02 +00:00
|
|
|
DISTVERSIONSUFFIX= -testing.src
|
2004-12-04 19:12:10 +00:00
|
|
|
CATEGORIES= audio
|
2007-08-13 13:11:02 +00:00
|
|
|
MASTER_SITES= SF
|
2004-12-04 19:12:10 +00:00
|
|
|
|
2006-11-12 19:01:29 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2004-12-04 19:12:10 +00:00
|
|
|
COMMENT= Tool for tagging and renaming MP3 and OGG/Vorbis files
|
|
|
|
|
2007-08-13 13:11:02 +00:00
|
|
|
LIB_DEPENDS= gtkmm-2.4.1:${PORTSDIR}/x11-toolkits/gtkmm24 \
|
|
|
|
glademm-2.4.1:${PORTSDIR}/devel/libglademm24 \
|
2004-12-04 19:12:10 +00:00
|
|
|
ogg.5:${PORTSDIR}/audio/libogg \
|
2007-08-13 13:11:02 +00:00
|
|
|
sigc-2.0.0:${PORTSDIR}/devel/libsigc++20 \
|
2007-07-30 17:31:39 +00:00
|
|
|
vorbis.4:${PORTSDIR}/audio/libvorbis
|
2004-12-04 19:12:10 +00:00
|
|
|
|
2007-08-13 13:11:02 +00:00
|
|
|
CONFLICTS= cantus-1*
|
|
|
|
USE_GETTEXT= yes
|
2004-12-04 19:12:10 +00:00
|
|
|
USE_GMAKE= yes
|
2007-08-13 13:11:02 +00:00
|
|
|
USE_GNOME= gnomehack gnomeprefix libglade2 glib20
|
|
|
|
USE_LDCONFIG= yes
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS= -L${LOCALBASE}/lib
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
|
|
|
|
CONFIGURE_ARGS= --program-transform-name="" --disable-static
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME:S/.src//}
|
|
|
|
|
|
|
|
post-patch:
|
2007-09-08 01:58:01 +00:00
|
|
|
@${REINPLACE_CMD} -Ee 's|-ldld||g;s|-ldl||g;/ALL_LINGUAS=/s|=(.*)|="\1"|;\
|
|
|
|
/LIBS=/s|-lgthr|${PTHREAD_LIBS} &|' ${WRKSRC}/configure
|
|
|
|
@${REINPLACE_CMD} -e 's|-ldl||;s|-lrt||' ${WRKSRC}/source/cantus/Makefile.in
|
2007-08-13 13:11:02 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|PACKAGE_LIB_DIR "cantus-3.glade"|PACKAGE_DATA_DIR "/cantus/glade/cantus.glade"|'\
|
|
|
|
${WRKSRC}/source/cantus/gui_controller.cc
|
2008-03-27 06:39:18 +00:00
|
|
|
@${FIND} ${WRKSRC} -name "*.h" -o -name "*.cc" | ${XARGS} \
|
|
|
|
${REINPLACE_CMD} -e 's|SigC::Slot3|sigc::slot3|g ; \
|
|
|
|
s|SigC::Signal|sigc::signal|g ; \
|
|
|
|
s|SigC::Object|sigc::trackable|g'
|
2004-12-04 19:12:10 +00:00
|
|
|
|
2008-02-01 06:40:51 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${ARCH} == "sparc64"
|
|
|
|
IGNORE= includes i386 asm
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|