aboutsummaryrefslogtreecommitdiff
path: root/sysutils/usbhotkey
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2009-06-24 09:22:25 +0000
committerPav Lucistnik <pav@FreeBSD.org>2009-06-24 09:22:25 +0000
commit5629ae3227f64d1eb85a27cb7b80a1dffe040a27 (patch)
tree13ab05d9df84501fcacba0d53a0b0729430cf358 /sysutils/usbhotkey
parent9ad2d07ef78aaefbe943b9ec029fc4ca8d7ca0d9 (diff)
downloadports-5629ae3227f64d1eb85a27cb7b80a1dffe040a27.tar.gz
ports-5629ae3227f64d1eb85a27cb7b80a1dffe040a27.zip
Notes
Diffstat (limited to 'sysutils/usbhotkey')
-rw-r--r--sysutils/usbhotkey/Makefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/sysutils/usbhotkey/Makefile b/sysutils/usbhotkey/Makefile
index 89023e413541..df9703c02d55 100644
--- a/sysutils/usbhotkey/Makefile
+++ b/sysutils/usbhotkey/Makefile
@@ -7,7 +7,7 @@
PORTNAME= usbhotkey
PORTVERSION= 0.3.1
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= sysutils
MASTER_SITES= SF/usbhotkey
@@ -22,11 +22,17 @@ OPTIONS= GUI "Enable GUI bits (Imlib dependency)" on
USE_RUBY= yes
USE_GMAKE= yes
HAS_CONFIGURE= yes
-CONFIGURE_ENV+= CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
- LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
.include <bsd.port.pre.mk>
+.if !defined(WITHOUT_PTHREADS)
+CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS} ${PTHREAD_CFLAGS} -I${LOCALBASE}/include" \
+ LDFLAGS="${LDFLAGS} ${PTHREAD_LIBS} -L${LOCALBASE}/lib"
+.else
+CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
+ LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
+.endif
+
.if !defined(WITHOUT_GUI)
LIB_DEPENDS+= Imlib.5:${PORTSDIR}/graphics/imlib
.else