aboutsummaryrefslogtreecommitdiff
path: root/graphics/zbar
diff options
context:
space:
mode:
authorAlex Kozlov <ak@FreeBSD.org>2012-10-07 10:23:23 +0000
committerAlex Kozlov <ak@FreeBSD.org>2012-10-07 10:23:23 +0000
commit032814410f718bbb8d809a6a090117718d777215 (patch)
tree4e5662f8e7cd4faec7d300124a9510fc0f148d3c /graphics/zbar
parent973cc23070f73583f0623eb72e8e973360b864c8 (diff)
downloadports-032814410f718bbb8d809a6a090117718d777215.tar.gz
ports-032814410f718bbb8d809a6a090117718d777215.zip
Notes
Diffstat (limited to 'graphics/zbar')
-rw-r--r--graphics/zbar/Makefile37
1 files changed, 15 insertions, 22 deletions
diff --git a/graphics/zbar/Makefile b/graphics/zbar/Makefile
index a5e675a9a4ba..bee611f7e4ae 100644
--- a/graphics/zbar/Makefile
+++ b/graphics/zbar/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: zbar
-# Date created: 12 november 2010
-# Whom: Oliver Heesakkers <dev2@heesakkers.info>
-#
# $FreeBSD$
-#
+# Created by: Oliver Heesakkers <dev2@heesakkers.info>
PORTNAME= zbar
PORTVERSION= 0.10
@@ -21,32 +17,29 @@ USE_GMAKE= yes
USE_LDCONFIG= yes
USE_ICONV= yes
-OPTIONS= X11 "Build with X support" on \
- IMAGEMAGICK "ImageMagick graphics support" on \
- V4L "Build zbarcam video scanner" off \
- PYTHON "Build PyGTK widget" off \
- GTK2 "Build GTK+2 widget" off \
- QT4 "Build Qt4 widget" off
+OPTIONS_DEFINE= X11 IMAGEMAGICK V4L PYTHON GTK2 QT4
+OPTIONS_DEFAULT= X11 IMAGEMAGICK
+V4L_DESC= Build zbarcam video scanner
.include <bsd.port.options.mk>
.if exists(${LOCALBASE}/lib/libjpeg.so)
CONFIGURE_ARGS+= --with-jpeg=yes
-LIB_DEPENDS+= jpeg.11:${PORTSDIR}/graphics/jpeg
+LIB_DEPENDS+= jpeg:${PORTSDIR}/graphics/jpeg
.else
CONFIGURE_ARGS+= --with-jpeg=no
.endif
-.if defined(WITH_X11)
+.if ${PORT_OPTIONS:MX11}
USE_XORG= ice sm x11 xau xdmcp xext xv
-LIB_DEPENDS+= xcb.2:${PORTSDIR}/x11/libxcb
+LIB_DEPENDS+= xcb:${PORTSDIR}/x11/libxcb
CONFIGURE_ARGS+= --with-x=yes
.else
CONFIGURE_ARGS+= --with-x=no --without-xshm --without-xv
.endif
-.if defined(WITH_IMAGEMAGICK)
-LIB_DEPENDS+= Magick++.5:${PORTSDIR}/graphics/ImageMagick
+.if ${PORT_OPTIONS:MIMAGEMAGICK}
+LIB_DEPENDS+= Magick++:${PORTSDIR}/graphics/ImageMagick
CONFIGURE_ARGS+= --with-imagemagick=yes
PLIST_SUB+= IMAGEMAGICK=""
MAN1= zbarimg.1
@@ -55,7 +48,7 @@ CONFIGURE_ARGS+= --with-imagemagick=no
PLIST_SUB+= IMAGEMAGICK="@comment "
.endif
-.if defined(WITH_V4L)
+.if ${PORT_OPTIONS:MV4L}
BUILD_DEPENDS+= v4l_compat>=1.0.20101027:${PORTSDIR}/multimedia/v4l_compat
CONFIGURE_ARGS+= --enable-video=yes
PLIST_SUB+= V4L=""
@@ -65,7 +58,7 @@ CONFIGURE_ARGS+= --enable-video=no
PLIST_SUB+= V4L="@comment "
.endif
-.if defined(WITH_PYTHON)
+.if ${PORT_OPTIONS:MPYTHON}
USE_PYTHON= 2.5-2.7
USE_GNOME+= pygtk2
CONFIGURE_ARGS+= --with-python=yes
@@ -75,7 +68,7 @@ CONFIGURE_ARGS+= --with-python=no
PLIST_SUB+= PYTHON="@comment "
.endif
-.if defined(WITH_GTK2)
+.if ${PORT_OPTIONS:MGTK2}
USE_GNOME+= gtk20
CONFIGURE_ARGS+= --with-gtk=yes
PLIST_SUB+= GTK2=""
@@ -84,7 +77,7 @@ CONFIGURE_ARGS+= --with-gtk=no
PLIST_SUB+= GTK2="@comment "
.endif
-.if defined(WITH_QT4)
+.if ${PORT_OPTIONS:MQT4}
USE_QT4= gui moc_build
CONFIGURE_ARGS+= --with-qt=yes
PLIST_SUB+= QT4=""
@@ -97,9 +90,9 @@ LDFLAGS+= -L${LOCALBASE}/lib
post-patch:
@${REINPLACE_CMD} 's|-lpthread|${PTHREAD_LIBS}|' ${WRKSRC}/configure
- @${REINPLACE_CMD} 's|^pkgconfigdir = .*|pkgconfigdir = $$(prefix)/libdata/pkgconfig|' \
+ @${REINPLACE_CMD} 's|^pkgconfigdir = .*|pkgconfigdir = ${PREFIX}/libdata/pkgconfig|' \
${WRKSRC}/Makefile.in
-.if defined(NOPORTDOCS)
+.if empty(PORT_OPTIONS:MDOCS)
@${REINPLACE_CMD} '/^install-data-am: /s/install-dist_docDATA//' \
${WRKSRC}/Makefile.in
.endif