blob: 90084519179601b53a260583747bfe221dedf931 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# $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
PLUGIN_NAME=IcedTea-Web Plugin
PACKAGE_URL=http://icedtea.classpath.org/wiki/IcedTea-Web
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_NAME="\"${PLUGIN_NAME}\"" \
-DPLUGIN_VERSION="\"${PLUGIN_VERSION}\"" \
-DPACKAGE_URL="\"${PACKAGE_URL}\"" \
-DMOZILLA_VERSION_COLLAPSED="${MOZILLA_VERSION2}" \
${PLUGIN_CFLAGS}
LDFLAGS+= ${PLUGIN_LIBS}
.include <bsd.lib.mk>
|