pkg-autotools: move the libtool patching call out of the autoreconf hook
[buildroot-gz.git] / package / classpath / classpath.mk
blob3825c76daf554d9965d27870fe6d22f3554749e0
1 ################################################################################
3 # classpath
5 ################################################################################
7 CLASSPATH_VERSION = 0.98
8 CLASSPATH_SITE = $(BR2_GNU_MIRROR)/classpath
9 CLASSPATH_CONF_OPTS = \
10 --disable-examples \
11 --disable-plugin \
12 --disable-rpath \
13 --disable-Werror \
14 --disable-gconf-peer \
15 --disable-tools
17 # classpath assumes qt runs on top of X11, but we
18 # don't support qt4 on X11
19 CLASSPATH_CONF_OPTS += --disable-qt-peer
20 CLASSPATH_DEPENDENCIES = host-pkgconf
21 CLASSPATH_AUTORECONF = YES
22 CLASSPATH_LICENSE = GPLv2+ with exception
23 CLASSPATH_LICENSE_FILES = COPYING
25 # Needs ALSA pcm and sequencer (midi) support
26 # pcm is always on for alsa-lib
27 ifeq ($(BR2_PACKAGE_ALSA_LIB_SEQ),y)
28 CLASSPATH_CONF_OPTS += --enable-alsa
29 CLASSPATH_DEPENDENCIES += alsa-lib
30 else
31 CLASSPATH_CONF_OPTS += --disable-alsa
32 endif
34 ifeq ($(BR2_PACKAGE_GMP),y)
35 CLASSPATH_CONF_OPTS += --enable-gmp --with-gmp="$(STAGING_DIR)/usr"
36 CLASSPATH_DEPENDENCIES += gmp
37 else
38 CLASSPATH_CONF_OPTS += --disable-gmp
39 endif
41 ifeq ($(BR2_PACKAGE_LIBGTK2)$(BR2_PACKAGE_XORG7),yy)
42 CLASSPATH_CONF_OPTS += --enable-gtk-peer
43 CLASSPATH_DEPENDENCIES += libgtk2
45 ifeq ($(BR2_PACKAGE_GST_PLUGINS_BASE),y)
46 CLASSPATH_CONF_OPTS += --enable-gstreamer-peer
47 CLASSPATH_DEPENDENCIES += gst-plugins-base
48 else
49 CLASSPATH_CONF_OPTS += --disable-gstreamer-peer
50 endif
52 else
53 CLASSPATH_CONF_OPTS += --disable-gtk-peer --disable-gstreamer-peer
54 endif
56 ifeq ($(BR2_PACKAGE_LIBXML2)$(BR2_PACKAGE_LIBXSLT),yy)
57 CLASSPATH_CONF_OPTS += --enable-xmlj
58 CLASSPATH_DEPENDENCIES += libxml2 libxslt
59 else
60 CLASSPATH_CONF_OPTS += --disable-xmlj
61 endif
63 $(eval $(autotools-package))