Specifically, newer autoconf (> 2.13) has different semantic of the configure target. In short, one should use --build=CONFIGURE_TARGET instead of CONFIGURE_TARGET directly. Otherwise, you will get a warning and the old semantic may be removed in later autoconf releases. To workaround this issue, many ports hack the CONFIGURE_TARGET variable so that it contains the ``--build='' prefix. To solve this issue, under the fact that some ports still have configure script generated by the old autoconf, we use runtime detection in the do-configure target so that the proper argument can be used. Changes to Mk/*: - Add runtime detection magic in bsd.port.mk - Remove CONFIGURE_TARGET hack in various bsd.*.mk - USE_GNOME=gnometarget is now an no-op Changes to individual ports, other than removing the CONFIGURE_TARGET hack: = pkg-plist changed (due to the ugly CONFIGURE_TARGET prefix in * executables) - comms/gnuradio - science/abinit - science/elmer-fem - science/elmer-matc - science/elmer-meshgen2d - science/elmerfront - science/elmerpost = use x86_64 as ARCH - devel/g-wrap = other changes - print/magicfilter GNU_CONFIGURE -> HAS_CONFIGURE since it's not generated by autoconf Total # of ports modified: 1,027 Total # of ports affected: ~7,000 (set GNU_CONFIGURE to yes) PR: 126524 (obsoletes 52917) Submitted by: rafan Tested on: two pointyhat 7-amd64 exp runs (by pav) Approved by: portmgr (pav)
103 lines
3 KiB
Makefile
103 lines
3 KiB
Makefile
# 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_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>
|