diff options
-rw-r--r-- | net-im/climm/Makefile | 34 | ||||
-rw-r--r-- | net-im/climm/files/slangs | 17 | ||||
-rw-r--r-- | net-im/micq/Makefile | 34 | ||||
-rw-r--r-- | net-im/micq/files/slangs | 17 | ||||
-rw-r--r-- | net/micq/Makefile | 34 | ||||
-rw-r--r-- | net/micq/files/slangs | 17 |
6 files changed, 138 insertions, 15 deletions
diff --git a/net-im/climm/Makefile b/net-im/climm/Makefile index 6ec760f71029..326d60c86623 100644 --- a/net-im/climm/Makefile +++ b/net-im/climm/Makefile @@ -7,6 +7,7 @@ PORTNAME= micq PORTVERSION= 0.4.6.1 +PORTREVISION= 1 CATEGORIES= net MASTER_SITES= http://micq.ukeer.de/source/ DISTNAME= ${PORTNAME}-${PORTVERSION:S/1/p1/} @@ -18,13 +19,36 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:S/.1/-p1/}/src MAN1= micq.1 +SUP_LANGS= `${SED} 's|$$|,|' < ${FILESDIR}/slangs` + +pre-configure: +.if !defined(WITH_MICQ_LANG) + @${ECHO_MSG} "If you want to compile ${PORTNAME} with your native" + @${ECHO_MSG} "language support:" + @${ECHO_MSG} "make WITH_MICQ_LANG=<your_lang>" + @${ECHO_MSG} "" + @${ECHO_MSG} "Currently supported <your_lang> values are:" + @${ECHO} " "${SUP_LANGS} | /usr/bin/fmt +.else + @${ECHO} "#define ${WITH_MICQ_LANG}_LANG" >> \ + ${WRKSRC}/../include/config.h + @${ECHO_MSG} "Compiling ${PORTNAME} with ${WITH_MICQ_LANG}." +.endif + do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/micq ${PREFIX}/bin - ${INSTALL_MAN} ${WRKSRC}/../micq.1 ${PREFIX}/man/man1 + ${INSTALL_PROGRAM} ${WRKSRC}/micq ${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/../micq.1 ${PREFIX}/man/man1 .if !defined(NOPORTDOCS) - ${MKDIR} ${PREFIX}/share/doc/micq - ${INSTALL_DATA} ${WRKSRC}/../README ${PREFIX}/share/doc/micq - ${INSTALL_DATA} ${WRKSRC}/../CHANGELOG ${PREFIX}/share/doc/micq + ${MKDIR} ${PREFIX}/share/doc/micq + ${INSTALL_DATA} ${WRKSRC}/../README ${PREFIX}/share/doc/micq + ${INSTALL_DATA} ${WRKSRC}/../CHANGELOG ${PREFIX}/share/doc/micq .endif +# Administrative rule to automatically extract +# names of supported langs +update-slangs: patch + ${GREP} '#define .*_LANG' < ${WRKSRC}/../include/config.h | \ + ${SED} 's|.*#define || ; s|_LANG.*||' | /usr/bin/sort | \ + /usr/bin/uniq > ${FILESDIR}/slangs + .include <bsd.port.mk> diff --git a/net-im/climm/files/slangs b/net-im/climm/files/slangs new file mode 100644 index 000000000000..eb0513f76893 --- /dev/null +++ b/net-im/climm/files/slangs @@ -0,0 +1,17 @@ +BRAZIL +BULGARIAN +CHINESE +CROATIAN +DUTCH +ENGLISH +FINNISH +FRENCH +GERMAN +INDONESIAN +ITALIAN +POLISH +RUSSIAN +SERBOCROATIAN +SPANISH +SWEDISH +UKRAINIAN diff --git a/net-im/micq/Makefile b/net-im/micq/Makefile index 6ec760f71029..326d60c86623 100644 --- a/net-im/micq/Makefile +++ b/net-im/micq/Makefile @@ -7,6 +7,7 @@ PORTNAME= micq PORTVERSION= 0.4.6.1 +PORTREVISION= 1 CATEGORIES= net MASTER_SITES= http://micq.ukeer.de/source/ DISTNAME= ${PORTNAME}-${PORTVERSION:S/1/p1/} @@ -18,13 +19,36 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:S/.1/-p1/}/src MAN1= micq.1 +SUP_LANGS= `${SED} 's|$$|,|' < ${FILESDIR}/slangs` + +pre-configure: +.if !defined(WITH_MICQ_LANG) + @${ECHO_MSG} "If you want to compile ${PORTNAME} with your native" + @${ECHO_MSG} "language support:" + @${ECHO_MSG} "make WITH_MICQ_LANG=<your_lang>" + @${ECHO_MSG} "" + @${ECHO_MSG} "Currently supported <your_lang> values are:" + @${ECHO} " "${SUP_LANGS} | /usr/bin/fmt +.else + @${ECHO} "#define ${WITH_MICQ_LANG}_LANG" >> \ + ${WRKSRC}/../include/config.h + @${ECHO_MSG} "Compiling ${PORTNAME} with ${WITH_MICQ_LANG}." +.endif + do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/micq ${PREFIX}/bin - ${INSTALL_MAN} ${WRKSRC}/../micq.1 ${PREFIX}/man/man1 + ${INSTALL_PROGRAM} ${WRKSRC}/micq ${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/../micq.1 ${PREFIX}/man/man1 .if !defined(NOPORTDOCS) - ${MKDIR} ${PREFIX}/share/doc/micq - ${INSTALL_DATA} ${WRKSRC}/../README ${PREFIX}/share/doc/micq - ${INSTALL_DATA} ${WRKSRC}/../CHANGELOG ${PREFIX}/share/doc/micq + ${MKDIR} ${PREFIX}/share/doc/micq + ${INSTALL_DATA} ${WRKSRC}/../README ${PREFIX}/share/doc/micq + ${INSTALL_DATA} ${WRKSRC}/../CHANGELOG ${PREFIX}/share/doc/micq .endif +# Administrative rule to automatically extract +# names of supported langs +update-slangs: patch + ${GREP} '#define .*_LANG' < ${WRKSRC}/../include/config.h | \ + ${SED} 's|.*#define || ; s|_LANG.*||' | /usr/bin/sort | \ + /usr/bin/uniq > ${FILESDIR}/slangs + .include <bsd.port.mk> diff --git a/net-im/micq/files/slangs b/net-im/micq/files/slangs new file mode 100644 index 000000000000..eb0513f76893 --- /dev/null +++ b/net-im/micq/files/slangs @@ -0,0 +1,17 @@ +BRAZIL +BULGARIAN +CHINESE +CROATIAN +DUTCH +ENGLISH +FINNISH +FRENCH +GERMAN +INDONESIAN +ITALIAN +POLISH +RUSSIAN +SERBOCROATIAN +SPANISH +SWEDISH +UKRAINIAN diff --git a/net/micq/Makefile b/net/micq/Makefile index 6ec760f71029..326d60c86623 100644 --- a/net/micq/Makefile +++ b/net/micq/Makefile @@ -7,6 +7,7 @@ PORTNAME= micq PORTVERSION= 0.4.6.1 +PORTREVISION= 1 CATEGORIES= net MASTER_SITES= http://micq.ukeer.de/source/ DISTNAME= ${PORTNAME}-${PORTVERSION:S/1/p1/} @@ -18,13 +19,36 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:S/.1/-p1/}/src MAN1= micq.1 +SUP_LANGS= `${SED} 's|$$|,|' < ${FILESDIR}/slangs` + +pre-configure: +.if !defined(WITH_MICQ_LANG) + @${ECHO_MSG} "If you want to compile ${PORTNAME} with your native" + @${ECHO_MSG} "language support:" + @${ECHO_MSG} "make WITH_MICQ_LANG=<your_lang>" + @${ECHO_MSG} "" + @${ECHO_MSG} "Currently supported <your_lang> values are:" + @${ECHO} " "${SUP_LANGS} | /usr/bin/fmt +.else + @${ECHO} "#define ${WITH_MICQ_LANG}_LANG" >> \ + ${WRKSRC}/../include/config.h + @${ECHO_MSG} "Compiling ${PORTNAME} with ${WITH_MICQ_LANG}." +.endif + do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/micq ${PREFIX}/bin - ${INSTALL_MAN} ${WRKSRC}/../micq.1 ${PREFIX}/man/man1 + ${INSTALL_PROGRAM} ${WRKSRC}/micq ${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/../micq.1 ${PREFIX}/man/man1 .if !defined(NOPORTDOCS) - ${MKDIR} ${PREFIX}/share/doc/micq - ${INSTALL_DATA} ${WRKSRC}/../README ${PREFIX}/share/doc/micq - ${INSTALL_DATA} ${WRKSRC}/../CHANGELOG ${PREFIX}/share/doc/micq + ${MKDIR} ${PREFIX}/share/doc/micq + ${INSTALL_DATA} ${WRKSRC}/../README ${PREFIX}/share/doc/micq + ${INSTALL_DATA} ${WRKSRC}/../CHANGELOG ${PREFIX}/share/doc/micq .endif +# Administrative rule to automatically extract +# names of supported langs +update-slangs: patch + ${GREP} '#define .*_LANG' < ${WRKSRC}/../include/config.h | \ + ${SED} 's|.*#define || ; s|_LANG.*||' | /usr/bin/sort | \ + /usr/bin/uniq > ${FILESDIR}/slangs + .include <bsd.port.mk> diff --git a/net/micq/files/slangs b/net/micq/files/slangs new file mode 100644 index 000000000000..eb0513f76893 --- /dev/null +++ b/net/micq/files/slangs @@ -0,0 +1,17 @@ +BRAZIL +BULGARIAN +CHINESE +CROATIAN +DUTCH +ENGLISH +FINNISH +FRENCH +GERMAN +INDONESIAN +ITALIAN +POLISH +RUSSIAN +SERBOCROATIAN +SPANISH +SWEDISH +UKRAINIAN |