aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsunpoet <sunpoet@FreeBSD.org>2017-04-16 19:09:03 +0800
committersunpoet <sunpoet@FreeBSD.org>2017-04-16 19:09:03 +0800
commitc44aeab901b5822134a66b1c2c2f05757db0b6f5 (patch)
tree2c9853977b3c9fc82b13766483d8a7f72e503c7c
parent41ea9b1352f1fb93aa16d02835792d773c17b54e (diff)
downloadfreebsd-ports-gnome-c44aeab901b5822134a66b1c2c2f05757db0b6f5.tar.gz
freebsd-ports-gnome-c44aeab901b5822134a66b1c2c2f05757db0b6f5.tar.zst
freebsd-ports-gnome-c44aeab901b5822134a66b1c2c2f05757db0b6f5.zip
Convert to options target helper
- Use BROKEN_SSL Approved by: portmgr (blanket)
-rw-r--r--irc/bitchx/Makefile33
1 files changed, 13 insertions, 20 deletions
diff --git a/irc/bitchx/Makefile b/irc/bitchx/Makefile
index 10f000e0491e..e48b1ca342c4 100644
--- a/irc/bitchx/Makefile
+++ b/irc/bitchx/Makefile
@@ -43,41 +43,34 @@ IPV6_CONFIGURE_ENABLE= ipv6
SSL_CONFIGURE_WITH= ssl
SSL_USES= ssl
+SSL_VARS= BROKEN_SSL=openssl-devel
PLUGINS_CONFIGURE_WITH= plugins="${PLUGIN_LIST:C/\$$/,/g}"
PLUGIN_LIST= abot acro arcfour autocycle blowfish cavlink cdrom encrypt \
europa fserv hint nap nicklist pkga possum qbx qmail wavplay
-.include <bsd.port.options.mk>
post-patch:
-.if ${PORT_OPTIONS:MLATIN}
+ ${REINPLACE_CMD} -e 's|bzip2|true|g' ${WRKSRC}/Makefile.in
+
+post-patch-DOCS-on:
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ cd ${WRKSRC}/bitchx-docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
+
+post-patch-LATIN-on:
${REINPLACE_CMD} -e 's|#undef LATIN1|#define LATIN1|' \
${WRKSRC}/include/config.h
-.endif
-.if ${PORT_OPTIONS:MHEBREW}
+
+post-patch-HEBREW-on:
${REINPLACE_CMD} -e 's|#undef WANT_HEBREW|#define WANT_HEBREW|' \
${WRKSRC}/include/config.h
-.endif
-.if ${PORT_OPTIONS:MTOGGLES}
+
+post-patch-TOGGLES-on:
${REINPLACE_CMD} -e 's|DEFAULT_AUTO_AWAY ON|DEFAULT_AUTO_AWAY OFF|' \
${WRKSRC}/include/config.h
${REINPLACE_CMD} -e 's|DEFAULT_KICK_OPS ON|DEFAULT_KICK_OPS OFF|' \
${WRKSRC}/include/config.h
${REINPLACE_CMD} -e 's|DEFAULT_AUTO_REJOIN ON|DEFAULT_AUTO_REJOIN OFF|' \
${WRKSRC}/include/config.h
-.endif
- ${REINPLACE_CMD} -e 's|bzip2|true|g' ${WRKSRC}/Makefile.in
-
-.if ${PORT_OPTIONS:MDOCS}
- @${MKDIR} ${STAGEDIR}${DOCSDIR}
- cd ${WRKSRC}/bitchx-docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
-.endif
-
-.include <bsd.port.pre.mk>
-
-.if ${PORT_OPTIONS:MSSL} && ${SSL_DEFAULT:Mopenssl-devel}
-BROKEN= Does not build with openssl-devel
-.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>