1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-26 09:46:09 +00:00

The Perl module was broken in gaim since perl.h defined STATIC which

broke the plug-in initialization.  To fix this, check for a namespace
friendly GAIM_STATIC_PRPL macro definition to decide if we need to build
modules statically.

Obtained from:	GAIM CVS
This commit is contained in:
Joe Marcus Clarke 2004-02-27 20:21:58 +00:00
parent 66f55d03e6
commit 5c2f7eb4df
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=102307
4 changed files with 42 additions and 2 deletions

View File

@ -6,7 +6,7 @@
PORTNAME= gaim
PORTVERSION= 0.75
PORTREVISION= 6
PORTREVISION= 7
CATEGORIES?= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}

View File

@ -0,0 +1,20 @@
--- src/plugin.h.orig Fri Feb 27 15:18:51 2004
+++ src/plugin.h Fri Feb 27 15:19:15 2004
@@ -117,7 +117,7 @@
/**
* Handles the initialization of modules.
*/
-#if !defined(GAIM_PLUGINS) || defined(STATIC)
+#if !defined(GAIM_PLUGINS) || defined(GAIM_STATIC_PRPL)
# define GAIM_INIT_PLUGIN(pluginname, initfunc, plugininfo) \
gboolean gaim_init_##pluginname##_plugin(void) { \
GaimPlugin *plugin = gaim_plugin_new(TRUE, NULL); \
@@ -125,7 +125,7 @@
initfunc((plugin)); \
return gaim_plugin_register(plugin); \
}
-#else /* GAIM_PLUGINS && !STATIC */
+#else /* GAIM_PLUGINS && !GAIM_STATIC_PRPL */
# define GAIM_INIT_PLUGIN(pluginname, initfunc, plugininfo) \
G_MODULE_EXPORT gboolean gaim_init_plugin(GaimPlugin *plugin) { \
plugin->info = &(plugininfo); \

View File

@ -6,7 +6,7 @@
PORTNAME= gaim
PORTVERSION= 0.75
PORTREVISION= 6
PORTREVISION= 7
CATEGORIES?= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}

View File

@ -0,0 +1,20 @@
--- src/plugin.h.orig Fri Feb 27 15:18:51 2004
+++ src/plugin.h Fri Feb 27 15:19:15 2004
@@ -117,7 +117,7 @@
/**
* Handles the initialization of modules.
*/
-#if !defined(GAIM_PLUGINS) || defined(STATIC)
+#if !defined(GAIM_PLUGINS) || defined(GAIM_STATIC_PRPL)
# define GAIM_INIT_PLUGIN(pluginname, initfunc, plugininfo) \
gboolean gaim_init_##pluginname##_plugin(void) { \
GaimPlugin *plugin = gaim_plugin_new(TRUE, NULL); \
@@ -125,7 +125,7 @@
initfunc((plugin)); \
return gaim_plugin_register(plugin); \
}
-#else /* GAIM_PLUGINS && !STATIC */
+#else /* GAIM_PLUGINS && !GAIM_STATIC_PRPL */
# define GAIM_INIT_PLUGIN(pluginname, initfunc, plugininfo) \
G_MODULE_EXPORT gboolean gaim_init_plugin(GaimPlugin *plugin) { \
plugin->info = &(plugininfo); \