aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits/py-wax/Makefile
blob: da49ab66295d192d0abfc395dc09518a9d758bc1 (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
# New ports collection makefile for:    wax
# Date created:     2006-04-03
# Whom:         Nicola Vitale   <nivit@email.it>
#
# $FreeBSD$
#

PORTNAME=   wax
PORTVERSION=    0.3.33
PORTREVISION=   2
CATEGORIES= x11-toolkits devel python
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}gui
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}

MAINTAINER= nivit@FreeBSD.org
COMMENT=    A user-friendly layer on top of wxPython

RUN_DEPENDS=    ${PYTHON_SITELIBDIR}/${WX_PYTHON_DIR}/wxPython/_wx.py:${PORTSDIR}/x11-toolkits/py-wxPython26

NO_BUILD=   yes
USE_PYTHON= yes

DATADIR=    ${PYTHON_SITELIBDIR}

FIND_DIRS=  -type d \! -empty
FIND_DATA=  -type f
FIND_DELETE=    \( -name "*.txt" -and -maxdepth 2 \)

.if !defined(WITH_EXAMPLES)
PLIST_SUB=  PORTEXAMPLES="@comment "
.else
PLIST_SUB=  PORTEXAMPLES=""
.endif

do-install:
    @cd ${WRKSRC} && ${FIND} . ${FIND_DIRS} -exec ${MKDIR} ${DATADIR}/{} \;
    @cd ${WRKSRC} && ${FIND} . ${FIND_DELETE} -delete
    @cd ${WRKSRC} && ${FIND} . ${FIND_DATA} -exec ${INSTALL_DATA} {} ${DATADIR}/{} \;
.if !defined(WITH_EXAMPLES)
    ${RM} -r ${DATADIR}/${PORTNAME}/examples
.else
    ${MV} ${DATADIR}/${PORTNAME}/examples ${EXAMPLESDIR}
.endif

.if defined(WITH_UNICODE)
WX_PYTHON_DIR=  wx-2.6-gtk2-unicode
.else
WX_PYTHON_DIR=  wx-2.6-gtk2-ansi
.endif

.include <bsd.port.mk>