2007-10-02 15:09:44 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.14 2007/10/02 19:09:44 jasper Exp $
|
2002-02-05 13:04:10 -05:00
|
|
|
# Uses pthreads
|
|
|
|
|
2007-09-15 17:26:00 -04:00
|
|
|
COMMENT= Music tracking tool for X11
|
2002-02-05 13:04:10 -05:00
|
|
|
|
2002-05-30 05:08:28 -04:00
|
|
|
VERSION= 0.6.6
|
2002-02-05 13:04:10 -05:00
|
|
|
DISTNAME= soundtracker-${VERSION}
|
2005-11-28 11:09:52 -05:00
|
|
|
PKGNAME= ${DISTNAME}p0
|
2002-02-05 13:04:10 -05:00
|
|
|
CATEGORIES= audio
|
|
|
|
HOMEPAGE= http://www.soundtracker.org/
|
|
|
|
|
2002-05-08 15:24:56 -04:00
|
|
|
MAINTAINER= Wilbern Cobb <wcobb@openbsd.org>
|
2002-02-05 13:04:10 -05:00
|
|
|
|
|
|
|
# GPL
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2004-11-21 12:51:44 -05:00
|
|
|
WANTLIB= X11 Xext Xi c glib gmodule m pthread
|
2002-02-05 13:04:10 -05:00
|
|
|
|
2002-05-13 14:50:36 -04:00
|
|
|
V=v0.6
|
|
|
|
MASTER_SITES= http://www.soundtracker.org/dl/$V/ \
|
2002-05-30 05:08:28 -04:00
|
|
|
http://mirror.csoft.org/soundtracker/
|
2002-02-05 13:04:10 -05:00
|
|
|
|
2006-08-01 08:13:28 -04:00
|
|
|
LIB_DEPENDS= gtk.>=1.2,gdk.>=1.2::x11/gtk+ \
|
2002-02-05 13:04:10 -05:00
|
|
|
audiofile::devel/libaudiofile
|
|
|
|
|
2007-10-02 15:09:44 -04:00
|
|
|
MODULES= devel/gettext
|
2002-05-30 05:08:28 -04:00
|
|
|
|
|
|
|
FLAVORS= gnome esd
|
|
|
|
FLAVOR?=
|
2002-02-05 13:04:10 -05:00
|
|
|
|
|
|
|
USE_X11= Yes
|
2005-11-03 13:28:55 -05:00
|
|
|
AUTOCONF_VERSION= 2.52
|
2002-09-15 23:57:37 -04:00
|
|
|
CONFIGURE_STYLE= autoconf
|
2002-09-13 23:19:01 -04:00
|
|
|
CONFIGURE_ARGS= --with-audiofile-prefix=${LOCALBASE} \
|
2002-02-05 13:04:10 -05:00
|
|
|
--disable-alsa \
|
|
|
|
--disable-sgi \
|
|
|
|
--disable-oss
|
2002-05-30 05:08:28 -04:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
2002-02-05 13:04:10 -05:00
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mgnome}
|
2006-08-01 08:13:28 -04:00
|
|
|
LIB_DEPENDS+= gnome.>=36,gnomesupport,gnomeui.>=46,art_lgpl.>=4::x11/gnome/libs \
|
2002-09-13 23:19:01 -04:00
|
|
|
gdk_pixbuf::graphics/gdk-pixbuf
|
|
|
|
CONFIGURE_ARGS+=--with-gdk-pixbuf-prefix=${LOCALBASE}
|
2004-11-21 12:51:44 -05:00
|
|
|
WANTLIB+= ICE SM gdk_imlib jpeg png tiff ungif z
|
2002-02-05 13:04:10 -05:00
|
|
|
.else
|
2002-09-13 23:19:01 -04:00
|
|
|
CONFIGURE_ARGS+=--disable-gnome --disable-splash
|
2002-02-05 13:04:10 -05:00
|
|
|
.endif
|
|
|
|
|
2002-04-15 16:04:44 -04:00
|
|
|
.if ${FLAVOR:L:Mesd}
|
2006-08-01 08:13:28 -04:00
|
|
|
LIB_DEPENDS+= esd.>=2::audio/esound
|
2002-04-15 16:04:44 -04:00
|
|
|
.else
|
2002-02-05 13:04:10 -05:00
|
|
|
CONFIGURE_ARGS+= --disable-esd
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${MACHINE_ARCH} != "i386"
|
|
|
|
CONFIGURE_ARGS+= --disable-assembler
|
|
|
|
.endif
|
|
|
|
|
2002-05-30 05:08:28 -04:00
|
|
|
DOCS= FAQ NEWS README \
|
|
|
|
doc/xi.txt doc/xm.txt
|
|
|
|
|
|
|
|
post-configure:
|
|
|
|
cd ${WRKSRC}/po && cp -f Makefile.in Makefile
|
2002-02-05 13:04:10 -05:00
|
|
|
|
|
|
|
post-extract:
|
|
|
|
@ln -s ${FILESDIR}/sun-input.c ${WRKSRC}/app/drivers
|
|
|
|
@ln -s ${FILESDIR}/sun-output.c ${WRKSRC}/app/drivers
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/soundtracker
|
|
|
|
cd ${WRKSRC} && \
|
|
|
|
${INSTALL_DATA} ${DOCS} ${PREFIX}/share/doc/soundtracker
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|