diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2006-01-02 21:29:30 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2006-01-02 21:29:30 +0000 |
commit | 4e74668975b712939edd01b0382750d9252578ca (patch) | |
tree | ae2ba51f6215f5d604400903763e8bf8589faec8 /biology/L-Breeder/Makefile | |
parent | New port: net/nepenthes (resend with shar) (diff) |
possible fix to unbreak biology/L-Breeder
L-Breeder is currently marked unfetchable:
http://people.freebsd.org/~fenner/portsurvey/biology.html#L-Breeder
So I tried to investigate the problem and I'm now submitting
my homework so it doesn't get lost.
This is what I noticed:
i) L-Breeder upstream sources have "stagnated for some time,
but now a new simplified version is available" (sic, from
the web site)
So, the fetch issue is resolved. And the pkg-descr is also
updated to reflect the new home page. However:
ii) L-Breeder is now called LBreeder. I have changed PORTNAME
to reflect this, although I don't know if this is the right
thing to do. Should the port be moved to biology/LBreeder?
Or perhaps just leaving PORTNAME pointing to the old name
and then work inside the Makefile to point the build/install
to the correct name?
iii) the sources have been reorganized so I have to update
the port's Makefile to reflect this. The attached patch
works for me under FreeBSD-4.11 (although it's possible
that I may have missed a dependency if I already have a
required library installed in my box. Sorry, I don't have
a tinderbox-like setup to test builds)
iv) the program does not have a version number, nor did I
find one by looking inside the sources. To avoid changing
too much the port I just left PORTVERSION at 1.0 and bumped
PORTREVISION to 6
Finally, do note that I am not a user of LBreeder, so I
cannot test the program myself. I just noticed that by
calling the executable I get a black X screen, that I can
quit by pressing 'q' as documented in Readme.txt, but I
can't tell myself if this is the expected behaviour. Nor
do I know how to use the example files. Caveat emptor.
PR: ports/90073
Submitted by: Fernan Aguero <fernan@iib.unsam.edu.ar>
Approved by: maintainer timeout
Notes
Notes:
svn path=/head/; revision=152608
Diffstat (limited to 'biology/L-Breeder/Makefile')
-rw-r--r-- | biology/L-Breeder/Makefile | 50 |
1 files changed, 18 insertions, 32 deletions
diff --git a/biology/L-Breeder/Makefile b/biology/L-Breeder/Makefile index 6a7ea5e51e14..70f7f156e2c1 100644 --- a/biology/L-Breeder/Makefile +++ b/biology/L-Breeder/Makefile @@ -1,3 +1,4 @@ +# ex:ts=8 # New ports collection makefile for: L-Breeder # Date created: 30 May 2002 # Whom: David Yeske <dyeske@yahoo.com> et al @@ -5,26 +6,23 @@ # $FreeBSD$ # -PORTNAME= L-Breeder +PORTNAME= LBreeder PORTVERSION= 1.0 -PORTREVISION= 5 +PORTREVISION= 6 CATEGORIES= biology -MASTER_SITES= http://pixie.oum.ox.ac.uk/L-Breeder/ -DISTNAME= LBreeder -EXTRACT_SUFX= .tgz +MASTER_SITES= http://www.simonyi.ox.ac.uk/dawkins/software/yan/L-Breeder/ +DISTNAME= ${PORTNAME}-source MAINTAINER= dyeske@yahoo.com COMMENT= Allows you to display and breed L-system forms -LIB_DEPENDS= wx_gtk2_gl-2.4.0:${PORTSDIR}/x11-toolkits/wxgtk24 +LIB_DEPENDS= wx_gtk2_gl-2.4.0:${PORTSDIR}/x11-toolkits/wxgtk24 \ + glut.3:${PORTSDIR}/graphics/libglut -DEPRECATED= "mastersite disappeared, no longer maintained by author" -EXPIRATION_DATE= 2005-12-31 - -WRKSRC= ${WRKDIR}/LBreeder/LBreeder -PATCH_WRKSRC= ${WRKDIR}/LBreeder -PLIST_FILES= bin/L-Breeder +NO_WRKSUBDIR= yes +BUILD_WRKSRC= ${WRKSRC}/Unix +USE_ZIP= yes USE_X_PREFIX= yes USE_GL= yes USE_GMAKE= yes @@ -42,26 +40,14 @@ pre-everything:: @${ECHO_MSG} "by defining WITH_OPTIMIZED_CFLAGS" .endif -post-patch: - @${FIND} ${WRKDIR} -type f -name Makefile | \ - ${XARGS} -n 10 ${REINPLACE_CMD} -E -e \ - 's|/usr/lib/libm.a||; \ - s|-ldl||; \ - s|-lgtk||; \ - s|-lgmodule||; \ - s|-lpthread||; \ - s|-lgthread||; \ - s|/usr/lib/libGL.a|-lGL|; \ - s|/usr/lib/libGLU.so|-lGLU|; \ - s|-O2|"${CFLAGS} ${PTHREAD_CFLAGS}"|; \ - s|-lglib||; \ - s|g\+\+|${CXX} -I${X11BASE}/include|; \ - s|-lgdk||; \ - s|wx-config|${WX_CONFIG}|; \ - s|-lwx_gtk[[:space:]]|`${WX_CONFIG} --libs`|; \ - s|-lwx_gtk_gl|-lwx_gtk2_gl-2.4|' - + do-install: - @${INSTALL_PROGRAM} ${WRKSRC}/L-Breeder ${PREFIX}/bin + @${INSTALL_PROGRAM} ${BUILD_WRKSRC}/${PORTNAME} ${PREFIX}/bin +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} + @${INSTALL_DATA} ${WRKSRC}/documentation/* ${DOCSDIR} +.endif + @${MKDIR} ${EXAMPLESDIR} + @${INSTALL_DATA} ${WRKSRC}/Lsystems/* ${EXAMPLESDIR} .include <bsd.port.mk> |