2003-11-13 20:54:51 +01:00
|
|
|
# New ports collection makefile for: beep
|
|
|
|
# Date created: Thu Nov 6 19:24:01 CET 2003
|
|
|
|
# Whom: Miguel Mendez <flynn@energyhq.es.eu.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= beep-media-player
|
2006-05-07 23:02:45 +02:00
|
|
|
PORTVERSION= 0.9.7.1
|
2004-02-08 09:08:09 +01:00
|
|
|
PORTEPOCH= 1
|
2005-10-17 21:11:36 +02:00
|
|
|
CATEGORIES= multimedia audio ipv6
|
2004-02-08 09:08:09 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= beepmp
|
2004-12-11 20:05:11 +01:00
|
|
|
DISTNAME= bmp-${PORTVERSION}
|
2003-11-13 20:54:51 +01:00
|
|
|
|
2006-05-07 23:02:45 +02:00
|
|
|
MAINTAINER= mmendez@energyhq.be
|
2006-06-15 13:12:25 +02:00
|
|
|
COMMENT= GTK2 multimedia player
|
2003-11-13 20:54:51 +01:00
|
|
|
|
2006-05-03 09:39:30 +02:00
|
|
|
USE_GNOME= gtk20 libglade2 desktopfileutils
|
2003-11-13 20:54:51 +01:00
|
|
|
WANT_GNOME= yes
|
|
|
|
USE_X_PREFIX= yes
|
2005-11-15 07:52:12 +01:00
|
|
|
USE_AUTOTOOLS= libtool:15
|
2003-11-13 20:54:51 +01:00
|
|
|
USE_GMAKE= yes
|
2006-06-15 13:12:25 +02:00
|
|
|
USE_GETTEXT= yes
|
2006-08-07 13:46:50 +02:00
|
|
|
USE_LDCONFIG= yes
|
2003-11-13 20:54:51 +01:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
2004-12-12 21:36:33 +01:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib -lstdc++" \
|
2003-11-13 20:54:51 +01:00
|
|
|
INPUT_PLUGINS="${INPUT_PLUGINS}" \
|
|
|
|
OUTPUT_PLUGINS="${OUTPUT_PLUGINS}" \
|
|
|
|
VISUALIZATION_PLUGINS="${VISUALIZATION_PLUGINS}"
|
2004-02-08 09:08:09 +01:00
|
|
|
MAN1= beep-media-player.1
|
2003-11-13 20:54:51 +01:00
|
|
|
|
2005-02-27 18:07:23 +01:00
|
|
|
INPUT_PLUGINS= cdaudio,mpg123,wav
|
2003-11-13 20:54:51 +01:00
|
|
|
OUTPUT_PLUGINS= OSS
|
2003-11-15 03:24:06 +01:00
|
|
|
VISUALIZATION_PLUGINS= blur_scope
|
2003-11-13 20:54:51 +01:00
|
|
|
|
2005-02-25 16:12:06 +01:00
|
|
|
OPTIONS= VORBIS "Enable Ogg Vorbis support" on \
|
|
|
|
ESOUND "Enable Esound support" off \
|
2005-10-17 21:11:36 +02:00
|
|
|
3DNOW "Enable 3DNow! optimized decoding routines" on \
|
|
|
|
IPV6 "Enable IPv6 support" off
|
2003-11-13 20:54:51 +01:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2005-10-17 21:11:36 +02:00
|
|
|
# Enable IPv6 support
|
|
|
|
.if defined(WITH_IPV6)
|
|
|
|
PATCH_SITES+= http://izb.knu.ac.kr/~bh/diffs/
|
|
|
|
PATCHFILES+= bmp-0.9.7-ipv6-simple.diff
|
|
|
|
PATCH_DIST_STRIP+= -p1
|
|
|
|
.endif
|
2003-11-13 20:54:51 +01:00
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --disable-mikmod
|
|
|
|
PLIST_SUB+= MIKMODPLUGIN:="@comment "
|
|
|
|
|
2003-11-19 20:01:55 +01:00
|
|
|
.if !defined(WITHOUT_VORBIS)
|
2003-12-20 17:37:57 +01:00
|
|
|
LIB_DEPENDS+= vorbis.3:${PORTSDIR}/audio/libvorbis
|
2003-11-19 20:01:55 +01:00
|
|
|
INPUT_PLUGINS+= vorbis
|
|
|
|
PLIST_SUB+= VORBISPLUGIN:=""
|
|
|
|
.else
|
2003-11-13 20:54:51 +01:00
|
|
|
CONFIGURE_ARGS+= --disable-vorbis
|
|
|
|
PLIST_SUB+= VORBISPLUGIN:="@comment "
|
2003-11-19 20:01:55 +01:00
|
|
|
.endif
|
2003-11-13 20:54:51 +01:00
|
|
|
|
2005-02-25 16:12:06 +01:00
|
|
|
.if defined(WITH_ESOUND)
|
2003-11-13 20:54:51 +01:00
|
|
|
USE_GNOME+= esound
|
|
|
|
OUTPUT_PLUGINS+= esd
|
|
|
|
PLIST_SUB+= ESDPLUGIN:=""
|
|
|
|
.if defined(PKGNAMESUFFIX)
|
|
|
|
PKGNAMESUFFIX:= ${PKGNAMESUFFIX}-esound
|
|
|
|
.else
|
|
|
|
PKGNAMESUFFIX= -esound
|
|
|
|
.endif
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-esd
|
|
|
|
PLIST_SUB+= ESDPLUGIN:="@comment "
|
|
|
|
.endif
|
|
|
|
|
2004-07-31 23:54:29 +02:00
|
|
|
.if ${ARCH} != "i386"
|
2003-11-13 20:54:51 +01:00
|
|
|
WITHOUT_3DNOW= yes
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_3DNOW) && ${OSVERSION} >= 400021
|
|
|
|
CONFIGURE_ARGS+= --enable-3dnow
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
2004-07-31 23:54:29 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|(libdir)/pkgconfig|(prefix)/libdata/pkgconfig|g' \
|
|
|
|
${WRKSRC}/Makefile.in
|
2003-11-13 20:54:51 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|{datadir}/locale|{prefix}/share/locale|g' \
|
|
|
|
${WRKSRC}/configure
|
|
|
|
@${REINPLACE_CMD} -e 's,-pthread,${PTHREAD_LIBS},g' \
|
|
|
|
${WRKSRC}/configure
|
|
|
|
@${FIND} ${WRKSRC} -type f | ${XARGS} ${TOUCH} -f
|
|
|
|
|
|
|
|
post-install:
|
2005-02-25 16:12:06 +01:00
|
|
|
@${MKDIR} ${PREFIX}/lib/bmp/General
|
2003-11-13 20:54:51 +01:00
|
|
|
@${MKDIR} ${PREFIX}/share/beep/Skins
|
2006-05-03 09:39:30 +02:00
|
|
|
-@update-desktop-database
|
2003-11-13 20:54:51 +01:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|