blob: a8a244629b87711fcbfd2911a811cfca5a91b34c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
|
# New ports collection makefile for: nmm
# Date created: Apr 21. 2008
# Whom: netchild@FreeBSD.org
#
# $FreeBSD$
#
PORTNAME= nmm
PORTVERSION= 1.0.0
PORTREVISION= 2
CATEGORIES= multimedia
MASTER_SITES= http://www.motama.com/download/
MAINTAINER= netchild@FreeBSD.org
COMMENT= A network-integrated multimedia middleware
LIB_DEPENDS= jpeg:${PORTSDIR}/graphics/jpeg \
png:${PORTSDIR}/graphics/png \
mp3lame:${PORTSDIR}/audio/lame \
mad:${PORTSDIR}/audio/libmad \
dvdread:${PORTSDIR}/multimedia/libdvdread \
dvdnav:${PORTSDIR}/multimedia/libdvdnav \
vorbis:${PORTSDIR}/audio/libvorbis \
MagickCore:${PORTSDIR}/graphics/ImageMagick \
cdda_paranoia:${PORTSDIR}/audio/cdparanoia \
avcodec:${PORTSDIR}/multimedia/ffmpeg \
mpeg2:${PORTSDIR}/multimedia/libmpeg2 \
a52:${PORTSDIR}/audio/liba52 #\
# rfftw:${PORTSDIR}/math/fftw \
# shout:${PORTSDIR}/audio/libshout \
# lirc_client:${PORTSDIR}/comms/lirc
GNU_CONFIGURE= yes
USE_GETTEXT= yes
USE_GNOME= lthack libxml2 # lthack + autotools stuff below? To verify!
USE_GMAKE= yes
USE_XORG= x11
#
# The port will reconfigure in the build stage. Using the autotools rebuild
# does not work, it complains about some missing libtool stuff. By setting
# the :env part below, we are sure we get the tools installed so that
# the automatic rebuild via automake/autoconf works. Ideally this should
# be fixed correctly, but so far I haven't found the correct way...
#
USE_AUTOTOOLS= libltdl libtool:15 \
autoconf:262:env autoheader:262:env \
automake:19:env aclocal:19:env
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --program-prefix=nmm- \
--enable-final \
--disable-examples-helloworld --disable-examples-avmux \
--without-alsa \
--with-ffmpeg=${LOCALBASE} \
--with-ltdl=${LOCALBASE} \
--with-dvdread=${LOCALBASE} \
--with-dvdnav=${LOCALBASE} \
--with-libpng=${LOCALBASE} --with-png=${LOCALBASE} \
--with-ImageMagick=${LOCALBASE} \
--with-extra-includes=${LOCALBASE}/include/ImageMagick \
--with-mad=${LOCALBASE} \
--with-lame=${LOCALBASE} \
--with-cdparanoia=${LOCALBASE} \
--with-libjpeg=${LOCALBASE} \
--with-libogg=${LOCALBASE} \
--with-libvorbis=${LOCALBASE} \
--with-vorbis=${LOCALBASE} \
--with-a52dec=${LOCALBASE} \
--with-mpeg2dec=${LOCALBASE}
CFLAGS+= ${PTHREAD_CFLAGS}
CONFIGURE_ENV+= LIBS="${PTHREAD_LIBS}" CFLAGS="${CFLAGS}"
MAKE_ENV+= LIBS="${PTHREAD_LIBS}"
post-patch:
@${REINPLACE_CMD} -i "" -e 's:Magick++ Magick:Magick++ MagickCore:g' \
${WRKSRC}/configure
post-install:
@${CAT} ${PKGMESSAGE}
#
## TODO
#
# - libraw1394 (SF)
# for firewire support
# - libliveMedia (live555.com)
# for RTP
# - dvb?
# probably not suitable for FreeBSD, alternatively cxm and bt848 support?
# - libshout
# - fftw
# for audio visualization (spectral analysis)
# seems to need a more recent gcc, maybe suitable after OPTIONS support
# in the port so that it is not compiled by default
# - OPTIONS support in the port
# - xml2devel? (2.6.31)
# enhanced sync support, probably only after it hits the ports collection
# by default
# - lirc?
# - doxygen?
# - docbook?
.include <bsd.port.mk>
|