blob: b927818bfaacd5832301af6319293198593648db (
plain)
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
|
# New ports collection makefile for: java-xmms2
# Date created: 18 Mar 2006
# Whom: Alexander Botero-Lowry <alex@foxybanana.com>
#
# $FreeBSD$
#
PORTREVISION= 1
CATEGORIES= audio java
PKGNAMEPREFIX= java-
MAINTAINER= alex@foxybanana.com
COMMENT= Java Bindings for XMMS2
BUILD_DEPENDS+= swig:${PORTSDIR}/devel/swig13 \
${LOCALBASE}/lib/libxmmsclient.so:${PORTSDIR}/audio/xmms2
RUN_DEPENDS+= ${LOCALBASE}/lib/libxmmsclient.so:${PORTSDIR}/audio/xmms2
MASTERDIR= ${.CURDIR}/../xmms2
USE_JAVA= yes
JAVA_VERSION= 1.4+
INSTALLS_SHLIB= yes
PLIST= ${.CURDIR}/pkg-plist
SCONS_BUILDENV= JAVA_HOME=${JAVA_HOME}
SCONS_TARGET= src/clients/lib/java
XMMS2_SLAVE= java
# Crazy workaround for a bug introduced sometime after DrDoolittle that
# causes the java bindings to not be built completely on the first
# run of scons.
do-build:
@cd ${WRKSRC} && \
${SETENV} ${SCONS_BUILDENV} ${SCONS_BIN} ${SCONS_ENV} ${SCONS_ARGS} \
${SCONS_TARGET}
@cd ${WRKSRC} && \
${SETENV} ${SCONS_BUILDENV} ${SCONS_BIN} ${SCONS_ENV} ${SCONS_ARGS} \
${SCONS_TARGET}
do-install:
@cd ${WRKSRC} && ${INSTALL_DATA} src/clients/lib/java/xmms2java.jar \
${JAVAJARDIR}/xmms2java.jar
@cd ${WRKSRC} && ${INSTALL_DATA} src/clients/lib/java/libxmms2java.so \
${PREFIX}/lib/libxmms2java.so
.include "${MASTERDIR}/Makefile"
|