freebsd-ports/multimedia/vlc-devel/Makefile
FUJISHIMA Satsuki 63dcec2a01 unbreak package at bento(i386/RELENG_4):
o get rid of hardcoded CONFIGURE_TARGET from pkg-plist.
o utilize USE_SDL as pkg-plist includes its modules.
o utilize USE_GETOPT_LONG as configure detects libgnugetopt.
o utilize PTHREAD_LIBS to avoid linking both libc and libc_r in -STABLE.
o supply CPPFLAGS/LDFLAGS to configure to detect ogg/vorbis/id3tag and others.
o and add number of modules built accordingly.
o then sort pkg-plist.
2003-09-14 09:56:09 +00:00

62 lines
1.6 KiB
Makefile

# New ports collection makefile for: vlc
# Date created: 3rd August 2001
# Whom: Brian Somers <brian@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= vlc
PORTVERSION= 0.6.0
PORTREVISION= 1
CATEGORIES= multimedia
MASTER_SITES= http://www.videolan.org/pub/videolan/vlc/${PORTVERSION}/
MAINTAINER= brian@FreeBSD.org
COMMENT= An X11 video streaming client/server solution
LIB_DEPENDS= dvdcss.2:${PORTSDIR}/multimedia/libdvdcss \
dvdread.3:${PORTSDIR}/multimedia/libdvdread \
mad.1:${PORTSDIR}/audio/mad \
avcodec.0:${PORTSDIR}/multimedia/ffmpeg \
a52.0:${PORTSDIR}/audio/liba52 \
intl.5:${PORTSDIR}/devel/gettext \
iconv.3:${PORTSDIR}/converters/libiconv \
vorbis.2:${PORTSDIR}/audio/libvorbis \
ogg.4:${PORTSDIR}/audio/libogg \
FLAC.5:${PORTSDIR}/audio/flac \
faad.0:${PORTSDIR}/audio/faad \
wx_gtk.2:${PORTSDIR}/x11-toolkits/wxgtk-devel \
slp.1:${PORTSDIR}/net/openslp
# After libmpeg2 release 0.3.2
# mpeg2.0:${PORTSDIR}/multimedia/libmpeg2 \
USE_GETOPT_LONG=yes
USE_GMAKE= yes
USE_GNOME= gtk12
USE_REINPLACE= yes
USE_SDL= yes
USE_XLIB= yes
INSTALLS_SHLIB= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= PATH_GTKCONFIG="${GTK_CONFIG}" \
CPPFLAGS="${PTHREAD_CFLAGS} -I${LOCALBASE}/include" \
LDFLAGS=-L${LOCALBASE}/lib
CONFIGURE_ARGS+=--with-dvdcss=${LOCALBASE} \
--with-dvdread=${LOCALBASE} \
--with-mad=${LOCALBASE} \
--with-faad=${LOCALBASE} \
--disable-dvbpsi \
--with-a52=${LOCALBASE} \
--enable-ffmpeg \
--with-ffmpeg=${LOCALBASE} \
--disable-libmpeg2 \
--program-prefix="" \
--without-libintl-prefix \
--without-libiconv-prefix
post-patch:
@${REINPLACE_CMD} -e 's/-lc_r/${PTHREAD_LIBS}/' ${WRKSRC}/configure
.include <bsd.port.mk>