aboutsummaryrefslogtreecommitdiffstats
path: root/irc/anope
diff options
context:
space:
mode:
authormat <mat@FreeBSD.org>2004-11-26 19:55:41 +0800
committermat <mat@FreeBSD.org>2004-11-26 19:55:41 +0800
commitf57abc0bc93ebf8dce3c8ba0a56bd8d4276282c7 (patch)
tree0c7bef6479638abc8c8b7f1161c1d6dd48c70e78 /irc/anope
parent7980864ff361e55a4930efd7873a79ccfc5f159c (diff)
downloadfreebsd-ports-gnome-f57abc0bc93ebf8dce3c8ba0a56bd8d4276282c7.tar.gz
freebsd-ports-gnome-f57abc0bc93ebf8dce3c8ba0a56bd8d4276282c7.tar.zst
freebsd-ports-gnome-f57abc0bc93ebf8dce3c8ba0a56bd8d4276282c7.zip
Fixup with 64 bits arch needing -fPIC for librairies.
Tested on: sledge
Diffstat (limited to 'irc/anope')
-rw-r--r--irc/anope/Makefile71
1 files changed, 37 insertions, 34 deletions
diff --git a/irc/anope/Makefile b/irc/anope/Makefile
index b7f09b50c5aa..a918a337c9af 100644
--- a/irc/anope/Makefile
+++ b/irc/anope/Makefile
@@ -49,10 +49,6 @@ ANOPEUMASK?= 077
.include <bsd.port.pre.mk>
-.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
-BROKEN= "Does not build on ${ARCH} (shared libraries must be compiled with -fPIC)"
-.endif
-
.if defined(WITH_MYSQL)
USE_MYSQL= yes
.endif
@@ -62,53 +58,60 @@ post-patch:
-e "s/-pthread/${PTHREAD_LIBS}/" \
${WRKSRC}/configure
+CONFIG_CACHE=${WRKSRC}/config.cache
pre-configure: #--{{{
- @${ECHO_CMD} PROGRAM="anope" > ${WRKSRC}/config.cache
- @${ECHO_CMD} BINDEST="${ANOPEBIN}" >> ${WRKSRC}/config.cache
- @${ECHO_CMD} DATDEST="${ANOPEDAT}" >> ${WRKSRC}/config.cache
- @${ECHO_CMD} UMASK="${ANOPEUMASK}" >> ${WRKSRC}/config.cache
+ @${ECHO_CMD} PROGRAM=\"anope\" > ${CONFIG_CACHE}
+ @${ECHO_CMD} BINDEST=\"${ANOPEBIN}\" >> ${CONFIG_CACHE}
+ @${ECHO_CMD} DATDEST=\"${ANOPEDAT}\" >> ${CONFIG_CACHE}
+ @${ECHO_CMD} UMASK=\"${ANOPEUMASK}\" >> ${CONFIG_CACHE}
.if defined(WITH_MYSQL)
- @${ECHO_CMD} MYSQL="USE_MYSQL" >> ${WRKSRC}/config.cache
- @${ECHO_CMD} RDB="USE_RDB" >> ${WRKSRC}/config.cache
+ @${ECHO_CMD} MYSQL=\"USE_MYSQL\" >> ${CONFIG_CACHE}
+ @${ECHO_CMD} RDB=\"USE_RDB\" >> ${CONFIG_CACHE}
.endif
.if defined(WITH_MODULES)
- @${ECHO_CMD} USE_MODULES="USE_MODULES" >> ${WRKSRC}/config.cache
- @${ECHO_CMD} MODULE_PATH="${ANOPEMOD}" >> ${WRKSRC}/config.cache
+ @${ECHO_CMD} USE_MODULES=\"USE_MODULES\" >> ${CONFIG_CACHE}
+ @${ECHO_CMD} MODULE_PATH=\"${ANOPEMOD}\" >> ${CONFIG_CACHE}
.endif
.if defined(WITH_MD5)
- @${ECHO_CMD} ENCRYPTION="ENCRYPT_MD5" >> ${WRKSRC}/config.cache
+ @${ECHO_CMD} ENCRYPTION=\"ENCRYPT_MD5\" >> ${CONFIG_CACHE}
.endif
.if defined(WITH_THREAD)
- @${ECHO_CMD} THREAD="USE_THREADS" >> ${WRKSRC}/config.cache
+ @${ECHO_CMD} THREAD=\"USE_THREADS\" >> ${CONFIG_CACHE}
.endif
.if defined(WITH_DREAM)
- @${ECHO_CMD} IRCTYPE=1 >> ${WRKSRC}/config.cache
- @${ECHO_CMD} IRCTYPE_DEF="IRC_DREAMFORGE" >> ${WRKSRC}/config.cache
+ @${ECHO_CMD} IRCTYPE=1 >> ${CONFIG_CACHE}
+ @${ECHO_CMD} IRCTYPE_DEF=\"IRC_DREAMFORGE\" >> ${CONFIG_CACHE}
.elif defined(WITH_BAHAMUT)
- @${ECHO_CMD} IRCTYPE=2 >> ${WRKSRC}/config.cache
- @${ECHO_CMD} IRCTYPE_DEF="IRC_BAHAMUT" >> ${WRKSRC}/config.cache
+ @${ECHO_CMD} IRCTYPE=2 >> ${CONFIG_CACHE}
+ @${ECHO_CMD} IRCTYPE_DEF=\"IRC_BAHAMUT\" >> ${CONFIG_CACHE}
.elif defined(WITH_UNREAL)
- @${ECHO_CMD} IRCTYPE=3 >> ${WRKSRC}/config.cache
- @${ECHO_CMD} IRCTYPE_DEF="IRC_DREAMFORGE" >> ${WRKSRC}/config.cache
- @${ECHO_CMD} IRCTYPE_DEF2="IRC_UNREAL" >> ${WRKSRC}/config.cache
+ @${ECHO_CMD} IRCTYPE=3 >> ${CONFIG_CACHE}
+ @${ECHO_CMD} IRCTYPE_DEF=\"IRC_DREAMFORGE\" >> ${CONFIG_CACHE}
+ @${ECHO_CMD} IRCTYPE_DEF2=\"IRC_UNREAL\" >> ${CONFIG_CACHE}
.elif defined(WITH_ULT2)
- @${ECHO_CMD} IRCTYPE=4 >> ${WRKSRC}/config.cache
- @${ECHO_CMD} IRCTYPE_DEF="IRC_DREAMFORGE" >> ${WRKSRC}/config.cache
- @${ECHO_CMD} IRCTYPE_DEF2="IRC_ULTIMATE" >> ${WRKSRC}/config.cache
+ @${ECHO_CMD} IRCTYPE=4 >> ${CONFIG_CACHE}
+ @${ECHO_CMD} IRCTYPE_DEF=\"IRC_DREAMFORGE\" >> ${CONFIG_CACHE}
+ @${ECHO_CMD} IRCTYPE_DEF2=\"IRC_ULTIMATE\" >> ${CONFIG_CACHE}
.elif defined(WITH_ULT3)
- @${ECHO_CMD} IRCTYPE=5 >> ${WRKSRC}/config.cache
- @${ECHO_CMD} IRCTYPE_DEF="IRC_BAHAMUT" >> ${WRKSRC}/config.cache
- @${ECHO_CMD} IRCTYPE_DEF2="IRC_ULTIMATE3" >> ${WRKSRC}/config.cache
+ @${ECHO_CMD} IRCTYPE=5 >> ${CONFIG_CACHE}
+ @${ECHO_CMD} IRCTYPE_DEF=\"IRC_BAHAMUT\" >> ${CONFIG_CACHE}
+ @${ECHO_CMD} IRCTYPE_DEF2=\"IRC_ULTIMATE3\" >> ${CONFIG_CACHE}
.elif defined(WITH_HYB)
- @${ECHO_CMD} IRCTYPE=6 >> ${WRKSRC}/config.cache
- @${ECHO_CMD} IRCTYPE_DEF="IRC_HYBRID" >> ${WRKSRC}/config.cache
+ @${ECHO_CMD} IRCTYPE=6 >> ${CONFIG_CACHE}
+ @${ECHO_CMD} IRCTYPE_DEF=\"IRC_HYBRID\" >> ${CONFIG_CACHE}
.elif defined(WITH_VIA)
- @${ECHO_CMD} IRCTYPE=7 >> ${WRKSRC}/config.cache
- @${ECHO_CMD} IRCTYPE_DEF="IRC_BAHAMUT" >> ${WRKSRC}/config.cache
- @${ECHO_CMD} IRCTYPE_DEF2="IRC_VIAGRA" >> ${WRKSRC}/config.cache
+ @${ECHO_CMD} IRCTYPE=7 >> ${CONFIG_CACHE}
+ @${ECHO_CMD} IRCTYPE_DEF=\"IRC_BAHAMUT\" >> ${CONFIG_CACHE}
+ @${ECHO_CMD} IRCTYPE_DEF2=\"IRC_VIAGRA\" >> ${CONFIG_CACHE}
.elif defined(WITH_PTL)
- @${ECHO_CMD} IRCTYPE=8 >> ${WRKSRC}/config.cache
- @${ECHO_CMD} IRCTYPE_DEF="IRC_PTLINK" >> ${WRKSRC}/config.cache
+ @${ECHO_CMD} IRCTYPE=8 >> ${CONFIG_CACHE}
+ @${ECHO_CMD} IRCTYPE_DEF=\"IRC_PTLINK\" >> ${CONFIG_CACHE}
+.endif
+# XXX Add here other arch which needs -fPIC :-)
+.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
+ @${ECHO_CMD} CC_FLAGS=\"-O -fPIC\" >> ${CONFIG_CACHE}
+.else
+ @${ECHO_CMD} CC_FLAGS=\"-O\" >> ${CONFIG_CACHE}
.endif
#}}}