aboutsummaryrefslogtreecommitdiff
path: root/biology/L-Breeder/Makefile
diff options
context:
space:
mode:
authorMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2002-08-21 00:01:59 +0000
committerMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2002-08-21 00:01:59 +0000
commite3aab5688e24f9c2939809841184b14b8bc601b1 (patch)
tree594b9ea3a032cc3cd292842c90461279d0fdaa84 /biology/L-Breeder/Makefile
parent4113022f4650f7163a88631383c947d48fb2c476 (diff)
downloadports-e3aab5688e24f9c2939809841184b14b8bc601b1.tar.gz
ports-e3aab5688e24f9c2939809841184b14b8bc601b1.zip
Notes
Diffstat (limited to 'biology/L-Breeder/Makefile')
-rw-r--r--biology/L-Breeder/Makefile53
1 files changed, 53 insertions, 0 deletions
diff --git a/biology/L-Breeder/Makefile b/biology/L-Breeder/Makefile
new file mode 100644
index 000000000000..a1b0c57698c0
--- /dev/null
+++ b/biology/L-Breeder/Makefile
@@ -0,0 +1,53 @@
+# New ports collection makefile for: L-Breeder
+# Date created: 30 May 2002
+# Whom: David Yeske <dyeske@yahoo.com> et al
+#
+# $FreeBSD$
+#
+
+PORTNAME= L-Breeder
+PORTVERSION= 1.0
+CATEGORIES= biology
+MASTER_SITES= http://pixie.oum.ox.ac.uk/L-Breeder/
+DISTNAME= LBreeder
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= dyeske@yahoo.com
+
+LIB_DEPENDS= wx_gtk_gl.2:${PORTSDIR}/x11-toolkits/wxgtk
+
+WRKSRC= ${WRKDIR}/LBreeder/LBreeder
+PATCH_WRKSRC= ${WRKDIR}/LBreeder
+
+USE_X_PREFIX= yes
+USE_GNOMENG= yes
+USE_GNOME= gtk12
+USE_MESA= yes
+USE_GMAKE= yes
+USE_REINPLACE= yes
+
+pre-everything::
+.ifndef(WITH_OPTIMIZED_CFLAGS)
+ @${ECHO_MSG} ">>>"
+ @${ECHO_MSG} ">>> You can enable extra optimizations by defining WITH_OPTIMIZED_CFLAGS."
+ @${ECHO_MSG} ">>> For example, 'make WITH_OPTIMIZED_CFLAGS=yes'"
+ @${ECHO_MSG} ">>>"
+.endif
+
+post-patch:
+# uphold C{C,XX}
+ @${FIND} ${WRKDIR} -type f -name Makefile | \
+ ${XARGS} -n 10 ${REINPLACE_CMD} \
+ -e 's|g\+\+|${CXX}|;s|gcc|${CC}|'
+# both uphold CFLAGS and protect ARCHs where greater than -O is not
+# safe
+.ifndef(WITH_OPTIMIZED_CFLAGS)
+ @${REINPLACE_CMD} -e 's|-O2|"${CFLAGS}"|' ${WRKSRC}/Makefile
+.else
+ @${REINPLACE_CMD} -e 's|-O2|"${CFLAGS} -O2"|' ${WRKSRC}/Makefile
+.endif
+
+do-install:
+ @${INSTALL_PROGRAM} ${WRKSRC}/L-Breeder ${PREFIX}/bin
+
+.include <bsd.port.mk>