ports/java/openjdk6/files/Makefile.plugin
Jung-uk Kim 3a28754e3d - Rewrite IcedTea6 plugin patch to improve stability of initialization/shutdown
process.  Update comments in the patch accordingly.
- Tidy up makefile for the plugin.  Remove a hack for include path of libxul,
which is correctly patched from libxul 1.9.2.9_1.  Remove mozilla-plugin.pc from
linker options for pkg-config.  Generally speaking, NPAPI plugins do not need
to link with Gecko engine directly.
- Move run-time dependencies for the plugin to build-time dependencies as it is
completely optional any way.
2010-09-23 21:54:01 +00:00

50 lines
1.3 KiB
Text

# $FreeBSD$
#
# Makefile for IcedTea Mozilla plugin
#
LIB=
SHLIB_NAME= IcedTeaPlugin.so
NO_MAN= yes
NO_PROFILE= yes
SRCS= IcedTeaJavaRequestProcessor.cc \
IcedTeaNPPlugin.cc \
IcedTeaPluginRequestProcessor.cc \
IcedTeaPluginUtils.cc \
IcedTeaScriptablePluginObject.cc
SRCS+= IcedTeaJavaRequestProcessor.h \
IcedTeaNPPlugin.h \
IcedTeaPluginRequestProcessor.h \
IcedTeaPluginUtils.h \
IcedTeaScriptablePluginObject.h
.if empty(DEBUG_FLAGS)
.undef DEBUG_FLAGS
STRIP= -s
.endif
.if !defined(LOCALBASE)
.error "LOCALBASE not defined"
.endif
.if !defined(JDK_UPDATE_VERSION)
.error "JDK_UPDATE_VERSION not defined"
.endif
.if !defined(PLUGIN_VERSION)
.error "PLUGIN_VERSION not defined"
.endif
MOZILLA_VERSION!=${LOCALBASE}/bin/pkg-config --modversion mozilla-plugin
MOZILLA_VERSION2!=/usr/bin/printf "%d%02d%02d%02d" ${MOZILLA_VERSION:C/\./ /g}
PLUGIN_PKG_INC= glib-2.0 gtk+-2.0 mozilla-plugin
PLUGIN_PKG_LIB= glib-2.0 gtk+-2.0
PLUGIN_CFLAGS!= ${LOCALBASE}/bin/pkg-config --cflags ${PLUGIN_PKG_INC}
PLUGIN_LIBS!= ${LOCALBASE}/bin/pkg-config --libs ${PLUGIN_PKG_LIB}
CFLAGS+= -DJDK_UPDATE_VERSION="\"${JDK_UPDATE_VERSION}\"" \
-DPLUGIN_VERSION="\"${PLUGIN_VERSION}\"" \
-DMOZILLA_VERSION_COLLAPSED="${MOZILLA_VERSION2}" \
${PLUGIN_CFLAGS}
LDFLAGS+= ${PLUGIN_LIBS}
.include <bsd.lib.mk>