blob: 989d410ecd845d374da66a86cb382084e1ad7edf (
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
|
# New ports collection makefile for: emesene
# Date created: 31 May 2007
# Whom: Yinghong Liu <relaxbsd@gmail.com>
#
# $FreeBSD$
#
PORTNAME= emesene
PORTVERSION= 0.20070820
CATEGORIES= net-im python
MASTER_SITES= SF
DISTNAME= ${PORTNAME}-r801
MAINTAINER= ports@FreeBSD.org
COMMENT= MSN Messenger client
BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/dbus/__init__.py:${PORTSDIR}/devel/py-dbus \
${PYTHON_SITELIBDIR}/gtk-2.0/pynotify/__init__.py:${PORTSDIR}/devel/py-notify
RUN_DEPENDS:= ${BUILD_DEPENDS}
WRKSRC= ${WRKDIR}/${PORTNAME}
USE_PYTHON= yes
USE_GETTEXT= yes
USE_GNOME= pygtk2
REINPLACE_ARGS= -i ""
DESKTOP_ENTRIES="${PORTNAME}" \
"${COMMENT}" \
"${DATADIR}/themes/default/userPanel.png" \
"${PORTNAME}" \
"Network;InstantMessaging;GTK;" \
"false"
post-patch:
@${CHMOD} a+x ${WRKSRC}/emesene
@${REINPLACE_CMD} -e \
's:Controller.py:${DATADIR}/Controller.py:' ${WRKSRC}/emesene
@${ECHO_CMD} '#!/bin/sh' > ${WRKDIR}/${PORTNAME}.sh
@${ECHO_CMD} 'cd ${DATADIR}&&exec ./${PORTNAME}' >> ${WRKDIR}/${PORTNAME}.sh
do-build:
@${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKDIR}
@${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${WRKDIR}
do-install:
@${INSTALL} -d ${DATADIR}/
@${CP} -R ${WRKSRC}/ ${DATADIR}/
@${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${PREFIX}/bin/${PORTNAME}
.include <bsd.port.mk>
|