1999-02-22 16:59:16 -05:00
|
|
|
# New ports collection makefile for: py-gtk
|
1999-03-14 22:17:10 -05:00
|
|
|
# Version required: 0.5.12
|
1998-12-31 00:40:14 -05:00
|
|
|
# Date created: 12/26/1998
|
|
|
|
# Whom: nectar@FreeBSD.ORG
|
1998-06-02 03:41:06 -04:00
|
|
|
#
|
1999-03-14 22:17:10 -05:00
|
|
|
# $Id: Makefile,v 1.21 1999/02/28 18:48:50 nectar Exp $
|
1998-06-02 03:41:06 -04:00
|
|
|
#
|
|
|
|
|
1999-03-14 22:17:10 -05:00
|
|
|
DISTNAME= pygtk-0.5.12
|
|
|
|
PKGNAME= py-gtk-0.5.12
|
1998-08-07 18:56:48 -04:00
|
|
|
CATEGORIES= x11-toolkits python
|
1998-08-07 03:48:16 -04:00
|
|
|
MASTER_SITES= ftp://ftp.daa.com.au/pub/james/python/ \
|
|
|
|
ftp://ftp.gimp.org/pub/gtk/python/ \
|
1998-06-03 03:19:51 -04:00
|
|
|
ftp://infosoc.uni-koeln.de/pub/ftp.gimp.org/pub/gtk/python/ \
|
|
|
|
ftp://ftp.cs.umn.edu/pub/gimp/gtk/python/ \
|
|
|
|
ftp://stef.u-picardie.fr/mirror/ftp.gimp.org/gtk/python/
|
1998-06-02 03:41:06 -04:00
|
|
|
|
1998-12-31 00:40:14 -05:00
|
|
|
MAINTAINER= nectar@FreeBSD.ORG
|
1998-10-15 10:31:45 -04:00
|
|
|
|
1998-06-02 03:41:06 -04:00
|
|
|
BUILD_DEPENDS= python:${PORTSDIR}/lang/python
|
1999-03-14 22:17:10 -05:00
|
|
|
LIB_DEPENDS= gdk_imlib.2:${PORTSDIR}/graphics/imlib
|
1998-06-02 03:41:06 -04:00
|
|
|
RUN_DEPENDS= python:${PORTSDIR}/lang/python
|
1998-08-07 15:20:19 -04:00
|
|
|
|
1998-06-02 03:41:06 -04:00
|
|
|
GNU_CONFIGURE= yes
|
1999-03-14 22:17:10 -05:00
|
|
|
USE_GMAKE= yes
|
|
|
|
CONFIGURE_ENV= GTK_CONFIG=${X11BASE}/bin/gtk12-config
|
1998-06-02 03:41:06 -04:00
|
|
|
MAKE_FLAGS= OPT="${CFLAGS}"
|
|
|
|
|
1999-03-14 22:17:10 -05:00
|
|
|
PLIST= ${WRKDIR}/PLIST
|
|
|
|
SORT?= sort
|
|
|
|
|
|
|
|
DOCDIR= share/doc/py-gtk
|
|
|
|
DOCFILES= README MAPPING
|
|
|
|
|
|
|
|
EXAMDIR= share/examples/py-gtk
|
|
|
|
EXAMSUBDIRS= glade ide imlib neil simple testgtk
|
|
|
|
EXAMFILES= glade/README glade/test2.glade glade/glade.py \
|
|
|
|
glade/test.glade ide/gtkcons.py ide/gtkdb.py \
|
|
|
|
ide/edit.py ide/browse.py ide/minibreak.xpm ide/README \
|
|
|
|
ide/gtkprof.py ide/pyide.py ide/break.xpm \
|
|
|
|
ide/return.xpm ide/next.xpm ide/continue.xpm \
|
|
|
|
ide/step.xpm ide/edit.xpm ide/run.xpm ide/quit.xpm \
|
|
|
|
imlib/view.py neil/TAppli.py neil/TAppli2.py \
|
|
|
|
neil/TAppli3.py neil/TAppli4.py neil/TAppli5.py \
|
|
|
|
neil/bomb.xpm neil/gtk-logo.xpm neil/question.xpm \
|
|
|
|
neil/notebook.py neil/README simple/hello1.py \
|
|
|
|
simple/hello2.py simple/simple1.py simple/simple2.py \
|
|
|
|
simple/tooltip1.py simple/tooltip2.py \
|
|
|
|
simple/scribble.py simple/dnd.py simple/dndpixmap.py \
|
|
|
|
simple/README testgtk/testgtk.py testgtk/test.xpm \
|
|
|
|
testgtk/testgtkrc testgtk/README
|
|
|
|
|
1999-02-22 16:59:16 -05:00
|
|
|
# NOTE: for packaging to work properly, this port should be
|
|
|
|
# built with PREFIX set the same as when the python port
|
|
|
|
# was built.
|
|
|
|
|
1999-03-14 22:17:10 -05:00
|
|
|
pre-install:
|
|
|
|
@${CP} ${PKGDIR}/PLIST ${PLIST}
|
|
|
|
@${CP} /dev/null ${PLIST}.dirrm
|
|
|
|
.for d in ${EXAMSUBDIRS}
|
|
|
|
@${MKDIR} ${PREFIX}/${EXAMDIR}/${d}
|
|
|
|
@${ECHO} @dirrm ${EXAMDIR}/${d} >> ${PLIST}.dirrm
|
|
|
|
.endfor
|
|
|
|
@${ECHO} @dirrm ${EXAMDIR} >> ${PLIST}.dirrm
|
|
|
|
.for f in ${EXAMFILES}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/${f} \
|
|
|
|
${PREFIX}/${EXAMDIR}/${f}
|
|
|
|
@${ECHO} ${EXAMDIR}/${f} >> ${PLIST}
|
|
|
|
.endfor
|
1998-06-02 03:41:06 -04:00
|
|
|
.if !defined(NOPORTDOCS)
|
1999-03-14 22:17:10 -05:00
|
|
|
@${MKDIR} ${PREFIX}/${DOCDIR}
|
|
|
|
@${ECHO} @dirrm ${DOCDIR} >> ${PLIST}.dirrm
|
|
|
|
.for f in ${DOCFILES}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/${DOCDIR}/${f}
|
|
|
|
@${ECHO} ${DOCDIR}/${f} >> ${PLIST}
|
|
|
|
.endfor
|
1998-06-02 03:41:06 -04:00
|
|
|
.endif
|
1999-03-14 22:17:10 -05:00
|
|
|
@${SORT} -r ${PLIST}.dirrm >> ${PLIST}
|
1998-06-02 03:41:06 -04:00
|
|
|
|
1998-12-31 00:40:14 -05:00
|
|
|
.include <bsd.port.mk>
|