summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorPietro Cerutti <gahr@FreeBSD.org>2013-02-28 10:51:58 +0000
committerPietro Cerutti <gahr@FreeBSD.org>2013-02-28 10:51:58 +0000
commit100d65b37a9bddd5f4aa468bbef3ac27a9d8d5d9 (patch)
treeae18db5e53b8dc7dbd4ce8e2d3f0eec05e53d1f4 /sysutils
parent- Fix crash (diff)
- Get rid of PTHREAD_CFLAGS and PTHREAD_LIBS (category: sysutils)
Approved by: portmgr
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/afflib/Makefile2
-rw-r--r--sysutils/bacula-server/Makefile2
-rw-r--r--sysutils/cfengine22/Makefile7
-rw-r--r--sysutils/dircomp/Makefile2
-rw-r--r--sysutils/dvd+rw-tools/Makefile7
-rw-r--r--sysutils/filelight/Makefile3
-rw-r--r--sysutils/fusefs-funionfs/Makefile4
-rw-r--r--sysutils/fusefs-fur/Makefile4
-rw-r--r--sysutils/fusefs-fusexmp_fh/Makefile5
-rw-r--r--sysutils/fusefs-gunzip/Makefile2
-rw-r--r--sysutils/fusefs-ifuse/Makefile1
-rw-r--r--sysutils/fusefs-libs/Makefile9
-rw-r--r--sysutils/fusefs-smbnetfs/Makefile2
-rw-r--r--sysutils/fusefs-sqlfs/Makefile4
-rw-r--r--sysutils/fusefs-sshfs/Makefile1
-rw-r--r--sysutils/fusefs-unionfs/Makefile2
-rw-r--r--sysutils/gcombust/Makefile6
-rw-r--r--sysutils/graveman/Makefile4
-rw-r--r--sysutils/gupsc/Makefile3
-rw-r--r--sysutils/hourglass/Makefile10
-rw-r--r--sysutils/hourglass/files/patch-configure4
-rw-r--r--sysutils/iextract/Makefile2
-rw-r--r--sysutils/isomaster/Makefile8
-rw-r--r--sysutils/kcpuload/Makefile3
-rw-r--r--sysutils/klineakconfig/Makefile2
-rw-r--r--sysutils/komparator/Makefile3
-rw-r--r--sysutils/lineak-defaultplugin/Makefile4
-rw-r--r--sysutils/lineak-kdeplugins/Makefile4
-rw-r--r--sysutils/lineak-xosdplugin/Makefile4
-rw-r--r--sysutils/lineakd/Makefile6
-rw-r--r--sysutils/lineakd/files/patch-lineakd__Makefile.in6
-rw-r--r--sysutils/npadmin/Makefile3
-rw-r--r--sysutils/openipmi/files/patch-OpenIPMIpthread.pc.in7
-rw-r--r--sysutils/pwg/Makefile3
-rw-r--r--sysutils/respond/Makefile3
-rw-r--r--sysutils/rsyslog5/Makefile1
-rw-r--r--sysutils/rsyslog6-devel/Makefile1
-rw-r--r--sysutils/rsyslog6/Makefile1
-rw-r--r--sysutils/rsyslog7/Makefile1
-rw-r--r--sysutils/synergy-devel/Makefile3
-rw-r--r--sysutils/synergy-devel/files/patch-src-cmd-usynergy_uSynergyUnix.c11
-rw-r--r--sysutils/synergy/Makefile2
-rw-r--r--sysutils/tracker-client/Makefile2
-rw-r--r--sysutils/udfclient/Makefile2
-rw-r--r--sysutils/uhidd/Makefile1
-rw-r--r--sysutils/usbhotkey/Makefile7
-rw-r--r--sysutils/xfsprogs/Makefile2
-rw-r--r--sysutils/xfsprogs/files/patch-io_fadvise.c11
-rw-r--r--sysutils/xorriso/Makefile3
-rw-r--r--sysutils/xvidcap/Makefile1
50 files changed, 75 insertions, 116 deletions
diff --git a/sysutils/afflib/Makefile b/sysutils/afflib/Makefile
index 2f7796c878b5..e1531b9d9855 100644
--- a/sysutils/afflib/Makefile
+++ b/sysutils/afflib/Makefile
@@ -30,8 +30,6 @@ USE_GNOME= gnomehack
USE_AUTOTOOLS= autoconf
CONFIGURE_ARGS= --enable-s3=yes --libdir=${PREFIX}
CPPFLAGS+= -DFUSE_USE_VERSION=26
-LDFLAGS+= ${PTHREAD_LIBS}
-CFLAGS+= ${PTHREAD_LIBS}
MAKE_JOBS_SAFE= yes
MAN1= affcat.1
diff --git a/sysutils/bacula-server/Makefile b/sysutils/bacula-server/Makefile
index 789ee1abbc32..1fe598b2c782 100644
--- a/sysutils/bacula-server/Makefile
+++ b/sysutils/bacula-server/Makefile
@@ -22,8 +22,6 @@ PLIST_SUB+= MAJOR=${PORTVERSION:R:R}
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
-CONFIGURE_ENV+= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
- PTHREAD_LIBS="${PTHREAD_LIBS}"
CPPFLAGS+= -I/usr/include/readline -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
diff --git a/sysutils/cfengine22/Makefile b/sysutils/cfengine22/Makefile
index 7ed529af543c..a3f9aadc30fd 100644
--- a/sysutils/cfengine22/Makefile
+++ b/sysutils/cfengine22/Makefile
@@ -28,8 +28,7 @@ GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-docs \
--docdir=${DOCSDIR} \
--htmldir=${DOCSDIR}/html
-CONFIGURE_ENV+= PTHREAD_CFLAGS=${PTHREAD_CFLAGS} PTHREAD_LIBS=${PTHREAD_LIBS} \
- BERKELEY_DB_CFLAGS=-I${BDB_INCLUDE_DIR} \
+CONFIGURE_ENV+= BERKELEY_DB_CFLAGS=-I${BDB_INCLUDE_DIR} \
BERKELEY_DB_LDFLAGS=-L${BDB_LIB_DIR} \
BERKELEY_DB_LIB=-l${BDB_LIB_NAME}
.if !defined(NOPORTDOCS)
@@ -42,10 +41,6 @@ MAN8= cfagent.8 cfengine.8 cfenvd.8 cfenvgraph.8 cfetoolcheck.8 \
cfrun.8 cfservd.8 cfshow.8
post-patch:
- @${REINPLACE_CMD} -e s,-pthread,${PTHREAD_CFLAGS},g \
- -e s,-lpthread,${PTHREAD_LIBS},g \
- -e s,lpthread,${PTHREAD_LIBS},g \
- ${WRKSRC}/configure
@${REINPLACE_CMD} -e '/^docdir/s!=.*!= @docdir@!'\
${WRKSRC}/doc/Makefile.in \
${WRKSRC}/Makefile.in
diff --git a/sysutils/dircomp/Makefile b/sysutils/dircomp/Makefile
index ed2f9199c62a..66b1e749bf68 100644
--- a/sysutils/dircomp/Makefile
+++ b/sysutils/dircomp/Makefile
@@ -24,8 +24,6 @@ LIB_DEPENDS+= YGP.0:${PORTSDIR}/devel/libYGP
GNU_CONFIGURE= yes
USE_GETTEXT= yes
-LDFLAGS+= ${PTHREAD_LIBS}
-CFLAGS+= ${PTHREAD_CFLAGS}
CONFIGURE_ARGS= --with-libintl-prefix=${LOCALBASE} --disable-rpath
PLIST_FILES+= bin/DirComp \
share/locale/de/LC_MESSAGES/DirComp.mo \
diff --git a/sysutils/dvd+rw-tools/Makefile b/sysutils/dvd+rw-tools/Makefile
index 2f1877fbbd7b..17addb5fbde1 100644
--- a/sysutils/dvd+rw-tools/Makefile
+++ b/sysutils/dvd+rw-tools/Makefile
@@ -29,12 +29,7 @@ PLIST_FILES= ${BIN_FILES:S|^|bin/|}
PORTDOCS= index.html
post-patch:
- @${REINPLACE_CMD} -E \
- -e 's/-D_THREAS_SAFE/-D_THREAD_SAFE/' \
- -e 's/-D_THREAD_SAFE/-D_THREAD_SAFE ${PTHREAD_CFLAGS}/' \
- -e 's/-pthread/${PTHREAD_LIBS}/' \
- -e 's/-O2//' \
- ${WRKSRC}/Makefile.m4
+ @${REINPLACE_CMD} -e 's/-O2//' ${WRKSRC}/Makefile.m4
do-install:
.for i in ${BIN_FILES}
diff --git a/sysutils/filelight/Makefile b/sysutils/filelight/Makefile
index ad492d5e1e59..12c25b18fe44 100644
--- a/sysutils/filelight/Makefile
+++ b/sysutils/filelight/Makefile
@@ -17,7 +17,6 @@ USE_GMAKE= yes
USE_GETTEXT= yes
post-patch:
- @${REINPLACE_CMD} -e 's/-O2//g; s/-lpthread/${PTHREAD_LIBS}/g' \
- ${WRKSRC}/${CONFIGURE_SCRIPT}
+ @${REINPLACE_CMD} -e 's/-O2//g' ${WRKSRC}/${CONFIGURE_SCRIPT}
.include <bsd.port.mk>
diff --git a/sysutils/fusefs-funionfs/Makefile b/sysutils/fusefs-funionfs/Makefile
index 56d00947918e..a023cc52f045 100644
--- a/sysutils/fusefs-funionfs/Makefile
+++ b/sysutils/fusefs-funionfs/Makefile
@@ -14,8 +14,8 @@ PKGNAMEPREFIX= fusefs-
MAINTAINER= ports@FreeBSD.org
COMMENT= Union filesystem for the FUSE driver
-LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
-CFLAGS+= ${PTHREAD_CFLAGS} -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib
+CFLAGS+= -I${LOCALBASE}/include
GNU_CONFIGURE= yes
USE_FUSE= yes
diff --git a/sysutils/fusefs-fur/Makefile b/sysutils/fusefs-fur/Makefile
index f370e506b386..9bf9eb69f48d 100644
--- a/sysutils/fusefs-fur/Makefile
+++ b/sysutils/fusefs-fur/Makefile
@@ -24,8 +24,8 @@ USE_FUSE= yes
USE_GMAKE= yes
USE_ICONV= yes
USE_PKGCONFIG= build
-LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
-CFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS} -DFUSE_USE_VERSION=26
+LDFLAGS+= -L${LOCALBASE}/lib
+CFLAGS+= -I${LOCALBASE}/include -DFUSE_USE_VERSION=26
PLIST_FILES= bin/${PORTNAME}
diff --git a/sysutils/fusefs-fusexmp_fh/Makefile b/sysutils/fusefs-fusexmp_fh/Makefile
index ad34340cd95b..b018cebc40b9 100644
--- a/sysutils/fusefs-fusexmp_fh/Makefile
+++ b/sysutils/fusefs-fusexmp_fh/Makefile
@@ -27,11 +27,6 @@ CONFIGURE_ARGS= --disable-kernel-module --prefix=${PREFIX} \
PLIST_FILES= bin/${PORTNAME}
-post-patch:
- ${REINPLACE_CMD} -e 's,-lpthread,${PTHREAD_LIBS},' \
- ${WRKSRC}/lib/Makefile.in \
- ${WRKSRC}/example/Makefile.in
-
do-build:
cd ${WRKSRC}/lib \
&& ${MAKE}
diff --git a/sysutils/fusefs-gunzip/Makefile b/sysutils/fusefs-gunzip/Makefile
index 38c92b3ccf0e..907388715828 100644
--- a/sysutils/fusefs-gunzip/Makefile
+++ b/sysutils/fusefs-gunzip/Makefile
@@ -24,7 +24,7 @@ do-build:
(cd ${WRKSRC} && \
${CC} ${CFLAGS} -I${LOCALBASE}/include -I${LOCALBASE}/include/fuse \
-D_FILE_OFFSET_BITS=64 \
- -o fuse.gunzip fuse.gunzip.c -L${LOCALBASE}/lib ${PTHREAD_LIBS} \
+ -o fuse.gunzip fuse.gunzip.c -L${LOCALBASE}/lib \
-lulockmgr -lz -lfuse -liconv -lm)
do-install:
diff --git a/sysutils/fusefs-ifuse/Makefile b/sysutils/fusefs-ifuse/Makefile
index 515865e5cc6a..31e954e30a8c 100644
--- a/sysutils/fusefs-ifuse/Makefile
+++ b/sysutils/fusefs-ifuse/Makefile
@@ -30,7 +30,6 @@ GNU_CONFIGURE= yes
LDFLAGS+= -L${LOCALBASE}/lib
MAKE_JOBS_SAFE= yes
CFLAGS+= -I${LOCALBASE}/include
-CFLAGS+= ${PTHREAD_CFLAGS}
PLIST_FILES= bin/${PORTNAME}
diff --git a/sysutils/fusefs-libs/Makefile b/sysutils/fusefs-libs/Makefile
index 59817d1725b2..36f7435a424a 100644
--- a/sysutils/fusefs-libs/Makefile
+++ b/sysutils/fusefs-libs/Makefile
@@ -13,7 +13,6 @@ COMMENT= FUSE allows filesystem implementation in userspace
GNU_CONFIGURE= yes
CONFIGURE_ENV= MOUNT_FUSE_PATH=${PREFIX}/sbin
-CFLAGS+= ${PTHREAD_CFLAGS}
USE_LDCONFIG= yes
USE_PKGCONFIG= yes
USE_ICONV= yes
@@ -22,14 +21,6 @@ CONFIGURE_ARGS= --prefix=${PREFIX} \
TXT_DOCS= how-fuse-works \
kernel.txt
-post-patch:
- ${REINPLACE_CMD} -e 's,-lpthread,${PTHREAD_LIBS},' \
- -e 's,-D_FILE_OFFSET_BITS=64,-D_FILE_OFFSET_BITS=64 ${PTHREAD_CFLAGS},' \
- ${WRKSRC}/fuse.pc.in
- ${REINPLACE_CMD} -e 's,-lpthread,${PTHREAD_LIBS},' \
- ${WRKSRC}/lib/Makefile.in \
- ${WRKSRC}/example/Makefile.in
-
post-install:
${INSTALL_DATA} ${WRKSRC}/include/fuse_kernel.h ${PREFIX}/include/fuse
diff --git a/sysutils/fusefs-smbnetfs/Makefile b/sysutils/fusefs-smbnetfs/Makefile
index f380df071aa6..691651795ff9 100644
--- a/sysutils/fusefs-smbnetfs/Makefile
+++ b/sysutils/fusefs-smbnetfs/Makefile
@@ -22,7 +22,7 @@ USE_BZIP2= yes
USE_FUSE= yes
GNU_CONFIGURE= yes
-CFLAGS+= ${PTHREAD_CFLAGS} -I${LOCALBASE}/include
+CFLAGS+= -I${LOCALBASE}/include
LDFLAGS= -L${LOCALBASE}/lib
SUB_FILES= pkg-message
diff --git a/sysutils/fusefs-sqlfs/Makefile b/sysutils/fusefs-sqlfs/Makefile
index 0994a1c1037f..9a69e72872db 100644
--- a/sysutils/fusefs-sqlfs/Makefile
+++ b/sysutils/fusefs-sqlfs/Makefile
@@ -33,8 +33,8 @@ do-build:
(cd ${WRKSRC} && ${CC} -DFUSE -DFUSE_USE_VERSION=25 \
-D_FILE_OFFSET_BITS=64 -D_REENTRANT ${CFLAGS} \
-I${LOCALBASE}/include -I. -L${LOCALBASE}/lib \
- -lfuse -lsqlite${SQLITE_VER} ${PTHREAD_CFLAGS} \
- ${PTHREAD_LIBS} sqlfs.c fuse_main.c -o sqlfs)
+ -lfuse -lsqlite${SQLITE_VER} sqlfs.c fuse_main.c \
+ -o sqlfs)
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/sqlfs ${PREFIX}/bin/
diff --git a/sysutils/fusefs-sshfs/Makefile b/sysutils/fusefs-sshfs/Makefile
index e05f49a172a5..d8bdfe446e2d 100644
--- a/sysutils/fusefs-sshfs/Makefile
+++ b/sysutils/fusefs-sshfs/Makefile
@@ -17,7 +17,6 @@ COMMENT= Mount remote directories over ssh
KMODDIR?= ${LOCALBASE}/modules
GNU_CONFIGURE= yes
-CFLAGS+= ${PTHREAD_CFLAGS}
USE_FUSE= yes
USE_GNOME= glib20
diff --git a/sysutils/fusefs-unionfs/Makefile b/sysutils/fusefs-unionfs/Makefile
index 71982c54d3fc..06686a79f89d 100644
--- a/sysutils/fusefs-unionfs/Makefile
+++ b/sysutils/fusefs-unionfs/Makefile
@@ -24,7 +24,7 @@ do-build:
(cd ${WRKSRC}/src && \
${CC} ${CFLAGS} -I${LOCALBASE}/include/fuse \
-D_FILE_OFFSET_BITS=64 -DFUSE_USE_VERSION=26 -U_POSIX_SYNCHRONIZED_IO \
- -o unionfs *.c -L${LOCALBASE}/lib ${PTHREAD_LIBS} -lfuse -lm)
+ -o unionfs *.c -L${LOCALBASE}/lib -pthread -lfuse -lm)
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/unionfs ${PREFIX}/bin
diff --git a/sysutils/gcombust/Makefile b/sysutils/gcombust/Makefile
index 682df048ac54..d1731b7570f0 100644
--- a/sysutils/gcombust/Makefile
+++ b/sysutils/gcombust/Makefile
@@ -29,9 +29,9 @@ CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib"
CPPFLAGS+= -I${LOCALBASE}/include
pre-patch:
- @${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
- s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure
- @${PERL} -pi -e 's|==|=|g' ${WRKSRC}/po/Makefile.in.in
+ @${REINPLACE_CMD} -e 's|DATADIRNAME=lib|DATADIRNAME=share|g' \
+ ${WRKSRC}/configure
+ @${REINPLACE_CMD} -e 's|==|=|g' ${WRKSRC}/po/Makefile.in.in
post-configure:
cd ${WRKSRC}/po && ${MAKE} update-po
diff --git a/sysutils/graveman/Makefile b/sysutils/graveman/Makefile
index 0ad8b593ad88..e21f4e3c06a7 100644
--- a/sysutils/graveman/Makefile
+++ b/sysutils/graveman/Makefile
@@ -24,8 +24,8 @@ GNU_CONFIGURE= yes
USE_CDRTOOLS= yes
USE_PKGCONFIG= build
USE_GNOME= libglade2 intlhack gnomehack gnomeprefix
-CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
-CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
+CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib"
+CPPFLAGS+= -I${LOCALBASE}/include
MAN1= graveman.1
diff --git a/sysutils/gupsc/Makefile b/sysutils/gupsc/Makefile
index fb2fb2d0ceb7..fba2bd9215f5 100644
--- a/sysutils/gupsc/Makefile
+++ b/sysutils/gupsc/Makefile
@@ -23,8 +23,7 @@ CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib"
CPPFLAGS+= -I${LOCALBASE}/include
pre-patch:
- @${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
- s|/usr/local|${PREFIX}|; \
+ @${PERL} -pi -e 's|/usr/local|${PREFIX}|; \
s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure \
${WRKSRC}/src/Makefile.in
diff --git a/sysutils/hourglass/Makefile b/sysutils/hourglass/Makefile
index aedb9557e5ee..48d78a30e5dd 100644
--- a/sysutils/hourglass/Makefile
+++ b/sysutils/hourglass/Makefile
@@ -25,17 +25,19 @@ PORTDOCS= CALIBRATION
.include <bsd.port.pre.mk>
.if defined(WITH_LINUXTHREADS)
-PTHREAD_LIBS= -L${LOCALBASE}/lib -llthread -llgcc_r
-PTHREAD_CFLAGS= -D_THREAD_SAFE -I${LOCALBASE}/include/pthread/linuxthreads
+THREAD_LIBS= -L${LOCALBASE}/lib -llthread -llgcc_r
+THREAD_CFLAGS= -D_THREAD_SAFE -I${LOCALBASE}/include/pthread/linuxthreads
LIB_DEPENDS+= lthread.3:${PORTSDIR}/devel/linuxthreads
+.else
+THREAD_LIBS= -pthread
.endif
post-patch:
@${REINPLACE_CMD} -e 's,%LOCALBASE%,${LOCALBASE},g' \
${WRKSRC}/configure
- @${REINPLACE_CMD} -e 's,%PTHREAD_LIBS%,${PTHREAD_LIBS},g' \
+ @${REINPLACE_CMD} -e 's,%THREAD_LIBS%,${THREAD_LIBS},g' \
${WRKSRC}/configure
- @${REINPLACE_CMD} -e 's,%PTHREAD_CFLAGS%,${PTHREAD_CFLAGS},g' \
+ @${REINPLACE_CMD} -e 's,%THREAD_CFLAGS%,${THREAD_CFLAGS},g' \
${WRKSRC}/configure
post-install:
diff --git a/sysutils/hourglass/files/patch-configure b/sysutils/hourglass/files/patch-configure
index 3a83e19c3822..eec66c760b42 100644
--- a/sysutils/hourglass/files/patch-configure
+++ b/sysutils/hourglass/files/patch-configure
@@ -24,8 +24,8 @@
- CFLAGS='-D_THREAD_SAFE -I/usr/local/include/pthread/linuxthreads' ;
+ CFLAGS_sav=$CFLAGS ;
+ LDFLAGS_sav=$LDFLAGS ;
-+ LDFLAGS="$LDFLAGS_sav %PTHREAD_LIBS%" ;
-+ CFLAGS="$CFLAGS_sav %PTHREAD_CFLAGS%" ;
++ LDFLAGS="$LDFLAGS_sav %THREAD_LIBS%" ;
++ CFLAGS="$CFLAGS_sav %THREAD_CFLAGS%" ;
on_unix='yes' ;
on_windows='no' ;;
*cygwin*)
diff --git a/sysutils/iextract/Makefile b/sysutils/iextract/Makefile
index 2d21e929cae9..059e37b3050b 100644
--- a/sysutils/iextract/Makefile
+++ b/sysutils/iextract/Makefile
@@ -20,8 +20,6 @@ USE_BZIP2= yes
GNU_CONFIGURE= yes
USE_GETTEXT= yes
USE_PKGCONFIG= yes
-LDFLAGS+= ${PTHREAD_LIBS}
-CFLAGS+= ${PTHREAD_CFLAGS}
CONFIGURE_ARGS= --with-libintl-prefix=${LOCALBASE} --disable-rpath
.include <bsd.port.mk>
diff --git a/sysutils/isomaster/Makefile b/sysutils/isomaster/Makefile
index 8766f630b1fb..256c338ff154 100644
--- a/sysutils/isomaster/Makefile
+++ b/sysutils/isomaster/Makefile
@@ -20,10 +20,10 @@ USE_GMAKE= yes
MAKE_ENV= DESKTOPPATH=${DESKTOPDIR}
MAKE_ARGS= CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
-CFLAGS+= -std=c99 ${PTHREAD_CFLAGS} ${PTHREAD_LIBS:S/"//g} \
+CFLAGS+= -std=c99 \
`pkg-config --cflags gtk+-2.0` \
-DICONPATH=\\\"${DATADIR}/icons\\\"
-LDFLAGS+= ${PTHREAD_LIBS} -lcompat
+LDFLAGS+= -lcompat
.if !defined(WITHOUT_NLS)
USE_GETTEXT= yes
@@ -36,6 +36,10 @@ PLIST_SUB+= DESKTOPDIR="${DESKTOPDIR:S,^${PREFIX}/,,}"
MAN1= isomaster.1
+post-patch:
+ ${FIND} ${WRKSRC} -name Makefile | ${XARGS} \
+ ${REINPLACE_CMD} -e 's|CC *=|CC ?=|g'
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/isomaster ${PREFIX}/bin
${MKDIR} ${DATADIR}/icons
diff --git a/sysutils/kcpuload/Makefile b/sysutils/kcpuload/Makefile
index f124d93dff05..a131265a5052 100644
--- a/sysutils/kcpuload/Makefile
+++ b/sysutils/kcpuload/Makefile
@@ -21,7 +21,6 @@ USE_KDELIBS_VER=3
USE_AUTOTOOLS= libtool
post-patch:
- @${REINPLACE_CMD} -e 's|-O2||g' -e 's|-lpthread|${PTHREAD_LIBS}|g' \
- ${WRKSRC}/${CONFIGURE_SCRIPT}
+ @${REINPLACE_CMD} -e 's|-O2||g' ${WRKSRC}/${CONFIGURE_SCRIPT}
.include <bsd.port.mk>
diff --git a/sysutils/klineakconfig/Makefile b/sysutils/klineakconfig/Makefile
index 9d80c6fac454..cadab297aebb 100644
--- a/sysutils/klineakconfig/Makefile
+++ b/sysutils/klineakconfig/Makefile
@@ -27,7 +27,7 @@ USE_AUTOTOOLS= libtool
post-patch:
@${TOUCH} ${WRKSRC}/config.h.in
- @${REINPLACE_CMD} -e 's|-ldl||;s|-O2||g;s|-lpthread|${PTHREAD_LIBS}|g' \
+ @${REINPLACE_CMD} -e 's|-ldl||;s|-O2||g' \
${WRKSRC}/configure
.include <bsd.port.mk>
diff --git a/sysutils/komparator/Makefile b/sysutils/komparator/Makefile
index 37e6cf72f616..2293cac749db 100644
--- a/sysutils/komparator/Makefile
+++ b/sysutils/komparator/Makefile
@@ -23,8 +23,7 @@ INSTALLS_ICONS= yes
DOCSDIR= ${PREFIX}/share/doc/HTML/en/komparator
post-patch:
- ${REINPLACE_CMD} -e 's,-O2,,g ; \
- s,-lpthread,${PTHREAD_LIBS},g' ${WRKSRC}/${CONFIGURE_SCRIPT}
+ ${REINPLACE_CMD} -e 's,-O2,,g' ${WRKSRC}/${CONFIGURE_SCRIPT}
post-configure:
.if defined(NOPORTDOCS)
diff --git a/sysutils/lineak-defaultplugin/Makefile b/sysutils/lineak-defaultplugin/Makefile
index e0f93b270506..9ac30446cf47 100644
--- a/sysutils/lineak-defaultplugin/Makefile
+++ b/sysutils/lineak-defaultplugin/Makefile
@@ -21,8 +21,8 @@ USE_AUTOTOOLS= libtool
GNU_CONFIGURE= yes
USE_XORG= x11 xext xt xtst xfixes
USE_GMAKE= yes
-CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
-LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
+CPPFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ARGS+= --program-prefix=''
MAN1= lineak_defaultplugin.1
diff --git a/sysutils/lineak-kdeplugins/Makefile b/sysutils/lineak-kdeplugins/Makefile
index 429ef9f6f771..b8e576cbdbbc 100644
--- a/sysutils/lineak-kdeplugins/Makefile
+++ b/sysutils/lineak-kdeplugins/Makefile
@@ -23,8 +23,8 @@ EXPIRATION_DATE= 2013-07-01
USE_KDELIBS_VER=3
USE_GMAKE= yes
USE_AUTOTOOLS= libtool
-CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
-LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
+CPPFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ARGS+= --program-prefix=''
MAN1= lineak_kdeplugins.1
diff --git a/sysutils/lineak-xosdplugin/Makefile b/sysutils/lineak-xosdplugin/Makefile
index f353482c941d..49adcfc5438d 100644
--- a/sysutils/lineak-xosdplugin/Makefile
+++ b/sysutils/lineak-xosdplugin/Makefile
@@ -24,8 +24,8 @@ USE_LDCONFIG= yes
MAKE_JOBS_SAFE= yes
CFLAGS+= -fPIC
-CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
-LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
+CPPFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib
MAN1= lineak_xosdplugin.1
PLIST_FILES= lib/lineakd/plugins/xosdplugin.la \
diff --git a/sysutils/lineakd/Makefile b/sysutils/lineakd/Makefile
index 39c78b9092e6..796bcfb76972 100644
--- a/sysutils/lineakd/Makefile
+++ b/sysutils/lineakd/Makefile
@@ -18,8 +18,8 @@ COMMENT= Lineakd is a daemon which enables special keys on internet keyboards
USE_GMAKE= yes
USE_XORG= x11 xext xt
USE_AUTOTOOLS= libtool
-CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
-LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
+CPPFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib
USE_LDCONFIG= yes
CONFIGURE_ARGS+=--program-prefix=''
@@ -30,8 +30,6 @@ MAN1= lineakd.1
#MANCOMPRESSED= yes
post-patch:
- @${REINPLACE_CMD} -e 's|-lpthread||' \
- ${WRKSRC}/lineak/Makefile.in ${WRKSRC}/lineakd/Makefile.in
@${REINPLACE_CMD} -e 's|-ldl||' \
${WRKSRC}/lineak/Makefile.in ${WRKSRC}/lineakd/Makefile.in
@${REINPLACE_CMD} -e 's|-O2||' ${WRKSRC}/configure
diff --git a/sysutils/lineakd/files/patch-lineakd__Makefile.in b/sysutils/lineakd/files/patch-lineakd__Makefile.in
index b8626a732f0e..f23d93321a99 100644
--- a/sysutils/lineakd/files/patch-lineakd__Makefile.in
+++ b/sysutils/lineakd/files/patch-lineakd__Makefile.in
@@ -1,11 +1,11 @@
---- lineakd/Makefile.in.orig Wed May 24 17:26:52 2006
-+++ lineakd/Makefile.in Mon Jun 5 17:07:33 2006
+--- lineakd/Makefile.in.orig 2006-05-24 17:26:52.000000000 +0200
++++ lineakd/Makefile.in 2013-02-18 16:29:24.000000000 +0100
@@ -239,9 +239,9 @@
unsermake_enable_pch_FALSE = @unsermake_enable_pch_FALSE@
unsermake_enable_pch_TRUE = @unsermake_enable_pch_TRUE@
lineakd_SOURCES = lineakd_core_functions.cpp cmdprefs.cpp main.cpp
-lineakd_LDADD = -lpthread -llineak -lXext -lX11 -ldl
-+lineakd_LDADD = -llineak -lXext -lX11
++lineakd_LDADD = -lpthread -llineak -lXext -lX11
lineakd_LDFLAGS = -rdynamic -L../lineak $(all_libraries) @X_LIBS@ @X_PRE_LIBS@
-EXTRA_DIST = main.cpp eakprocs.h cmdprefs.cpp cmdprefs.h lineakkb.def lineakd.1.bz2 OLDCODE lineakd_core_functions.h lineakd_core_functions.cpp
+EXTRA_DIST = main.cpp eakprocs.h cmdprefs.cpp cmdprefs.h lineakkb.def lineakd.1.gz OLDCODE lineakd_core_functions.h lineakd_core_functions.cpp
diff --git a/sysutils/npadmin/Makefile b/sysutils/npadmin/Makefile
index 2907e380b734..5dc256f55865 100644
--- a/sysutils/npadmin/Makefile
+++ b/sysutils/npadmin/Makefile
@@ -19,9 +19,6 @@ PLIST_FILES= bin/npadmin
GNU_CONFIGURE= yes
-pre-patch:
- @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
-
pre-configure:
${RM} ${WRKSRC}/getopt.h ${WRKSRC}/getopt1.c
diff --git a/sysutils/openipmi/files/patch-OpenIPMIpthread.pc.in b/sysutils/openipmi/files/patch-OpenIPMIpthread.pc.in
index 0c353c5d0ff9..8408d64a02c9 100644
--- a/sysutils/openipmi/files/patch-OpenIPMIpthread.pc.in
+++ b/sysutils/openipmi/files/patch-OpenIPMIpthread.pc.in
@@ -1,5 +1,5 @@
---- OpenIPMIpthread.pc.in.orig 2012-12-18 16:15:18.000000000 +0000
-+++ OpenIPMIpthread.pc.in 2012-12-18 16:15:29.000000000 +0000
+--- OpenIPMIpthread.pc.in.orig 2005-08-17 05:56:02.000000000 +0200
++++ OpenIPMIpthread.pc.in 2013-02-28 09:55:49.000000000 +0100
@@ -6,6 +6,6 @@
Name: OpenIPMIpthread
Description: Pthread OS handler for OpenIPMI
@@ -7,5 +7,4 @@
-Requires: OpenIPMI pthread
+Requires: OpenIPMI
Libs: -L${libdir} -lOpenIPMIutils -lOpenIPMIpthread
--Cflags: -I${includedir}
-+Cflags: -I${includedir} ${PTHREAD_LIBS}
+ Cflags: -I${includedir}
diff --git a/sysutils/pwg/Makefile b/sysutils/pwg/Makefile
index f44df02e8b51..67e882b93e63 100644
--- a/sysutils/pwg/Makefile
+++ b/sysutils/pwg/Makefile
@@ -24,7 +24,6 @@ USE_AUTOTOOLS= libtool
INSTALLS_ICONS= yes
post-patch:
- @${REINPLACE_CMD} -e 's|-O2||g' -e 's|-lpthread|${PTHREAD_LIBS}|g' \
- ${WRKSRC}/${CONFIGURE_SCRIPT}
+ @${REINPLACE_CMD} -e 's|-O2||g' ${WRKSRC}/${CONFIGURE_SCRIPT}
.include <bsd.port.mk>
diff --git a/sysutils/respond/Makefile b/sysutils/respond/Makefile
index 1cbda3ac6bb4..f93eecbb5e1e 100644
--- a/sysutils/respond/Makefile
+++ b/sysutils/respond/Makefile
@@ -19,7 +19,6 @@ MANCOMPRESSED= maybe
MAKE_ENV+= INSTALL_MAN="${INSTALL_MAN}" \
INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
- MANEXT=${MANEXT} \
- PTHREAD_LIBS="${PTHREAD_LIBS}"
+ MANEXT=${MANEXT}
.include <bsd.port.mk>
diff --git a/sysutils/rsyslog5/Makefile b/sysutils/rsyslog5/Makefile
index b8e8a9b36008..62df117f8d20 100644
--- a/sysutils/rsyslog5/Makefile
+++ b/sysutils/rsyslog5/Makefile
@@ -65,7 +65,6 @@ SUB_FILES= pkg-message
CONFIGURE_ARGS+=--enable-imfile --enable-mail --enable-imtemplate --enable-testbench=no
post-patch:
- @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|/usr/local/lib/rsyslog/|${PREFIX}/lib/rsyslog/|'\
${WRKSRC}/tools/syslogd.c
@${GREP} -rl '/etc/rsyslog.conf' ${WRKSRC}|${XARGS} ${REINPLACE_CMD} -e\
diff --git a/sysutils/rsyslog6-devel/Makefile b/sysutils/rsyslog6-devel/Makefile
index d9586ac63b11..69d0b61fe797 100644
--- a/sysutils/rsyslog6-devel/Makefile
+++ b/sysutils/rsyslog6-devel/Makefile
@@ -66,7 +66,6 @@ SUB_FILES= pkg-message
CONFIGURE_ARGS+= --enable-imfile --enable-mail --enable-imtemplate --enable-testbench=no
post-patch:
- @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|/lib/rsyslog/|${PREFIX}/lib/rsyslog/|'\
${WRKSRC}/tools/syslogd.c
@${GREP} -rl '/etc/rsyslog.conf' ${WRKSRC}|${XARGS} ${REINPLACE_CMD} -e\
diff --git a/sysutils/rsyslog6/Makefile b/sysutils/rsyslog6/Makefile
index fdd0fd9154b4..a8df003ba257 100644
--- a/sysutils/rsyslog6/Makefile
+++ b/sysutils/rsyslog6/Makefile
@@ -67,7 +67,6 @@ SUB_FILES= pkg-message
CONFIGURE_ARGS+= --enable-imfile --enable-mail --enable-imdiag --enable-impstats --enable-omstdout
post-patch:
- @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|/lib/rsyslog/|${PREFIX}/lib/rsyslog/|'\
${WRKSRC}/tools/syslogd.c
@${GREP} -rl '/etc/rsyslog.conf' ${WRKSRC}|${XARGS} ${REINPLACE_CMD} -e\
diff --git a/sysutils/rsyslog7/Makefile b/sysutils/rsyslog7/Makefile
index 5c93d7b1d8b5..6a957dcf1f7c 100644
--- a/sysutils/rsyslog7/Makefile
+++ b/sysutils/rsyslog7/Makefile
@@ -135,7 +135,6 @@ SUB_FILES= pkg-message
CONFIGURE_ARGS+= --enable-imfile --enable-mail --enable-imdiag --enable-impstats --enable-omstdout
post-patch:
- @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|/lib/rsyslog/|${PREFIX}/lib/rsyslog/|'\
${WRKSRC}/tools/syslogd.c
@${GREP} -rl '/etc/rsyslog.conf' ${WRKSRC}|${XARGS} ${REINPLACE_CMD} -e\
diff --git a/sysutils/synergy-devel/Makefile b/sysutils/synergy-devel/Makefile
index 3e3538f3dc38..0620547d4952 100644
--- a/sysutils/synergy-devel/Makefile
+++ b/sysutils/synergy-devel/Makefile
@@ -18,8 +18,7 @@ COMMENT= Mouse and keyboard sharing utility
CONFLICTS= synergy-[0-9]*
USE_CMAKE= yes
USE_XORG= ice xtst x11 sm
-MAKE_ENV+= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
- PTHREAD_LIBS="${PTHREAD_LIBS}"
+USE_DOS2UNIX= yes
CFLAGS+= -L${LOCALBASE}/lib -I${LOCALBASE}/include
diff --git a/sysutils/synergy-devel/files/patch-src-cmd-usynergy_uSynergyUnix.c b/sysutils/synergy-devel/files/patch-src-cmd-usynergy_uSynergyUnix.c
new file mode 100644
index 000000000000..c1476296f963
--- /dev/null
+++ b/sysutils/synergy-devel/files/patch-src-cmd-usynergy_uSynergyUnix.c
@@ -0,0 +1,11 @@
+--- src/cmd/usynergy/uSynergyUnix.c.orig 2013-02-18 12:04:59.000000000 +0100
++++ src/cmd/usynergy/uSynergyUnix.c 2013-02-18 12:05:53.000000000 +0100
+@@ -27,7 +27,7 @@
+ #include "uSynergy.h"
+
+ // TODO: implement callbacks.
+-int main(char* argv, int argc) {
++int main(int argc, char **argv) {
+ uSynergyContext context;
+ uSynergyInit(&context);
+
diff --git a/sysutils/synergy/Makefile b/sysutils/synergy/Makefile
index 6f838df8f154..ae1aa83e8ae6 100644
--- a/sysutils/synergy/Makefile
+++ b/sysutils/synergy/Makefile
@@ -16,8 +16,6 @@ COMMENT= Mouse and keyboard sharing utility
USE_CMAKE= yes
USE_XORG= ice xtst x11 sm
-MAKE_ENV+= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
- PTHREAD_LIBS="${PTHREAD_LIBS}"
CFLAGS+= -L${LOCALBASE}/lib -I${LOCALBASE}/include
diff --git a/sysutils/tracker-client/Makefile b/sysutils/tracker-client/Makefile
index af1972847fad..f2d58271fd87 100644
--- a/sysutils/tracker-client/Makefile
+++ b/sysutils/tracker-client/Makefile
@@ -46,7 +46,7 @@ USE_GSTREAMER= core
INSTALLS_ICONS= yes
USE_AUTOTOOLS= libtool
CPPFLAGS+= -I${LOCALBASE}/include
-LDFLAGS+= -L${LOCALBASE}/lib -L${LOCALBASE}/lib/tracker ${PTHREAD_LIBS}
+LDFLAGS+= -L${LOCALBASE}/lib -L${LOCALBASE}/lib/tracker
CONFIGURE_ARGS= --enable-video-extractor=gstreamer \
--enable-file-monitoring=fam \
--with-session-bus-services-dir=${LOCALBASE}/share/dbus-1/services \
diff --git a/sysutils/udfclient/Makefile b/sysutils/udfclient/Makefile
index a0288f9a9b68..927111de2997 100644
--- a/sysutils/udfclient/Makefile
+++ b/sysutils/udfclient/Makefile
@@ -21,8 +21,6 @@ COMMENT= Tools for UDF filesystem
WRKSRC= ${WRKDIR}/UDFclient.${PORTVERSION}
GNU_CONFIGURE= yes
-CONFIGURE_ENV+= with_pthread_cflags="${PTHREAD_CFLAGS}" \
- with_thread_libs="${PTHREAD_LIBS}"
MAKE_ARGS+= INSTALL="${INSTALL_PROGRAM}"
OPTIONS= FUSE "udfclientfs via FUSE" off \
diff --git a/sysutils/uhidd/Makefile b/sysutils/uhidd/Makefile
index 59530fb3b2af..2c40ffb9fd8b 100644
--- a/sysutils/uhidd/Makefile
+++ b/sysutils/uhidd/Makefile
@@ -48,7 +48,6 @@ PLIST_SUB+= PL_DEVD="@comment "
post-patch: .SILENT
${FIND} ${WRKSRC}/uhidd -type f -not -name Makefile \
-exec ${REINPLACE_CMD} 's|/usr/local|${PREFIX}|g' {} +
- ${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/uhidd/Makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/uhidd/uhidd ${PREFIX}/sbin/uhidd
diff --git a/sysutils/usbhotkey/Makefile b/sysutils/usbhotkey/Makefile
index 9dcfd0eec3a1..c32a6e923136 100644
--- a/sysutils/usbhotkey/Makefile
+++ b/sysutils/usbhotkey/Makefile
@@ -20,17 +20,10 @@ HAS_CONFIGURE= yes
.include <bsd.port.pre.mk>
-.if !defined(WITHOUT_PTHREADS)
-CPPFLAGS+= ${PTHREAD_CFLAGS} -I${LOCALBASE}/include \
- -I${LOCALBASE}/include/ruby-${RUBY_VER} \
- -I${LOCALBASE}/include/ruby-${RUBY_VER}/${RUBY_ARCH}
-LDFLAGS+= ${PTHREAD_LIBS} -L${LOCALBASE}/lib
-.else
CPPFLAGS+= -I${LOCALBASE}/include \
-I${LOCALBASE}/include/ruby-${RUBY_VER} \
-I${LOCALBASE}/include/ruby-${RUBY_VER}/${RUBY_ARCH}
LDFLAGS+= -L${LOCALBASE}/lib
-.endif
.if !defined(WITHOUT_GUI)
LIB_DEPENDS+= Imlib.5:${PORTSDIR}/graphics/imlib
diff --git a/sysutils/xfsprogs/Makefile b/sysutils/xfsprogs/Makefile
index cf424f5a18da..54d8619a2513 100644
--- a/sysutils/xfsprogs/Makefile
+++ b/sysutils/xfsprogs/Makefile
@@ -48,8 +48,6 @@ pre-configure:
${RM} -f ${WRKSRC}/configure
post-configure:
- ${FIND} ${WRKSRC} -name "configure" | ${XARGS} ${REINPLACE_CMD} -e \
- 's|-lpthread|${PTHREAD_LIBS}|g'
${FIND} ${WRKSRC}/include -name "builddefs" | ${XARGS} ${REINPLACE_CMD} -e \
's|LIBRT =|LIBRT = -lrt|g'
diff --git a/sysutils/xfsprogs/files/patch-io_fadvise.c b/sysutils/xfsprogs/files/patch-io_fadvise.c
new file mode 100644
index 000000000000..5413e7c81fee
--- /dev/null
+++ b/sysutils/xfsprogs/files/patch-io_fadvise.c
@@ -0,0 +1,11 @@
+--- io/fadvise.c.orig 2013-02-18 10:17:09.000000000 +0100
++++ io/fadvise.c 2013-02-18 10:17:20.000000000 +0100
+@@ -105,7 +105,7 @@
+ return command_usage(&fadvise_cmd);
+ }
+
+- if (posix_fadvise64(file->fd, offset, length, advise) < 0) {
++ if (posix_fadvise(file->fd, offset, length, advise) < 0) {
+ perror("fadvise");
+ return 0;
+ }
diff --git a/sysutils/xorriso/Makefile b/sysutils/xorriso/Makefile
index d66a5db3f826..c897f1c6741b 100644
--- a/sysutils/xorriso/Makefile
+++ b/sysutils/xorriso/Makefile
@@ -27,7 +27,4 @@ WANT_GNOME= yes
INFO= xorrecord xorriso xorrisofs
MAN1= xorrecord.1 xorriso.1 xorrisofs.1
-post-patch:
- @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|' ${WRKSRC}/configure
-
.include <bsd.port.mk>
diff --git a/sysutils/xvidcap/Makefile b/sysutils/xvidcap/Makefile
index a2544c1dd77f..8e7568a79a78 100644
--- a/sysutils/xvidcap/Makefile
+++ b/sysutils/xvidcap/Makefile
@@ -46,7 +46,6 @@ NULLDOCS= COPYING
MAN1= xvidcap.1
pre-configure:
- ${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
.if defined(NOPORTDOCS)
${REINPLACE_CMD} -e 's|pkgdataDATA install-xvidcapdocDATA|pkgdataDATA|' \
${WRKSRC}/Makefile.in