2005-11-23 12:57:02 +01:00
|
|
|
# New ports collection makefile for: bmpx
|
|
|
|
# Date created: 2005-11-20
|
|
|
|
# Whom: Roman Bogorodskiy <novel@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= bmpx
|
2006-02-10 23:47:02 +01:00
|
|
|
PORTVERSION= 0.13
|
2005-11-23 12:57:02 +01:00
|
|
|
CATEGORIES= multimedia
|
2005-11-26 17:38:56 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= beepmp
|
2005-11-23 12:57:02 +01:00
|
|
|
|
|
|
|
MAINTAINER= novel@FreeBSD.org
|
|
|
|
COMMENT= Audio player
|
|
|
|
|
|
|
|
LIB_DEPENDS= tag.5:${PORTSDIR}/audio/taglib \
|
2005-12-10 22:06:42 +01:00
|
|
|
xine.15:${PORTSDIR}/multimedia/libxine \
|
2006-02-10 23:47:02 +01:00
|
|
|
neon.25:${PORTSDIR}/www/neon
|
2005-11-23 12:57:02 +01:00
|
|
|
|
2005-11-26 17:38:56 +01:00
|
|
|
USE_AUTOTOOLS= libtool:15
|
2006-02-10 23:47:02 +01:00
|
|
|
USE_BISON= yes
|
2005-11-23 12:57:02 +01:00
|
|
|
USE_BZIP2= yes
|
2005-11-26 17:38:56 +01:00
|
|
|
USE_FAM= yes
|
|
|
|
USE_GCC= 3.4+
|
2005-11-23 12:57:02 +01:00
|
|
|
USE_GMAKE= yes
|
2005-11-26 17:38:56 +01:00
|
|
|
USE_GNOME= gtk20 libglade2 desktopfileutils
|
2006-02-10 23:47:02 +01:00
|
|
|
LIBTOOLFILES= configure libhrel/configure \
|
|
|
|
libchroma/configure libskinned/configure
|
2005-11-23 12:57:02 +01:00
|
|
|
USE_X_PREFIX= yes
|
|
|
|
USE_REINPLACE= yes
|
|
|
|
INSTALLS_SHLIB= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS+= --enable-xine --disable-gst
|
|
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
2006-02-10 23:47:02 +01:00
|
|
|
CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
|
2005-11-26 17:38:56 +01:00
|
|
|
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib ${PTHREAD_LIBS}"
|
2005-11-23 12:57:02 +01:00
|
|
|
|
|
|
|
MAN1= bmpx.1
|
|
|
|
|
2006-02-10 23:47:02 +01:00
|
|
|
.if !defined(WITHOUT_AMAZON)
|
|
|
|
CONFIGURE_ARGS+= --enable-amazon
|
|
|
|
.endif
|
|
|
|
|
2005-11-23 12:57:02 +01:00
|
|
|
.if defined(WITHOUT_DBUS)
|
|
|
|
CONFIGURE_ARGS+= --disable-dbus
|
|
|
|
.else
|
2005-12-31 19:49:08 +01:00
|
|
|
LIB_DEPENDS+= dbus-1.2:${PORTSDIR}/devel/dbus
|
2005-11-23 12:57:02 +01:00
|
|
|
.endif
|
|
|
|
|
2006-02-16 11:18:42 +01:00
|
|
|
.if !defined(WITHOUT_GCONF)
|
|
|
|
USE_GNOME+= gconf2
|
|
|
|
CONFIGURE_ARGS+= --enable-gconf
|
|
|
|
.endif
|
|
|
|
|
2005-11-26 17:38:56 +01:00
|
|
|
.if defined(WITHOUT_PERL)
|
|
|
|
CONFIGURE_ARGS+= --disable-perl
|
|
|
|
.else
|
|
|
|
USE_PERL5_BUILD= yes
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITHOUT_PYTHON)
|
|
|
|
CONFIGURE_ARGS+= --disable-python
|
|
|
|
PLIST_SUB+= PYTHON="@comment "
|
|
|
|
.else
|
|
|
|
USE_PYTHON= yes
|
|
|
|
USE_GNOME+= pygtk2
|
|
|
|
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/dbus.pth:${PORTSDIR}/devel/py-dbus
|
|
|
|
PLIST_SUB+= PYTHON=""
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITHOUT_STARTUP_NOTIFICATION)
|
|
|
|
CONFIGURE_ARGS+= --disable-sn
|
|
|
|
.else
|
|
|
|
LIB_DEPENDS+= startup-notification-1.0:${PORTSDIR}/x11/startup-notification
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${OSVERSION} < 500000
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|<stdint.h>|<inttypes.h>|' \
|
|
|
|
${WRKSRC}/src/metadata.c
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|