mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-04 01:48:54 +00:00
60d1a83c2a
- Replace ${MASTER_SITE_FOO} with FOO. - Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9% of the time.) - Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and no hint of what it should be was present. - Fix some logic. - And generally, make things more simple and easy to understand. While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and SAMBA macros. Also, replace some EXTRACT_SUFX occurences with USES=tar:*. Checked by: make fetch-urlall-list With hat: portmgr Sponsored by: Absolight
80 lines
1.8 KiB
Makefile
80 lines
1.8 KiB
Makefile
# Created by: Kristopher Zentner <kzentner@u.washington.edu>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= soundtracker
|
|
PORTVERSION= 0.6.8
|
|
PORTREVISION= 16
|
|
CATEGORIES= audio
|
|
MASTER_SITES= http://www.soundtracker.org/dl/v${PORTVERSION:R}/
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Mod player/tracking tool which supports XM and MOD formats
|
|
|
|
LICENSE= GPLv2
|
|
|
|
LIB_DEPENDS= libsndfile.so:${PORTSDIR}/audio/libsndfile
|
|
|
|
GNU_CONFIGURE= yes
|
|
USES= pathfix pkgconfig
|
|
USE_GNOME= esound gdkpixbuf
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
OPTIONS_DEFINE= JACK SDL NLS
|
|
OPTIONS_DEFINE_i386= ASM
|
|
ASM_DESC= Use optimized assembly (potentially unstable)
|
|
|
|
CONFIGURE_ARGS+= --disable-gnome
|
|
|
|
DESKTOP_ENTRIES="SoundTracker" "Pattern-oriented music editor" \
|
|
"${PREFIX}/share/pixmaps/${PORTNAME}.xpm" \
|
|
"soundtracker" "AudioVideo;Audio;AudioVideoEditing;" false
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MASM}
|
|
CONFIGURE_ARGS+= --enable-asm
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MJACK}
|
|
LIB_DEPENDS+= libjack.so:${PORTSDIR}/audio/jack
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-jack
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MSDL}
|
|
USE_SDL= sdl
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-sdl
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MNLS}
|
|
USES+= gettext
|
|
PLIST_SUB+= NLS=""
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-nls
|
|
PLIST_SUB+= NLS="@comment "
|
|
.endif
|
|
|
|
post-patch:
|
|
@${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
|
|
|
|
pre-build:
|
|
.if ${PORT_OPTIONS:MNLS}
|
|
cd ${WRKSRC}/po && ${LOCALBASE}/bin/msgfmt -c -o ja.gmo ja.po
|
|
.endif
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${WRKSRC}/sharp.xpm \
|
|
${STAGEDIR}${PREFIX}/share/pixmaps/soundtracker.xpm
|
|
|
|
.include <bsd.port.mk>
|