openbsd-ports/audio/soundtracker/Makefile

72 lines
1.6 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.18 2009/08/10 06:29:52 kili Exp $
# Uses pthreads
COMMENT= Music tracking tool for X11
VERSION= 0.6.6
DISTNAME= soundtracker-${VERSION}
PKGNAME= ${DISTNAME}p4
CATEGORIES= audio
HOMEPAGE= http://www.soundtracker.org/
2002-05-08 15:24:56 -04:00
MAINTAINER= Wilbern Cobb <wcobb@openbsd.org>
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= X11 Xext Xi c glib gmodule m pthread pthread-stubs xcb
2002-05-13 14:50:36 -04:00
V=v0.6
MASTER_SITES= http://www.soundtracker.org/dl/$V/ \
http://mirror.csoft.org/soundtracker/
2006-08-01 08:13:28 -04:00
LIB_DEPENDS= gtk.>=1.2,gdk.>=1.2::x11/gtk+ \
audiofile::devel/libaudiofile
MODULES= devel/gettext
FLAVORS= esd
FLAVOR?=
USE_X11= Yes
AUTOCONF_VERSION= 2.52
CONFIGURE_STYLE= autoconf
CONFIGURE_ARGS= --with-audiofile-prefix=${LOCALBASE} \
--disable-alsa \
--disable-sgi \
--disable-oss \
--disable-gnome \
--disable-splash
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
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
2009-03-06 16:24:52 -05:00
WANTLIB += sndio
2002-04-15 16:04:44 -04:00
.else
CONFIGURE_ARGS+= --disable-esd
.endif
.if ${MACHINE_ARCH} != "i386"
CONFIGURE_ARGS+= --disable-assembler
.endif
DOCS= FAQ NEWS README \
doc/xi.txt doc/xm.txt
post-configure:
cd ${WRKSRC}/po && cp -f Makefile.in Makefile
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>