aboutsummaryrefslogtreecommitdiffstats
path: root/biology/L-Breeder/Makefile
blob: a376695561950948d975ee1faa0f91d516cb22b5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# 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
COMMENT=    Allows you to display and breed L-system forms

LIB_DEPENDS=    wx_gtk-2.2_gl.2:${PORTSDIR}/x11-toolkits/wxgtk

BROKEN=     Unknown problem

WRKSRC=     ${WRKDIR}/LBreeder/LBreeder
PATCH_WRKSRC=   ${WRKDIR}/LBreeder

USE_X_PREFIX=   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>