diff options
author | pav <pav@FreeBSD.org> | 2009-06-24 17:22:25 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2009-06-24 17:22:25 +0800 |
commit | c1b10e892bbee5dd191e7728cdc548b5a5d4249c (patch) | |
tree | d345bcdd4f2f9cf0d25bfab3e6dfe21ae7f5f377 /sysutils/usbhotkey | |
parent | a50ec458c98a9b7e876293a3d9a0f6099098d1bf (diff) | |
download | freebsd-ports-gnome-c1b10e892bbee5dd191e7728cdc548b5a5d4249c.tar.gz freebsd-ports-gnome-c1b10e892bbee5dd191e7728cdc548b5a5d4249c.tar.zst freebsd-ports-gnome-c1b10e892bbee5dd191e7728cdc548b5a5d4249c.zip |
- Fix build with new ruby
Submitted by: Nikos Ntarmos <ntarmos@cs.uoi.gr> (maintainer)
Diffstat (limited to 'sysutils/usbhotkey')
-rw-r--r-- | sysutils/usbhotkey/Makefile | 12 |
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 |