blob: dca08eaddb4f5370e0712dfd7738aa7ab6c14773 (
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: pylafax
# Date created: 6 January 2005
# Whom: Michael Reifenberger (mike@Reifenberger.com)
#
# $FreeBSD$
#
PORTNAME= pyla
PORTVERSION= 1.1.7.1
CATEGORIES= comms python
MASTER_SITES= http://www.teamsw.it/pyla/download/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= pyla${PORTVERSION}
EXTRACT_SUFX= .tgz
MAINTAINER= mike@Reifenberger.com
COMMENT= Hylafax client written in Python
#LIB_DEPENDS= lirc_client.0:${PORTSDIR}/comms/lirc
WRKSRC= ${WRKDIR}/${PORTNAME}
DATADIR= ${PREFIX}/lib/pyla
USE_PYTHON= yes
PLIST= ${WRKDIR}/pkg-plist
.include <bsd.port.pre.mk>
do-build:
@(cd ${FILESDIR} && ${CP} pyla.sh ${WRKDIR})
@(cd ${WRKDIR} && ${REINPLACE_CMD} \
-e "s|%%PREFIX%%|${PREFIX}|g;" \
-e "s|%%PYTHON_CMD%%|${PYTHON_CMD}|g;" \
pyla.sh)
@(cd ${WRKSRC} && ${CP} language.en language.db)
pre-install:
@${ECHO_CMD} '@exec ${MKDIR} %D/lib/pyla' > ${PLIST}
@${ECHO_CMD} 'bin/pyla' >> ${PLIST}
@${FIND} ${WRKSRC}/ -type f | \
${SED} -e "s:^${WRKSRC}/:lib/pyla/:g" >> ${PLIST}
@${FIND} -d ${WRKSRC} -type d | \
${SED} -e "s:^${WRKSRC}:@dirrm lib/pyla:g" >> ${PLIST}
do-install:
@${MKDIR} ${DATADIR}
${INSTALL} -m755 ${WRKDIR}/pyla.sh ${PREFIX}/bin/pyla
${TAR} -C ${WRKSRC} --exclude CVS -cf - . | \
${TAR} -C ${DATADIR} --unlink -xf -
.include <bsd.port.post.mk>
|