a8693b8dee
rely on gcc. The patch uses the new USE_GCC=any code in Mk/bsd.gcc.mk to accomplish this. The ports chosen were ports that blocked 2 or more ports from building with clang. (There are several hundred other ports that still fail to build with clang, even with this patch. This is merely one step along the way.) Those interested in fixing these ports with clang, and have clang as their default compiler, can simply set FORCE_BASE_CC_FOR_TESTING=yes. For those who have gcc as their default compiler, this change is believed to cause no change. Hat: portmgr Tested with: multiple runs on amd64-8-exp-bcm and 9-exp-clang, with various combinations of patch/no-patch and flag settings.
63 lines
1.5 KiB
Makefile
63 lines
1.5 KiB
Makefile
# New ports collection makefile for: iulib
|
|
# Date created: 2009-05-20
|
|
# Whom: Hiroto Kagotani <hiroto.kagotani@gmail.com>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= iulib
|
|
PORTVERSION= 0.4
|
|
PORTREVISION= 11
|
|
CATEGORIES= graphics
|
|
MASTER_SITES= GOOGLE_CODE
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= hiroto.kagotani@gmail.com
|
|
COMMENT= A library of image understanding-related algorithms
|
|
|
|
LIB_DEPENDS= png15:${PORTSDIR}/graphics/png \
|
|
jpeg.11:${PORTSDIR}/graphics/jpeg \
|
|
tiff.4:${PORTSDIR}/graphics/tiff
|
|
|
|
OPTIONS= SDL "Enable SDL for graphical debugging" off \
|
|
VIDIO "Enable Video Input/Output (using ffmpeg)" off
|
|
|
|
MAKE_JOBS_SAFE= yes
|
|
USE_GCC= any
|
|
USE_PYTHON_BUILD= yes
|
|
USE_AUTOTOOLS= libtool aclocal automake autoconf
|
|
ACLOCAL_ARGS= --acdir=${ACLOCAL_DIR} -I${LOCALBASE}/share/aclocal
|
|
AUTOMAKE_ARGS= --add-missing
|
|
USE_LDCONFIG= yes
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if !defined(WITH_SDL)
|
|
CONFIGURE_ARGS+=--without-SDL
|
|
PLIST_SUB+= SDL="@comment "
|
|
.else
|
|
USE_SDL= sdl gfx
|
|
PLIST_SUB+= SDL=""
|
|
.endif
|
|
|
|
.if defined(WITH_VIDIO)
|
|
LIB_DEPENDS+= avcodec.1:${PORTSDIR}/multimedia/ffmpeg
|
|
.endif
|
|
|
|
post-patch:
|
|
.if !defined(WITH_VIDIO)
|
|
@${REINPLACE_CMD} -e 's/novidio, 0/novidio, 1/' ${WRKSRC}/configure.ac
|
|
.endif
|
|
@${REINPLACE_CMD} -e 's/nov4l2, 0/nov4l2, 1/' ${WRKSRC}/configure.ac
|
|
|
|
pre-configure:
|
|
@(cd ${CONFIGURE_WRKSRC} \
|
|
&& ${SETENV} ${PYTHON_CMD} genAM.py >Makefile.am \
|
|
&& ${SETENV} ${AUTOTOOLS_ENV} ${LIBTOOLIZE} --automake)
|
|
|
|
run-autotools: run-autotools-aclocal run-autotools-automake run-autotools-autoconf
|
|
|
|
.include <bsd.port.post.mk>
|