741aa71483
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)
129 lines
3.2 KiB
Makefile
129 lines
3.2 KiB
Makefile
# New ports collection makefile for: opencv - open source computer vision
|
|
# library from Intel
|
|
# Date created: 05 March 2005
|
|
# Whom: Marc Abramowitz (http://marc.abramowitz.info)
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= opencv
|
|
PORTVERSION= 1.0.0
|
|
PORTREVISION= 3
|
|
CATEGORIES= graphics
|
|
MASTER_SITES= SF/opencvlibrary
|
|
|
|
MAINTAINER= msabramo@yahoo.com
|
|
COMMENT= Open Source Computer Vision Library from Intel
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/include/linux/videodev.h:${PORTSDIR}/multimedia/v4l_compat
|
|
|
|
CFLAGS+= -I${LOCALBASE}/include/OpenEXR
|
|
CPPFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/OpenEXR
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
USE_AUTOTOOLS= libtool:15
|
|
USE_GMAKE= yes
|
|
USE_LDCONFIG= yes
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
|
|
CONFIGURE_ARGS= --with-v4l --without-quicktime --without-carbon \
|
|
--without-1394libs \
|
|
--without-swig # I don't know anything about swig ...
|
|
LIB_DEPENDS+= jpeg:${PORTSDIR}/graphics/jpeg \
|
|
png:${PORTSDIR}/graphics/png \
|
|
tiff:${PORTSDIR}/graphics/tiff \
|
|
jasper:${PORTSDIR}/graphics/jasper \
|
|
IlmImf:${PORTSDIR}/graphics/OpenEXR
|
|
USE_GNOME=
|
|
|
|
OPTIONS= GTK "Enable GTK+-2.0 support" Off \
|
|
XINE "Enable XINE support" Off \
|
|
FFMPEG "Enable FFMPEG support" Off \
|
|
PYTHON "Enable PYTHON support" Off \
|
|
DEBUG "Build debugging symbols" Off \
|
|
DEMO "Build demo apps" Off
|
|
# XXX:
|
|
# I cannot disable the following features if they have been installed,
|
|
# thus they should be enable now ...
|
|
#
|
|
# JPEG "Enable JPEG support" On \
|
|
# PNG "Enable PNG support" On \
|
|
# TIFF "Enable TIFF support" On \
|
|
# JASPER "Enable JASPER support" Off \
|
|
# OPENEXR "Enable OpenEXR support" Off \
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if defined(WITH_GTK)
|
|
USE_GNOME= gtk20
|
|
CONFIGURE_ARGS+=--with-gtk
|
|
.else
|
|
CONFIGURE_ARGS+=--without-gtk
|
|
.endif
|
|
|
|
#.if !defined(WITHOUT_JPEG)
|
|
#LIB_DEPENDS+= jpeg:${PORTSDIR}/graphics/jpeg
|
|
#.endif
|
|
#
|
|
#.if !defined(WITHOUT_PNG)
|
|
#LIB_DEPENDS+= png:${PORTSDIR}/graphics/png
|
|
#.endif
|
|
#
|
|
#.if !defined(WITHOUT_TIFF)
|
|
#LIB_DEPENDS+= tiff:${PORTSDIR}/graphics/tiff
|
|
#.endif
|
|
#
|
|
#.if defined(WITH_JASPER)
|
|
#LIB_DEPENDS+= jasper:${PORTSDIR}/graphics/jasper
|
|
#.endif
|
|
#
|
|
#.if defined(WITH_OPENEXR)
|
|
#LIB_DEPENDS+= libIlmImf:${PORTSDIR}/graphics/OpenEXR
|
|
#CFLAGS+= -I${LOCALBASE}/include/OpenEXR
|
|
#CPPFLAGS+= -I${LOCALBASE}/include/OpenEXR
|
|
#.endif
|
|
|
|
.if defined(WITH_XINE)
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
LIB_DEPENDS+= xine:${PORTSDIR}/multimedia/libxine
|
|
CONFIGURE_ARGS+=--with-xine
|
|
.else
|
|
CONFIGURE_ARGS+=--without-xine
|
|
.endif
|
|
|
|
.if defined(WITH_FFMPEG)
|
|
LIB_DEPENDS+= avcodec:${PORTSDIR}/multimedia/ffmpeg
|
|
CONFIGURE_ARGS+=--with-ffmpeg
|
|
.else
|
|
CONFIGURE_ARGS+=--without-ffmpeg
|
|
.endif
|
|
|
|
.if defined(WITH_PYTHON)
|
|
USE_PYTHON= yes
|
|
CONFIGURE_ARGS+=--with-python
|
|
PLIST_SUB+= PYTHON=""
|
|
.else
|
|
CONFIGURE_ARGS+=--without-python
|
|
PLIST_SUB+= PYTHON="@comment "
|
|
.endif
|
|
|
|
.if defined(WITH_DEBUG)
|
|
CONFIGURE_ARGS+=--enable-debug
|
|
.else
|
|
CONFIGURE_ARGS+=--disable-debug
|
|
.endif
|
|
|
|
.if defined(WITH_DEMO)
|
|
CONFIGURE_ARGS+=--enable-apps
|
|
PLIST_SUB+= DEMO=""
|
|
.else
|
|
CONFIGURE_ARGS+=--disable-apps
|
|
PLIST_SUB+= DEMO="@comment "
|
|
.endif
|
|
|
|
.if ${ARCH} == "sparc64"
|
|
BROKEN= Does not compile
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|