diff options
author | Guido Falsi <madpilot@FreeBSD.org> | 2013-11-26 00:15:25 +0000 |
---|---|---|
committer | Guido Falsi <madpilot@FreeBSD.org> | 2013-11-26 00:15:25 +0000 |
commit | aecd18b031b57dcc8d94cee1355b06bbae81fe85 (patch) | |
tree | 7e6620f500f909da21a03806c0459a82e9ec3f9e /irc | |
parent | - Update to 1.1.2 (diff) |
- Force gcc usage, port depends on gnu extensions
- Add LICENSE
- Convert to staging
- Remove compatibility bits for unsupported OS versions
PR: ports/183883
Submitted by: Ilya A. Arkhipov <rum1cro@yandex.ru> (maintainer)
Notes
Notes:
svn path=/head/; revision=334909
Diffstat (limited to 'irc')
-rw-r--r-- | irc/ircservices/Makefile | 36 |
1 files changed, 19 insertions, 17 deletions
diff --git a/irc/ircservices/Makefile b/irc/ircservices/Makefile index 9882524dd0e2..1f2ee1099aef 100644 --- a/irc/ircservices/Makefile +++ b/irc/ircservices/Makefile @@ -11,23 +11,25 @@ MASTER_SITES= http://www.ircservices.za.net/download/ \ MAINTAINER= rum1cro@yandex.ru COMMENT= A system of IRC services for IRC networks +LICENSE= GPLv2 + USES= gmake perl5 +USE_GCC= any USE_PERL5= build HAS_CONFIGURE= yes USE_RC_SUBR= ircservices +SUB_FILES= pkg-message DIST_SUBDIR= ${PORTNAME} -CONFIGURE_ARGS= -bindest ${PREFIX}/sbin -datdest ${PREFIX}/etc/ircservices -cflags "${CFLAGS}" -cc "${CC}" +CONFIGURE_ARGS= -bindest ${PREFIX}/sbin -datdest ${PREFIX}/etc/ircservices \ + -cflags "${CFLAGS}" -cc "${CC}" +MAKE_JOBS_UNSAFE= yes +NEED_ROOT= yes IRCSERVICES_LANG?= EN_US -NO_STAGE= yes .include <bsd.port.pre.mk> -.if ${OSVERSION} > 700042 -CFLAGS+= -fno-stack-protector -.endif - .if ${ARCH} == "amd64" CFLAGS+= -fPIC .endif @@ -41,19 +43,19 @@ pre-patch: @${ECHO_MSG} "DE EN_US ES FR HU IT JA_EUC JA_SJIS NL PT TR" post-patch: - @${REINPLACE_CMD} -e 's|LANG_EN_US|LANG_${IRCSERVICES_LANG}|' \ + @${REINPLACE_CMD} -e 's#LANG_EN_US#LANG_${IRCSERVICES_LANG}#' \ ${WRKSRC}/defs.h +post-build: + @${REINPLACE_CMD} -e 's#BINDEST=.*#BINDEST=${STAGEDIR}${PREFIX}/sbin# ; \ + s#DATDEST=.*#DATDEST=${STAGEDIR}${PREFIX}/etc/ircservices#' \ + ${WRKSRC}/Makefile.inc + @${REINPLACE_CMD} -e 's#@BINDEST@#${PREFIX}/sbin# ; \ + s#@DATDEST@#${PREFIX}/etc/ircservices#' \ + ${WRKSRC}/tools/ircservices-chk.in + post-install: -.if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} - (cd ${WRKSRC}/docs/ && ${COPYTREE_SHARE} \* ${DOCSDIR}) - @${ECHO_MSG} "" - @${ECHO_MSG} "********** IMPORTANT **********" - @${ECHO_MSG} "The configuration directory has changed to ${PREFIX}/etc/ircservices" - @${ECHO_MSG} "Please copy your old config files there if updating" - @${ECHO_MSG} "********** IMPORTANT *********" - @${ECHO_MSG} "" -.endif + @${MKDIR} ${STAGEDIR}${DOCSDIR} + (cd ${WRKSRC}/docs/ && ${COPYTREE_SHARE} \* ${STAGEDIR}${DOCSDIR}) .include <bsd.port.post.mk> |