1999-12-31 22:54:35 +01:00
|
|
|
# New ports collection makefile for: gnofract4d
|
|
|
|
# Date created: 30 Dec 1999
|
|
|
|
# Whom: Will Andrews <andrews@technologist.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-04-14 12:48:02 +02:00
|
|
|
PORTNAME= gnofract4d
|
2009-11-02 20:13:13 +01:00
|
|
|
PORTVERSION= 3.11
|
2010-03-28 08:47:48 +02:00
|
|
|
PORTREVISION= 2
|
2000-06-01 18:25:45 +02:00
|
|
|
CATEGORIES= graphics gnome
|
2009-01-17 13:27:07 +01:00
|
|
|
MASTER_SITES= SF
|
1999-12-31 22:54:35 +01:00
|
|
|
|
2009-11-02 20:13:13 +01:00
|
|
|
MAINTAINER= sylvio@FreeBSD.org
|
2003-02-20 19:08:19 +01:00
|
|
|
COMMENT= Weird GNOME fractal generator
|
1999-12-31 22:54:35 +01:00
|
|
|
|
2010-02-05 12:46:55 +01:00
|
|
|
LIB_DEPENDS= jpeg.11:${PORTSDIR}/graphics/jpeg
|
2009-11-02 20:13:13 +01:00
|
|
|
|
2006-06-28 07:59:53 +02:00
|
|
|
USE_GNOME= gnomehack gnomeprefix gnometarget intlhack libgnomeui lthack \
|
|
|
|
pygtk2
|
2005-04-26 14:45:31 +02:00
|
|
|
USE_PYTHON= yes
|
|
|
|
USE_PYDISTUTILS=yes
|
2000-10-05 09:10:50 +02:00
|
|
|
|
2009-01-17 13:27:07 +01:00
|
|
|
PORTDOCS= README COPYING
|
2007-07-30 11:42:28 +02:00
|
|
|
INSTALLS_EGGINFO= yes
|
2008-04-30 02:45:12 +02:00
|
|
|
PYDISTUTILS_EGGINFODIR= ${PYTHON_SITELIBDIR}
|
2006-06-28 07:59:53 +02:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2005-04-26 14:45:31 +02:00
|
|
|
post-patch:
|
2008-04-30 02:45:12 +02:00
|
|
|
# where to install libraries
|
|
|
|
@${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 07:59:53 +02:00
|
|
|
@${FIND} ${WRKSRC} -name '*.py' -exec \
|
2008-04-30 02:45:12 +02:00
|
|
|
${REINPLACE_CMD} \
|
|
|
|
-e "s,\([\"']\)share/\([^/]*\)/gnofract4d\1,\1${DATADIR:C/${PREFIX}\///}/\2\1," {} \;
|
|
|
|
|
|
|
|
# libraries again
|
2006-06-28 07:59:53 +02:00
|
|
|
@${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX}," ${WRKSRC}/gnofract4d
|
2008-04-30 02:45:12 +02:00
|
|
|
|
2009-01-17 13:27:07 +01:00
|
|
|
# fix NOPORTDOCS
|
2009-11-03 01:34:39 +01:00
|
|
|
@${REINPLACE_CMD} -e '236,238d' ${WRKSRC}/setup.py
|
2008-04-30 02:45:12 +02:00
|
|
|
|
|
|
|
# fixup library detection
|
2006-11-17 15:55:41 +01:00
|
|
|
@${REINPLACE_CMD} -e "s/libpng/libpng12/" ${WRKSRC}/setup.py
|
2008-04-30 02:45:12 +02:00
|
|
|
@${REINPLACE_CMD} \
|
|
|
|
-e "s,/usr/include/jpeglib.h,${LOCALBASE}/include/jpeglib.h," \
|
|
|
|
${WRKSRC}/setup.py
|
2004-09-18 19:49:31 +02:00
|
|
|
|
2009-01-17 13:27:07 +01:00
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
@${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}/
|
|
|
|
.endif
|
|
|
|
|
2006-06-28 07:59:53 +02:00
|
|
|
.include <bsd.port.post.mk>
|