blob: 2f9461630291c8e89dd8754f63101cca0b441e96 (
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
# New ports collection makefile for: mercury
# Date created: 1 May 2005
# Whom: Thierry Thomas <thierry@pompo.net>
#
# $FreeBSD$
#
PORTNAME= mercury
DISTVERSION= 1.9RC3
PORTREVISION= 1
PORTEPOCH= 6
CATEGORIES= net-im java
MASTER_SITES= ${MASTER_SITE_LOCAL} \
http://download.mercury.to/1.9/ \
http://dknapp.ca/mirror/mercury/beta/
MASTER_SITE_SUBDIR= thierry/${PORTNAME}
DISTNAME= ${DISTVERSION}
DIST_SUBDIR= ${PORTNAME}
# Maintainership available: drop me a line if interested
MAINTAINER= thierry@FreeBSD.org
COMMENT= Java Based MSN client
RUN_DEPENDS= java:${PORTSDIR}/java/javavmwrapper \
jmfinit:${PORTSDIR}/java/jmf
USE_ZIP= yes
USE_JAVA= yes
JAVA_VERSION= 1.5+
NO_BUILD= yes
JMF_JARS= customizer jmf mediaplayer multiplayer
SUB_FILES= Mercury_Messenger
SUB_LIST= JAVA_VERSION="${JAVA_VERSION}" JMF_JARS="${JMF_JARS:S|$|.jar|}"
LINSTDIR?= share/Mercury
INSTDIR= ${PREFIX}/${LINSTDIR}
PLIST_SUB= INSTDIR=${LINSTDIR}
SUB_DIRS= lib resources
DIR2PRUNE= resources/AppData/Games \
resources/AppData/Plugins
DESKTOP_ENTRIES="Mercury Messenger" "${COMMENT}" \
"${INSTDIR}/resources/online.png" \
"${SUB_FILES}" \
"Application;InstantMessaging;Java;Network;" true
.if defined(WITH_VIDEO) # Experimental
VIDJAR= VidConf-libs.jar
EXTRACT_ONLY+= ${DISTNAME}${EXTRACT_SUFX}
DISTFILES+= ${DISTNAME}${EXTRACT_SUFX} ${VIDJAR}
PLIST_SUB+= VID="" VIDJAR="${VIDJAR}"
.else
PLIST_SUB+= VID="@comment " VIDJAR=""
.endif
.include <bsd.port.pre.mk>
.if ${ARCH} != "i386"
WITHOUT_TRAY= yes
.endif
.if !defined(WITHOUT_TRAY)
LIB_DEPENDS+= tray.0:${PORTSDIR}/x11-toolkits/jdic
.endif
post-extract:
${MKDIR} ${WRKDIR}/icons
cd ${WRKDIR}/icons && \
${EXTRACT_CMD} ${WRKDIR}/resources/AppData/StatusIcons/MMercury.zip
do-install:
${MKDIR} ${INSTDIR}
${INSTALL_SCRIPT} ${WRKDIR}/${SUB_FILES} ${INSTDIR}
${LN} -sf ${INSTDIR}/${SUB_FILES} ${PREFIX}/bin
.for sd in ${SUB_DIRS}
cd ${WRKDIR} && ${FIND} ${sd} -type d -exec ${MKDIR} ${INSTDIR}/{} \;
cd ${WRKDIR} && ${FIND} ${sd} -type f -exec ${INSTALL_DATA} {} ${INSTDIR}/{} \;
.endfor
${INSTALL_DATA} ${WRKDIR}/icons/online.png ${INSTDIR}/resources
.for ed in ${DIR2PRUNE}
${TOUCH} ${INSTDIR}/${ed}/.keep_me
.endfor
.if defined(WITH_VIDEO)
${INSTALL_DATA} ${_DISTDIR}/${VIDJAR} ${INSTDIR}/lib
.endif
.include <bsd.port.post.mk>
|