aboutsummaryrefslogtreecommitdiffstats
path: root/irc
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2013-10-28 06:29:46 +0800
committerdinoex <dinoex@FreeBSD.org>2013-10-28 06:29:46 +0800
commita9ff4b49c10701f4d22eb1a173e03064089672bb (patch)
tree2f75f2dd22479e7d9e0d627ea798a4d2a036e75f /irc
parentaa3da1c84cdb0e5dfb190c16f74ea3d9def166a7 (diff)
downloadfreebsd-ports-gnome-a9ff4b49c10701f4d22eb1a173e03064089672bb.tar.gz
freebsd-ports-gnome-a9ff4b49c10701f4d22eb1a173e03064089672bb.tar.zst
freebsd-ports-gnome-a9ff4b49c10701f4d22eb1a173e03064089672bb.zip
- use STAGEDIR
- use OPTIONS_DEFINE
Diffstat (limited to 'irc')
-rw-r--r--irc/iroffer-dinoex/Makefile33
-rw-r--r--irc/iroffer-lamm/Makefile25
-rw-r--r--irc/iroffer/Makefile25
3 files changed, 42 insertions, 41 deletions
diff --git a/irc/iroffer-dinoex/Makefile b/irc/iroffer-dinoex/Makefile
index a6de9d748288..37ef88c0707b 100644
--- a/irc/iroffer-dinoex/Makefile
+++ b/irc/iroffer-dinoex/Makefile
@@ -14,15 +14,15 @@ COMMENT= An IRC "bot" that makes sharing files via DCC extremely easy
LICENSE= GPLv2
CONFLICTS= iroffer-1* iroffer-lamm-1.*
-NO_STAGE= yes
+USES= manpages:install
HAS_CONFIGURE= yes
CONFIGURE_SCRIPT= Configure
-MAN1= iroffer.1
-MAN7= xdcc.7
CONFIGURE_ARGS= CC="${CC}" LDFLAGS="${LDFLAGS}" LOCALBASE="${LOCALBASE}"
ALL_TARGET= all-lang doc
USE_RC_SUBR= iroffer-dinoex
+MAN1= iroffer.1
+MAN7= xdcc.7
IROFFER_DOCS= README README.modDinoex LIESMICH.modDinoex \
LICENSE THANKS TODO \
@@ -61,32 +61,31 @@ CONFIGURE_ARGS+= -upnp
.endif
.if ${PORT_OPTIONS:MRUBY}
USE_RUBY= yes
+USE_LIBRUBY= yes
CONFIGURE_ARGS+= -ruby
.include "${PORTSDIR}/Mk/bsd.ruby.mk"
.endif
-do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/iroffer ${PREFIX}/bin/
- ${INSTALL_PROGRAM} ${WRKSRC}/iroffer-de ${PREFIX}/bin/
- ${INSTALL_PROGRAM} ${WRKSRC}/iroffer-it ${PREFIX}/bin/
- ${INSTALL_PROGRAM} ${WRKSRC}/iroffer-fr ${PREFIX}/bin/
-.if !defined(NOPORTDOCS)
- ${MKDIR} ${DOCSDIR}
+do-install: install-all-manpages
+ ${INSTALL_PROGRAM} ${WRKSRC}/iroffer ${STAGEDIR}${PREFIX}/bin/
+ ${INSTALL_PROGRAM} ${WRKSRC}/iroffer-de ${STAGEDIR}${PREFIX}/bin/
+ ${INSTALL_PROGRAM} ${WRKSRC}/iroffer-it ${STAGEDIR}${PREFIX}/bin/
+ ${INSTALL_PROGRAM} ${WRKSRC}/iroffer-fr ${STAGEDIR}${PREFIX}/bin/
+.if ${PORT_OPTIONS:MDOCS}
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in ${IROFFER_DOCS}
- ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}/
+ ${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}/
.endfor
.endif
-.if !defined(NOPORTEXAMPLES)
- ${MKDIR} ${EXAMPLESDIR}/htdocs
+.if ${PORT_OPTIONS:MEXAMPLES}
+ ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/htdocs
.for i in ${IROFFER_HTDOCS}
- ${INSTALL_DATA} ${WRKSRC}/htdocs/${i} ${EXAMPLESDIR}/htdocs/
+ ${INSTALL_DATA} ${WRKSRC}/htdocs/${i} ${STAGEDIR}${EXAMPLESDIR}/htdocs/
.endfor
.for i in ${IROFFER_EXAMPLES}
- ${INSTALL_DATA} ${WRKSRC}/${i} ${EXAMPLESDIR}/
+ ${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${EXAMPLESDIR}/
.endfor
.endif
- ${INSTALL_MAN} ${WRKSRC}/iroffer.1 ${PREFIX}/man/man1/
- ${INSTALL_MAN} ${WRKSRC}/xdcc.7 ${PREFIX}/man/man7/
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
diff --git a/irc/iroffer-lamm/Makefile b/irc/iroffer-lamm/Makefile
index 084d7812bd88..a6f2ec5a9f41 100644
--- a/irc/iroffer-lamm/Makefile
+++ b/irc/iroffer-lamm/Makefile
@@ -14,28 +14,29 @@ COMMENT= An IRC "bot" that makes sharing files via DCC extremely easy
LICENSE= GPLv2
CONFLICTS= iroffer-1.* iroffer-dinoex-3.*
-NO_STAGE= yes
HAS_CONFIGURE= yes
CONFIGURE_SCRIPT= Configure
+.include <bsd.port.options.mk>
+
post-patch:
${REINPLACE_CMD} -e 's|cctype="gcc"|cctype="${CC}"|' \
${WRKSRC}/Configure
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/convertxdccfile ${PREFIX}/bin/
- ${INSTALL_PROGRAM} ${WRKSRC}/iroffer ${PREFIX}/bin/
-.if !defined(NOPORTDOCS)
- ${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/
- ${INSTALL_DATA} ${WRKSRC}/WHATSNEW ${DOCSDIR}/
+ ${INSTALL_PROGRAM} ${WRKSRC}/convertxdccfile ${STAGEDIR}${PREFIX}/bin/
+ ${INSTALL_PROGRAM} ${WRKSRC}/iroffer ${STAGEDIR}${PREFIX}/bin/
+.if ${PORT_OPTIONS:MDOCS}
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}/
+ ${INSTALL_DATA} ${WRKSRC}/WHATSNEW ${STAGEDIR}${DOCSDIR}/
.endif
-.if !defined(NOPORTEXAMPLES)
- ${MKDIR} ${EXAMPLESDIR}
- ${INSTALL_DATA} ${WRKSRC}/dynip.sh ${EXAMPLESDIR}/
- ${INSTALL_DATA} ${WRKSRC}/iroffer.cron ${EXAMPLESDIR}/
- ${INSTALL_DATA} ${WRKSRC}/sample.config ${EXAMPLESDIR}/
+.if ${PORT_OPTIONS:MEXAMPLES}
+ ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/dynip.sh ${STAGEDIR}${EXAMPLESDIR}/
+ ${INSTALL_DATA} ${WRKSRC}/iroffer.cron ${STAGEDIR}${EXAMPLESDIR}/
+ ${INSTALL_DATA} ${WRKSRC}/sample.config ${STAGEDIR}${EXAMPLESDIR}/
.endif
@${CAT} ${PKGMESSAGE}
diff --git a/irc/iroffer/Makefile b/irc/iroffer/Makefile
index 6f68125649fc..6235d2fe299a 100644
--- a/irc/iroffer/Makefile
+++ b/irc/iroffer/Makefile
@@ -14,28 +14,29 @@ COMMENT= An IRC "bot" that makes sharing files via DCC extremely easy
LICENSE= GPLv2
CONFLICTS= iroffer-lamm-1.* iroffer-dinoex-3.*
-NO_STAGE= yes
HAS_CONFIGURE= yes
CONFIGURE_SCRIPT= Configure
+.include <bsd.port.options.mk>
+
post-patch:
${REINPLACE_CMD} -e 's|cctype="gcc"|cctype="${CC}"|' \
${WRKSRC}/Configure
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/convertxdccfile ${PREFIX}/bin/
- ${INSTALL_PROGRAM} ${WRKSRC}/iroffer ${PREFIX}/bin/
-.if !defined(NOPORTDOCS)
- ${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/
- ${INSTALL_DATA} ${WRKSRC}/WHATSNEW ${DOCSDIR}/
+ ${INSTALL_PROGRAM} ${WRKSRC}/convertxdccfile ${STAGEDIR}${PREFIX}/bin/
+ ${INSTALL_PROGRAM} ${WRKSRC}/iroffer ${STAGEDIR}${PREFIX}/bin/
+.if ${PORT_OPTIONS:MDOCS}
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}/
+ ${INSTALL_DATA} ${WRKSRC}/WHATSNEW ${STAGEDIR}${DOCSDIR}/
.endif
-.if !defined(NOPORTEXAMPLES)
- ${MKDIR} ${EXAMPLESDIR}
- ${INSTALL_DATA} ${WRKSRC}/dynip.sh ${EXAMPLESDIR}/
- ${INSTALL_DATA} ${WRKSRC}/iroffer.cron ${EXAMPLESDIR}/
- ${INSTALL_DATA} ${WRKSRC}/sample.config ${EXAMPLESDIR}/
+.if ${PORT_OPTIONS:MEXAMPLES}
+ ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/dynip.sh ${STAGEDIR}${EXAMPLESDIR}/
+ ${INSTALL_DATA} ${WRKSRC}/iroffer.cron ${STAGEDIR}${EXAMPLESDIR}/
+ ${INSTALL_DATA} ${WRKSRC}/sample.config ${STAGEDIR}${EXAMPLESDIR}/
.endif
@${CAT} ${PKGMESSAGE}