Index: comms/gnokii/Makefile =================================================================== RCS file: /home/ncvs/ports/comms/gnokii/Makefile,v retrieving revision 1.62 diff -u -r1.62 Makefile --- comms/gnokii/Makefile 16 Feb 2008 16:36:58 -0000 1.62 +++ comms/gnokii/Makefile 7 Mar 2008 13:57:11 -0000 @@ -42,7 +42,7 @@ .include -.if exists(${LOCALBASE}/lib/libical.so.0) +.if exists(${LOCALBASE}/lib/libical.so) WITH_ICAL= yes .endif @@ -50,8 +50,12 @@ 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+= --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 @@ .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