1999-12-25 16:35:44 +01:00
|
|
|
# New ports collection makefile for: soundtracker
|
|
|
|
# Date created: 28 November 1999
|
|
|
|
# Whom: kzentner
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-04-08 23:25:03 +02:00
|
|
|
PORTNAME= soundtracker
|
2006-05-03 08:44:48 +02:00
|
|
|
PORTVERSION= 0.6.8
|
2006-09-20 13:21:59 +02:00
|
|
|
PORTREVISION= 2
|
2000-06-01 18:25:45 +02:00
|
|
|
CATEGORIES= audio gnome
|
2002-11-23 16:38:30 +01:00
|
|
|
MASTER_SITES= http://www.soundtracker.org/dl/%SUBDIR%/
|
|
|
|
MASTER_SITE_SUBDIR= v${PORTVERSION:R}
|
1999-12-25 16:35:44 +01:00
|
|
|
|
2006-07-26 00:29:09 +02:00
|
|
|
MAINTAINER= jylefort@FreeBSD.org
|
2003-02-20 18:07:10 +01:00
|
|
|
COMMENT= Mod player/tracking tool which supports XM and MOD formats
|
1999-12-25 16:35:44 +01:00
|
|
|
|
2006-05-03 08:44:48 +02:00
|
|
|
LIB_DEPENDS= sndfile.1:${PORTSDIR}/audio/libsndfile
|
2004-01-12 14:56:58 +01:00
|
|
|
|
2000-04-18 02:37:19 +02:00
|
|
|
USE_X_PREFIX= yes
|
2004-01-12 14:56:58 +01:00
|
|
|
USE_GNOME= esound gdkpixbuf gnomehack gnometarget
|
2000-10-05 09:22:56 +02:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
2002-11-23 16:38:30 +01:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
2000-10-05 09:22:56 +02:00
|
|
|
|
2006-08-23 02:16:18 +02:00
|
|
|
OPTIONS= GNOME "use GNOME 1.x (enables envelope editors)" off \
|
|
|
|
I386_ASM "i386 asm optimizations (potentially unstable)" off \
|
|
|
|
JACK "JACK support" off \
|
|
|
|
SDL "SDL support" off
|
|
|
|
|
|
|
|
DESKTOP_ENTRIES="SoundTracker" \
|
|
|
|
"Compose music" \
|
|
|
|
"soundtracker.xpm" \
|
|
|
|
"soundtracker" \
|
|
|
|
"" \
|
|
|
|
false
|
|
|
|
|
2000-10-05 09:22:56 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2006-08-23 02:16:18 +02:00
|
|
|
.if ${ARCH} == "i386" && defined(WITH_I386_ASM)
|
2006-05-28 20:21:41 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-asm
|
2006-05-03 08:44:48 +02:00
|
|
|
.endif
|
|
|
|
|
2006-08-23 02:16:18 +02:00
|
|
|
.if defined(WITH_GNOME)
|
2004-01-12 14:56:58 +01:00
|
|
|
USE_GNOME+= gnomelibs gnomeprefix
|
2002-11-23 16:38:30 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-gnome
|
2004-01-12 14:56:58 +01:00
|
|
|
DATADIR= ${PREFIX}/share/gnome/${PORTNAME}
|
2000-02-20 05:18:32 +01:00
|
|
|
.else
|
2002-11-23 16:38:30 +01:00
|
|
|
CONFIGURE_ARGS+= --disable-gnome
|
1999-12-25 16:35:44 +01:00
|
|
|
.endif
|
|
|
|
|
2006-05-03 08:44:48 +02:00
|
|
|
.if defined(WITH_JACK)
|
|
|
|
LIB_DEPENDS+= jack.0:${PORTSDIR}/audio/jack
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-jack
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_SDL)
|
|
|
|
USE_SDL= sdl
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-sdl
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITHOUT_NLS)
|
|
|
|
CONFIGURE_ARGS+= --disable-nls
|
|
|
|
PLIST_SUB+= NLS="@comment "
|
|
|
|
.else
|
|
|
|
USE_GETTEXT= yes
|
|
|
|
PLIST_SUB+= NLS=""
|
2004-01-31 16:08:58 +01:00
|
|
|
.endif
|
|
|
|
|
2002-09-09 03:21:47 +02:00
|
|
|
post-patch:
|
2006-08-23 02:16:18 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|soundtracker.desktop||' \
|
|
|
|
${WRKSRC}/Makefile.in
|
|
|
|
@${REINPLACE_CMD} -e 's| install-exec-local||' \
|
|
|
|
${WRKSRC}/app/Makefile.in
|
|
|
|
@${REINPLACE_CMD} -e 's|-ldl||' \
|
|
|
|
${WRKSRC}/configure
|
|
|
|
@${REINPLACE_CMD} -e 's|PREFIX"/share/soundtracker|DATADIR"|' \
|
|
|
|
${WRKSRC}/app/gui.c
|
2006-05-03 08:44:48 +02:00
|
|
|
|
|
|
|
pre-build:
|
|
|
|
.if !defined(WITHOUT_NLS)
|
|
|
|
cd ${WRKSRC}/po && ${LOCALBASE}/bin/msgfmt -c -o ja.gmo ja.po
|
|
|
|
.endif
|
1999-12-25 16:35:44 +01:00
|
|
|
|
2006-08-23 02:16:18 +02:00
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/sharp.xpm ${PREFIX}/share/pixmaps/soundtracker.xpm
|
|
|
|
|
2000-10-05 09:22:56 +02:00
|
|
|
.include <bsd.port.post.mk>
|