aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorskreuzer <skreuzer@FreeBSD.org>2014-06-12 06:19:30 +0800
committerskreuzer <skreuzer@FreeBSD.org>2014-06-12 06:19:30 +0800
commitfcdbb7e141a430ebd5f28c24968eb7245059bc47 (patch)
tree972fa042ccfdd0dac3dd77024a1fbfdff81dec58 /devel
parentd0ce23d700e36ab866ec778c693a4940561a2d82 (diff)
downloadfreebsd-ports-gnome-fcdbb7e141a430ebd5f28c24968eb7245059bc47.tar.gz
freebsd-ports-gnome-fcdbb7e141a430ebd5f28c24968eb7245059bc47.tar.zst
freebsd-ports-gnome-fcdbb7e141a430ebd5f28c24968eb7245059bc47.zip
Add staging support
Convert to new USES framework Convert to new LIB_DEPENDS framework Add support for gcc47 and gcc48
Diffstat (limited to 'devel')
-rw-r--r--devel/distcc/Makefile38
-rw-r--r--devel/distcc/files/distccd.in2
-rw-r--r--devel/distcc/pkg-plist4
3 files changed, 21 insertions, 23 deletions
diff --git a/devel/distcc/Makefile b/devel/distcc/Makefile
index 8857a0ec4251..1666025acca5 100644
--- a/devel/distcc/Makefile
+++ b/devel/distcc/Makefile
@@ -4,7 +4,7 @@
PORTNAME= distcc
PORTVERSION= 3.1
-PORTREVISION= 4
+PORTREVISION= 5
CATEGORIES= devel
MASTER_SITES= GOOGLE_CODE
@@ -14,18 +14,15 @@ COMMENT= Distribute compilation of C(++) code acrosss machines on a network
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
-LIB_DEPENDS= popt.0:${PORTSDIR}/devel/popt
+LIB_DEPENDS= libpopt.so:${PORTSDIR}/devel/popt
-USE_BZIP2= yes
-USES= gmake
+USES= gmake tar:bzip2
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-gprof --disable-Werror
WANT_GNOME= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
-DISTCCD_PIDFILE=/var/run/distccd.pid
USE_RC_SUBR= distccd
-SUB_LIST= DISTCCD_PIDFILE=${DISTCCD_PIDFILE}
OPTIONS_DEFINE= GNOME GTK IPV6 AVAHI COMPILER_LINKS
GNOME_DESC= GUI monitor based on GNOME
@@ -35,11 +32,10 @@ COMPILER_LINKS= Create symlinks to distcc
OPTIONS_DEFAULT= COMPILER_LINKS
-NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MAVAHI}
-LIB_DEPENDS+= avahi-glib.1:${PORTSDIR}/net/avahi-app
+LIB_DEPENDS+= libavahi-glib.1.so:${PORTSDIR}/net/avahi-app
.else
CONFIGURE_ARGS+= --without-avahi
.endif
@@ -53,7 +49,7 @@ CONFIGURE_ARGS+= --disable-rfc2553
.if ${PORT_OPTIONS:MCOMPILER_LINKS}
CCLINKDIR?= libexec/distcc
PLIST_DIRS= ${CCLINKDIR}
-GNU_COMPILERS= 34 42 43 44 45 46 -ooo
+GNU_COMPILERS= 34 42 43 44 45 46 47 48 -ooo
DISTCC_COMPILERS= cc c++ gcc g++ ${GNU_COMPILERS:S|^|gcc|} ${GNU_COMPILERS:S|^|g++|}
DISTCC_COMPILERS+= clang clang++ llvm-gcc llvm-c++ llvm-g++
.if ${ARCH} == "i386"
@@ -79,36 +75,34 @@ PLIST_SUB+= WITH_GNOME=""
PLIST_SUB+= WITH_GNOME="@comment "
.endif
-MAN1= distcc.1 distccd.1 distccmon-text.1
DOC_FILES= AUTHORS INSTALL NEWS README \
doc/protocol-1.txt doc/status-1.txt \
doc/protocol-2.txt doc/reporting-bugs.txt
do-install:
- @${INSTALL_PROGRAM} ${WRKSRC}/distcc ${PREFIX}/bin
- @${INSTALL_PROGRAM} ${WRKSRC}/distccmon-text ${PREFIX}/bin
- @${INSTALL_PROGRAM} ${WRKSRC}/lsdistcc ${PREFIX}/bin
+ @${INSTALL_PROGRAM} ${WRKSRC}/distcc ${STAGEDIR}${PREFIX}/bin
+ @${INSTALL_PROGRAM} ${WRKSRC}/distccmon-text ${STAGEDIR}${PREFIX}/bin
+ @${INSTALL_PROGRAM} ${WRKSRC}/lsdistcc ${STAGEDIR}${PREFIX}/bin
.if ${PORT_OPTIONS:MGNOME} || ${PORT_OPTIONS:MGTK}
- @${INSTALL_PROGRAM} ${WRKSRC}/distccmon-gnome ${PREFIX}/bin
+ @${INSTALL_PROGRAM} ${WRKSRC}/distccmon-gnome ${STAGEDIR}${PREFIX}/bin
.endif
- @${INSTALL_PROGRAM} ${WRKSRC}/distccd ${PREFIX}/sbin
+ @${INSTALL_PROGRAM} ${WRKSRC}/distccd ${STAGEDIR}${PREFIX}/sbin
post-install:
- @${TOUCH} ${DISTCCD_PIDFILE}
.if ${PORT_OPTIONS:MCOMPILER_LINKS}
- @${MKDIR} ${PREFIX}/${CCLINKDIR}
+ @${MKDIR} ${STAGEDIR}${PREFIX}/${CCLINKDIR}
.for link in ${DISTCC_COMPILERS}
- ${LN} -sf ${PREFIX}/bin/distcc ${PREFIX}/${CCLINKDIR}/${link}
+ ${LN} -sf ${PREFIX}/bin/distcc ${STAGEDIR}${PREFIX}/${CCLINKDIR}/${link}
.endfor
.endif
.if ${PORT_OPTIONS:MDOCS}
- @${MKDIR} ${DOCSDIR}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
.for FILE in ${DOC_FILES}
- @${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
+ @${INSTALL_DATA} ${WRKSRC}/${FILE} ${STAGEDIR}${DOCSDIR}
.endfor
.endif
-.for f in ${MAN1}
- @${INSTALL_MAN} ${WRKSRC}/man/${f} ${MANPREFIX}/man/man1
+.for man in distcc.1 distccd.1 distccmon-text.1
+ ${INSTALL_MAN} ${WRKSRC}/man/${man} ${STAGEDIR}${MANPREFIX}/man/man1
.endfor
@${CAT} ${PKGMESSAGE}
.if !defined(PACKAGE_BUILDING)
diff --git a/devel/distcc/files/distccd.in b/devel/distcc/files/distccd.in
index 752bc65351f9..32c51e306e91 100644
--- a/devel/distcc/files/distccd.in
+++ b/devel/distcc/files/distccd.in
@@ -27,7 +27,7 @@ command=%%PREFIX%%/sbin/${name}
# extract pid file from distccd_flags (if any)
pidfile="`echo ${distccd_flags} |sed -nE -e 's/^.*-P ([^ ]+).*$/\1/p'`"
# set default value
-pidfile=${pidfile:-%%DISTCCD_PIDFILE%%}
+pidfile=${pidfile:-/var/run/distccd.pid}
distccd_precmd()
{
diff --git a/devel/distcc/pkg-plist b/devel/distcc/pkg-plist
index cd87958b710b..a62bd6f987fd 100644
--- a/devel/distcc/pkg-plist
+++ b/devel/distcc/pkg-plist
@@ -11,4 +11,8 @@ sbin/distccd
%%PORTDOCS%%%%DOCSDIR%%/protocol-2.txt
%%PORTDOCS%%%%DOCSDIR%%/status-1.txt
%%PORTDOCS%%%%DOCSDIR%%/reporting-bugs.txt
+man/man1/distcc.1.gz
+man/man1/distccd.1.gz
+man/man1/distccmon-text.1.gz
%%PORTDOCS%%@dirrm %%DOCSDIR%%
+%%WITH_GNOME%%@dirrm %%DATADIR%%