svn commit: r363864 - head/sysutils/runwhen
Pawel Pekala
pawel at svn.freebsd.org
Sun Aug 3 09:57:06 UTC 2014
Author: pawel
Date: Sun Aug 3 09:57:05 2014
New Revision: 363864
URL: http://svnweb.freebsd.org/changeset/ports/363864
QAT: https://qat.redports.org/buildarchive/r363864/
Log:
- Fix build with clang (gcc linker default)
- Add staging support
- Convert to new options framework
- Remove Author from pkg-descr
MFH: 2014Q3
Modified:
head/sysutils/runwhen/Makefile
head/sysutils/runwhen/pkg-descr
Modified: head/sysutils/runwhen/Makefile
==============================================================================
--- head/sysutils/runwhen/Makefile Sun Aug 3 09:40:06 2014 (r363863)
+++ head/sysutils/runwhen/Makefile Sun Aug 3 09:57:05 2014 (r363864)
@@ -11,17 +11,20 @@ COMMENT= Tools for running commands at p
BUILD_DEPENDS= ${LOCALBASE}/include/skalibs:${PORTSDIR}/devel/skalibs
-USES= tar:bzip2
+USES= tar:bzip2
WRKSRC= ${WRKDIR}/admin/${DISTNAME}
ALL_TARGET= default
DOCS= src/CHANGES src/TODO package/README
-NO_STAGE= yes
+OPTIONS_DEFINE= DOCS
+
post-patch:
@${REINPLACE_CMD} -e 's!gcc -O2!${CC} ${CFLAGS}!' \
${WRKSRC}/conf-compile/host_compile.sh
+ @${REINPLACE_CMD} 's!gcc!${CC} ${LDFLAGS} ${LIBS}!' \
+ ${WRKSRC}/conf-compile/host_link.sh
do-configure:
${ECHO_CMD} ${PREFIX} > ${WRKSRC}/conf-compile/package_home
@@ -31,10 +34,8 @@ do-build:
cd ${WRKSRC} && package/compile
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/command/* ${PREFIX}/bin
-.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
- cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
-.endif
+ ${INSTALL_PROGRAM} ${WRKSRC}/command/* ${STAGEDIR}${PREFIX}/bin
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ (cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>
Modified: head/sysutils/runwhen/pkg-descr
==============================================================================
--- head/sysutils/runwhen/pkg-descr Sun Aug 3 09:40:06 2014 (r363863)
+++ head/sysutils/runwhen/pkg-descr Sun Aug 3 09:57:05 2014 (r363864)
@@ -20,5 +20,4 @@ lots of things at(1) does that runwhen d
- It doesn't check access control files - thus it doesn't gratuitously
deny users.
-Author: Paul Jarc <prj at po.cwru.edu>
WWW: http://code.dogmap.org/runwhen/
More information about the svn-ports-head
mailing list