- Fix build with clang (gcc linker default)

- Add staging support
- Convert to new options framework
- Remove Author from pkg-descr

MFH:		2014Q3
This commit is contained in:
Pawel Pekala 2014-08-03 09:57:05 +00:00
parent e840be18ad
commit 74e4c04fca
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=363864
2 changed files with 8 additions and 8 deletions

View File

@ -11,17 +11,20 @@ COMMENT= Tools for running commands at particular times
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>

View File

@ -20,5 +20,4 @@ lots of things at(1) does that runwhen doesn't:
- It doesn't check access control files - thus it doesn't gratuitously
deny users.
Author: Paul Jarc <prj@po.cwru.edu>
WWW: http://code.dogmap.org/runwhen/