3 include $(TOPDIR
)/rules.mk
5 PKG_NAME
:=sablevm-classpath
8 PKG_MD5SUM
:=0aed850f5583199b3d1adb41ac2043ed
10 PKG_SOURCE_URL
:=http
://sablevm.org
/download
/release
/$(PKG_VERSION
)/
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
15 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
17 include $(TOPDIR
)/package
/rules.mk
19 BR2_PACKAGE_LIBSABLEVM_CLASSPATH
=m
20 BR2_PACKAGE_SABLEVM_CLASSPATH_FULL
=m
21 BR2_PACKAGE_SABLEVM_CLASSPATH_MINI
=m
23 $(eval
$(call PKG_template
,LIBSABLEVM_CLASSPATH
,libsablevm-classpath
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
24 $(eval
$(call PKG_template
,SABLEVM_CLASSPATH_FULL
,sablevm-classpath-full
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
25 $(eval
$(call PKG_template
,SABLEVM_CLASSPATH_MINI
,sablevm-classpath-mini
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
27 $(PKG_BUILD_DIR
)/.configured
:
28 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
} ; \
29 $(TARGET_CONFIGURE_OPTS
) \
30 CFLAGS
="$(strip $(TARGET_CFLAGS))" \
31 CPPFLAGS
="-I$(STAGING_DIR)/usr/include" \
32 LDFLAGS
="-L$(STAGING_DIR)/usr/lib" \
34 --target
=$(GNU_TARGET_NAME
) \
35 --host
=$(GNU_TARGET_NAME
) \
36 --build
=$(GNU_HOST_NAME
) \
42 --datadir=/usr
/share \
43 --includedir=/usr
/include \
44 --infodir=/usr
/share
/info \
46 --libexecdir
=/usr
/lib \
47 --localstatedir
=/var \
48 --mandir=/usr
/share
/man \
51 $(DISABLE_LARGEFILE
) \
61 $(PKG_BUILD_DIR
)/.built
:
62 rm -rf
$(PKG_INSTALL_DIR
)
63 mkdir
-p
$(PKG_INSTALL_DIR
)
64 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
65 DESTDIR
="$(PKG_INSTALL_DIR)" \
67 cp .
/files
/mini.classlist
$(PKG_BUILD_DIR
)/lib
/
68 cd
$(PKG_BUILD_DIR
)/lib
; fastjar
-Mcf mini.jar
-@
< mini.classlist
71 $(IPKG_LIBSABLEVM_CLASSPATH
):
72 install -d
-m0755
$(IDIR_LIBSABLEVM_CLASSPATH
)/usr
/lib
/sablevm-classpath
73 cp
-fp
$(PKG_INSTALL_DIR
)/usr
/lib
/sablevm-classpath
/libjava
*.so
$(IDIR_LIBSABLEVM_CLASSPATH
)/usr
/lib
/sablevm-classpath
/
74 install -d
-m0755
$(IDIR_LIBSABLEVM_CLASSPATH
)/usr
/lib
/security
75 cp
-fp
$(PKG_INSTALL_DIR
)/usr
/lib
/security
/classpath.security
$(IDIR_LIBSABLEVM_CLASSPATH
)/usr
/lib
/security
/
76 $(RSTRIP
) $(IDIR_LIBSABLEVM_CLASSPATH
)
77 $(IPKG_BUILD
) $(IDIR_LIBSABLEVM_CLASSPATH
) $(PACKAGE_DIR
)
79 $(IPKG_SABLEVM_CLASSPATH_FULL
):
80 install -d
-m0755
$(IDIR_SABLEVM_CLASSPATH_FULL
)/usr
/share
/sablevm-classpath
81 cp
-fp
$(PKG_INSTALL_DIR
)/usr
/share
/sablevm-classpath
/{libclasspath
,resources
}.jar \
82 $(IDIR_SABLEVM_CLASSPATH_FULL
)/usr
/share
/sablevm-classpath
/
83 $(IPKG_BUILD
) $(IDIR_SABLEVM_CLASSPATH_FULL
) $(PACKAGE_DIR
)
85 $(IPKG_SABLEVM_CLASSPATH_MINI
):
86 install -d
-m0755
$(IDIR_SABLEVM_CLASSPATH_MINI
)/usr
/share
/sablevm-classpath
87 install -m0755
$(PKG_BUILD_DIR
)/lib
/mini.jar \
88 $(IDIR_SABLEVM_CLASSPATH_MINI
)/usr
/share
/sablevm-classpath
/libclasspath.jar
89 $(IPKG_BUILD
) $(IDIR_SABLEVM_CLASSPATH_MINI
) $(PACKAGE_DIR
)