1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-30 21:49:25 +00:00
freebsd-ports/x11-toolkits/py-wxPython28/Makefile
Jacques Vidrine e256829050 BUILD_DEPENDS: wxgtk must be installed to build.
Reported by:	Josh Bonczkowski <josh@goblin.bonczkowski.net>
2000-10-02 17:04:07 +00:00

42 lines
1.1 KiB
Makefile

# New ports collection makefile for: wxPython
# Date created: September 18, 1999
# Whom: nectar@FreeBSD.ORG
#
# $FreeBSD$
#
PORTNAME= py-wxPython
PORTVERSION= 2.2.1
CATEGORIES= x11-toolkits python
MASTER_SITES= http://alldunn.com/wxPython/dist/
DISTNAME= wxPython-${PORTVERSION}
MAINTAINER= nectar@FreeBSD.ORG
BUILD_DEPENDS= wx-config:${PORTSDIR}/x11-toolkits/wxgtk
LIB_DEPENDS= wx_gtk.2:${PORTSDIR}/x11-toolkits/wxgtk
WRKSRC= ${WRKDIR}/${DISTNAME}/src
USE_PYTHON= YES
USE_GMAKE= YES
USE_NEWGCC= YES
MAKE_ENV= "LN_S=${LN} -s" "INSTALL_DATA=${INSTALL_DATA}"
ALL_TARGET= default
INSTALL_TARGET= install-freebsd
TARGETDIR= ${PREFIX}/lib/python1.5/site-packages/wxPython
TARGETDIR= ${PYTHON_SITELIBDIR}/wxPython
HELPERLIBDIR= ${PREFIX}/lib
do-configure:
${SED} -e "s:%CFLAGS%:${CFLAGS} `gtk12-config --cflags`:" \
-e "s:%LFLAGS%:`gtk12-config --libs` -L${WRKSRC}:" \
-e "s:%TARGETDIR%:${TARGETDIR}:" \
-e "s:%HELPERLIBDIR%:${HELPERLIBDIR}:" \
-e "s:%CXX%:${CXX}:" -e "s:%WRKSRC%:${WRKSRC}:" \
${FILESDIR}/build.local > ${WRKSRC}/../build.local
cd ${WRKSRC} && ../distrib/build.py
.include <bsd.port.mk>