bb89f80c35
- Normalize the ImageMagick library name so it stays the same regardless of what the 16-bit and HDRI option are set to [1]. Teach cmake to look for the new name. Bump ports that link to the libraries due to this. - As a result do away with the "HALFSUPPORTED" option block, and list 16-bit and HDRI with the other options. - ImageMagick ships a basic SVG plugin when not using librsvg2 for SVG support. This basic SVG plugin needs libxml2 to work [2]. Make libxml2 a mandatory dependency (instead of only when the SVG option was selected). - Don't touch .keep files in the modules directory, there files there so it useless. PR: 194949 [1] PR: 195227 [2] Requested by: many [1] Submitted by: software-freebsd@interfasys.ch [2]
67 lines
1.7 KiB
Makefile
67 lines
1.7 KiB
Makefile
# Created by: Oliver Heesakkers <dev2@heesakkers.info>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= zbar
|
|
PORTVERSION= 0.10
|
|
PORTREVISION= 7
|
|
CATEGORIES= graphics
|
|
MASTER_SITES= SF
|
|
|
|
MAINTAINER= dev2@heesakkers.info
|
|
COMMENT= ZBar barcode reader
|
|
|
|
LICENSE= LGPL21
|
|
|
|
LIB_DEPENDS= libjpeg.so:${PORTSDIR}/graphics/jpeg
|
|
|
|
GNU_CONFIGURE= yes
|
|
USE_LDCONFIG= yes
|
|
USES= iconv libtool gmake pkgconfig
|
|
|
|
CONFIGURE_ARGS= --with-jpeg=yes
|
|
|
|
OPTIONS_DEFINE= X11 IMAGEMAGICK V4L PYTHON GTK2 QT4 DOCS
|
|
OPTIONS_DEFAULT=X11 IMAGEMAGICK
|
|
OPTIONS_SUB= yes
|
|
V4L_DESC= Build zbarcam video scanner
|
|
|
|
X11_USE= XORG=ice,sm,x11,xau,xcb,xdmcp,xext,xv
|
|
X11_CONFIGURE_ON= --with-x=yes
|
|
X11_CONFIGURE_OFF= --with-x=no --without-xshm --without-xv
|
|
|
|
IMAGEMAGICK_LIB_DEPENDS= libMagick++-6.so:${PORTSDIR}/graphics/ImageMagick
|
|
IMAGEMAGICK_CONFIGURE_ON= --with-imagemagick=yes
|
|
IMAGEMAGICK_CONFIGURE_OFF= --with-imagemagick=no
|
|
|
|
V4L_BUILD_DEPENDS= v4l_compat>=1.0.20101027:${PORTSDIR}/multimedia/v4l_compat
|
|
V4L_CONFIGURE_ON= --enable-video=yes
|
|
V4L_CONFIGURE_OFF= --enable-video=no
|
|
|
|
PYTHON_USE= GNOME=pygtk2
|
|
PYTHON_USES= python:2
|
|
PYTHON_CONFIGURE_ON= --with-python=yes
|
|
PYTHON_CONFIGURE_OFF= --with-python=no
|
|
|
|
GTK2_USE= GNOME=gtk20
|
|
GTK2_CONFIGURE_ON= --with-gtk=yes
|
|
GTK2_CONFIGURE_OFF= --with-gtk=no
|
|
|
|
QT4_USE= QT4=gui,moc_build
|
|
QT4_CONFIGURE_ON= --with-qt=yes
|
|
QT4_CONFIGURE_OFF= --with-qt=no
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} 's|-lpthread|${PTHREAD_LIBS}|' ${WRKSRC}/configure
|
|
@${REINPLACE_CMD} 's|^pkgconfigdir = .*|pkgconfigdir = ${PREFIX}/libdata/pkgconfig|' \
|
|
${WRKSRC}/Makefile.in
|
|
.if empty(PORT_OPTIONS:MDOCS)
|
|
@${REINPLACE_CMD} '/^install-data-am: /s/install-dist_docDATA//' \
|
|
${WRKSRC}/Makefile.in
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|