freebsd-ports/graphics/gnofract4d/Makefile

43 lines
1.3 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: gnofract4d
# Date created: 30 Dec 1999
# Whom: Will Andrews <andrews@technologist.com>
#
# $FreeBSD$
#
PORTNAME= gnofract4d
2006-11-09 09:02:29 -05:00
PORTVERSION= 3.1
PORTREVISION= 1
CATEGORIES= graphics gnome
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org
2003-02-20 13:08:19 -05:00
COMMENT= Weird GNOME fractal generator
2006-06-28 01:59:53 -04:00
USE_GNOME= gnomehack gnomeprefix gnometarget intlhack libgnomeui lthack \
pygtk2
USE_PYTHON= yes
USE_PYDISTUTILS=yes
USE_GCC= 3.4
2000-10-05 03:10:50 -04:00
2006-06-28 01:59:53 -04:00
PORTDOCS= *
.include <bsd.port.pre.mk>
post-patch:
# where to install libraries
2006-06-28 01:59:53 -04:00
@${REINPLACE_CMD} -e 's,\(^install_lib =\).*,\1${PREFIX}/lib/${PORTNAME},' ${WRKSRC}/setup.cfg
# contain in DATADIR ('share/foobar/gnofract4d' -> 'share/gnofract4d/foobar')
2006-06-28 01:59:53 -04:00
@${FIND} ${WRKSRC} -name '*.py' -exec \
${REINPLACE_CMD} -e "s,\([\"']\)share/\([^/]*\)/gnofract4d\1,\1${DATADIR:C/${PREFIX}\///}/\2\1," {} \;
# libraries again
2006-06-28 01:59:53 -04:00
@${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX}," ${WRKSRC}/gnofract4d
# where to install docs
2006-06-28 01:59:53 -04:00
@${REINPLACE_CMD} -e "s,share/doc/gnofract4d-%s/'.*,${DOCSDIR:C/${PREFIX}\///}'\,," ${WRKSRC}/setup.py
# fixup library detection
@${REINPLACE_CMD} -e "s/libpng/libpng12/" ${WRKSRC}/setup.py
@${REINPLACE_CMD} -e "s,/usr/include/jpeglib.h,${LOCALBASE}/include/jpeglib.h," ${WRKSRC}/setup.py
2006-06-28 01:59:53 -04:00
.include <bsd.port.post.mk>