aboutsummaryrefslogtreecommitdiffstats
path: root/irc/iroffer
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/iroffer
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/iroffer')
-rw-r--r--irc/iroffer/Makefile25
1 files changed, 13 insertions, 12 deletions
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}