1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-05 22:43:24 +00:00
freebsd-ports/x11-toolkits/py-wxPython28/Makefile
2000-05-20 14:22:59 +00:00

55 lines
1.6 KiB
Makefile

# New ports collection makefile for: wxPython
# Date created: September 18, 1999
# Whom: nectar@FreeBSD.ORG
#
# $FreeBSD$
#
PORTNAME= py-wxPython
PORTVERSION= 2.1.15
CATEGORIES= x11-toolkits python
MASTER_SITES= http://alldunn.com/wxPython/dist/ \
http://www.nectar.com/distfiles/
DISTNAME= wxPython-${PORTVERSION}
MAINTAINER= nectar@FreeBSD.ORG
BUILD_DEPENDS= python1.5:${PORTSDIR}/lang/python
LIB_DEPENDS= wx_gtk.2:${PORTSDIR}/x11-toolkits/wxgtk
RUN_DEPENDS= python1.5:${PORTSDIR}/lang/python
WRKSRC= ${WRKDIR}/${DISTNAME}/src
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
HELPERLIBDIR= ${PREFIX}/lib
HTMLSRC= ${WRKSRC}/../modules/html
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
cd ${HTMLSRC} && ../../distrib/build.py
# XXX The modification time on a file is wrong. If we don't do
# something, then we'll have to depend upon SWIG.
${TOUCH} ${WRKSRC}/gtk/grid.cpp ${WRKSRC}/gtk/grid.py
post-build:
@(cd ${HTMLSRC}; \
${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${ALL_TARGET})
post-install:
@(cd ${HTMLSRC}; \
${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} install)
.include <bsd.port.mk>