aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/pyfind/Makefile
blob: ab4866c4c9ea53d57cc91ccfb3303b10ac37469a (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
# New ports collection makefile for:    pyfind
# Date created:             5 April 2001
# Whom:                         Maxim Sobolev <sobomax@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   pyfind
PORTVERSION=    0.7.1
CATEGORIES= sysutils python gnome
MASTER_SITES=   http://homepage.ntlworld.com/kinematics/downloads/
DISTNAME=   ${PORTNAME:S/f/F/}-${PORTVERSION}

MAINTAINER= sobomax@FreeBSD.org

BUILD_DEPENDS=  ${PYTHON_LIBDIR}/site-packages/_gnomemodule.so:${PORTSDIR}/x11-toolkits/py-gnome
RUN_DEPENDS=    ${PYTHON_LIBDIR}/site-packages/_gnomemodule.so:${PORTSDIR}/x11-toolkits/py-gnome

USE_PYTHON= yes

USE_X_PREFIX=   yes

BINDIR=     ${PREFIX}/bin
GNOMEBASE=  ${PREFIX}/share/gnome
ICONDIR=    ${GNOMEBASE}/pixmaps
MYCONFDIR=  ${PREFIX}/etc/gnome/config/pyFind
MYDATADIR=  ${GNOMEBASE}/pyFind
MYDOCDIR=   ${PREFIX}/share/doc/pyFind

do-build:
    @${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}
    @${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}

do-install:
    ${MKDIR} ${MYCONFDIR}
    ${MKDIR} ${MYDOCDIR}
    ${MKDIR} ${MYDATADIR}/glade
    ${MKDIR} ${MYDATADIR}/pixmaps
    ${MKDIR} ${MYDATADIR}/pyFind
    ${INSTALL_SCRIPT} ${WRKSRC}/pyfind ${MYDATADIR}
    ${INSTALL_DATA} ${WRKSRC}/glade/*.glade ${MYDATADIR}/glade
    ${INSTALL_DATA} ${WRKSRC}/pixmaps/*.png ${MYDATADIR}/pixmaps
    ${INSTALL_DATA} ${WRKSRC}/pixmaps/pyfind_icon.png ${ICONDIR}
.for suf in py pyc pyo
    ${INSTALL_DATA} ${WRKSRC}/pyFind/*.${suf} ${MYDATADIR}/pyFind
.endfor
    ${INSTALL_DATA} ${WRKSRC}/pyfind.desktop ${GNOMEBASE}/apps/Development
    ${INSTALL_MAN} ${WRKSRC}/doc/* ${MYDOCDIR}
    @printf "#!/bin/sh\n${PYTHON_CMD} ${MYDATADIR}/pyfind" > \
        ${WRKDIR}/pyfind.sh
    ${INSTALL_SCRIPT} ${WRKDIR}/pyfind.sh ${PREFIX}/bin/pyfind

.include <bsd.port.mk>