1999-09-18 20:46:21 +00:00
|
|
|
# New ports collection makefile for: xmp
|
|
|
|
# Date created: 18 September 1999
|
|
|
|
# Whom: Anders Nordby <anders@fix.no>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-04-08 21:25:03 +00:00
|
|
|
PORTNAME= xmp
|
2008-04-16 21:21:25 +00:00
|
|
|
PORTVERSION= 2.5.1
|
1999-09-18 20:46:21 +00:00
|
|
|
CATEGORIES= audio
|
2001-12-09 02:27:21 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
1999-09-18 20:46:21 +00:00
|
|
|
|
2005-02-15 20:31:12 +00:00
|
|
|
MAINTAINER= anders@FreeBSD.org
|
2003-02-20 17:07:10 +00:00
|
|
|
COMMENT= A player for many different Amiga and PC module formats
|
1999-09-18 20:46:21 +00:00
|
|
|
|
|
|
|
USE_GMAKE= yes
|
2008-05-18 12:16:40 +00:00
|
|
|
WANT_GNOME= yes
|
2008-04-16 21:21:25 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2004-09-24 01:04:01 +00:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
2004-11-21 14:53:51 +00:00
|
|
|
LIBS="-L${LOCALBASE}/lib"
|
2008-04-16 21:21:25 +00:00
|
|
|
CONFIGURE_ARGS= --disable-alsa --enable-oss \
|
|
|
|
--sysconfdir=${PREFIX}/etc
|
2004-09-24 01:04:01 +00:00
|
|
|
|
2007-05-02 08:05:06 +00:00
|
|
|
MAN1= xmp.1
|
|
|
|
MLINKS= xmp.1 xxmp.1
|
2001-04-17 11:02:01 +00:00
|
|
|
|
2008-04-16 21:21:25 +00:00
|
|
|
OPTIONS= XMMS "Build XMMS plugin" off \
|
|
|
|
ESOUND "EsounD support" off
|
|
|
|
|
2007-05-02 08:05:06 +00:00
|
|
|
CFLAGS+= -fPIC
|
1999-09-18 20:46:21 +00:00
|
|
|
|
2008-04-16 21:21:25 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(WITH_ESOUND)
|
|
|
|
USE_GNOME+= esound
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-esd
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_XMMS)
|
2007-05-02 08:05:06 +00:00
|
|
|
LIB_DEPENDS+= xmms.4:${PORTSDIR}/multimedia/xmms
|
2008-04-16 21:21:25 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-xmms-plugin
|
2003-10-03 11:22:08 +00:00
|
|
|
.else
|
2008-04-16 21:21:25 +00:00
|
|
|
CONFIGURE_ARGS+= --disable-xmms
|
2003-10-03 11:22:08 +00:00
|
|
|
.endif
|
|
|
|
|
2000-09-16 18:38:55 +00:00
|
|
|
post-patch:
|
2008-04-16 21:21:25 +00:00
|
|
|
.for f in docs/xmp.1 etc/xmp.conf etc/xmp-modules.conf
|
|
|
|
@${REINPLACE_CMD} -e "s|/etc/xmp|${PREFIX}/etc/xmp|g" ${WRKSRC}/${f}
|
|
|
|
.endfor
|
|
|
|
@${REINPLACE_CMD} -E -e 's|(^DDIRS.*)etc|\1|' ${WRKSRC}/Makefile
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${MKDIR} ${PREFIX}/etc/xmp
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/etc/xmp.conf ${PREFIX}/etc/xmp/xmp.conf.default
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/etc/xmp-modules.conf ${PREFIX}/etc/xmp/xmp-modules.conf.default
|
2007-09-29 14:38:41 +00:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|