aboutsummaryrefslogtreecommitdiffstats
path: root/comms/gnokii
diff options
context:
space:
mode:
authorrafan <rafan@FreeBSD.org>2008-03-16 17:11:50 +0800
committerrafan <rafan@FreeBSD.org>2008-03-16 17:11:50 +0800
commitb8dc3c56f69253f7d1a91c4f23bede759c5c7f9b (patch)
treec5fcac8a4aabe7678d88c8324967a04fa885e3f4 /comms/gnokii
parentfdc7bb901c2aa76ca43c0b4e002040a24c5ae2de (diff)
downloadfreebsd-ports-gnome-b8dc3c56f69253f7d1a91c4f23bede759c5c7f9b.tar.gz
freebsd-ports-gnome-b8dc3c56f69253f7d1a91c4f23bede759c5c7f9b.tar.zst
freebsd-ports-gnome-b8dc3c56f69253f7d1a91c4f23bede759c5c7f9b.zip
- Fix automatic dependencies
PR: ports/121687 Submitted by: Scot Hetzel <swhetzel at gmail.com> Approved by: Guido Falsi <mad at madpilot.net> (maintainer)
Diffstat (limited to 'comms/gnokii')
-rw-r--r--comms/gnokii/Makefile20
1 files changed, 16 insertions, 4 deletions
diff --git a/comms/gnokii/Makefile b/comms/gnokii/Makefile
index 5c409a0ffc96..d3d4e419f91a 100644
--- a/comms/gnokii/Makefile
+++ b/comms/gnokii/Makefile
@@ -42,7 +42,7 @@ WANT_GNOME= yes
.include <bsd.port.pre.mk>
-.if exists(${LOCALBASE}/lib/libical.so.0)
+.if exists(${LOCALBASE}/lib/libical.so)
WITH_ICAL= yes
.endif
@@ -50,8 +50,12 @@ WITH_ICAL= yes
WITH_USB= yes
.endif
+.if exists(${LOCALBASE}/lib/libpcsclite.so) && !defined(WITHOUT_PCSC)
+WITH_PCSC= yes
+.endif
+
.if defined(WITH_ICAL)
-LIB_DEPENDS+= ical.0:${PORTSDIR}/devel/libical
+LIB_DEPENDS+= ical.27:${PORTSDIR}/devel/libical
.endif
.if defined(WITH_USB)
@@ -62,6 +66,14 @@ CONFIGURE_ARGS+= --enable-libusb
CONFIGURE_ARGS+= --disable-libusb
.endif
+.if defined(WITH_PCSC)
+LIB_DEPENDS+= pcsclite.1:${PORTSDIR}/devel/pcsc-lite
+
+CONFIGURE_ARGS+= --enable-libpcsclite
+.else
+CONFIGURE_ARGS+= --disable-libpcsclite
+.endif
+
# If smsd is enabled check if MySQL or PostgreSQL are installed and
# build the modules, no switches to make this port build those, if
# you want them, just install them before this port. The port will
@@ -73,14 +85,14 @@ PLIST_SUB+= MSM='@comment '
.else
PLIST_SUB+= SMSD=''
MAN8+= smsd.8
-.if exists(${LOCALBASE}/lib/mysql/libmysqlclient.so)
+.if exists(${LOCALBASE}/lib/mysql/libmysqlclient.so) && !defined(WITHOUT_MYSQL)
USE_MYSQL= yes
PLIST_SUB+= MSM=''
WITH_MYSQL= yes
.else
PLIST_SUB+= MSM='@comment '
.endif
-.if exists(${LOCALBASE}/bin/psql)
+.if exists(${LOCALBASE}/bin/psql) && !defined(WITHOUT_PGSQL)
USE_PGSQL= yes
PLIST_SUB+= PGM=''
WITH_PGSQL= yes