Lines 1-45
Link Here
|
1 |
# New ports collection makefile for: evolvotron |
1 |
# Created by: David Yeske <dyeske@gmail.com> |
2 |
# Date created: 16 Mar 2003 |
|
|
3 |
# Whom: David Yeske <dyeske@gmail.com> |
4 |
# |
5 |
# $FreeBSD: head/graphics/evolvotron/Makefile 308272 2012-12-04 20:39:22Z zi $ |
2 |
# $FreeBSD: head/graphics/evolvotron/Makefile 308272 2012-12-04 20:39:22Z zi $ |
6 |
|
3 |
|
7 |
PORTNAME= evolvotron |
4 |
PORTNAME= evolvotron |
8 |
PORTVERSION= 0.6.1 |
5 |
PORTVERSION= 0.6.3 |
9 |
PORTREVISION= 2 |
|
|
10 |
CATEGORIES= graphics |
6 |
CATEGORIES= graphics |
11 |
MASTER_SITES= SF |
7 |
MASTER_SITES= SF |
12 |
|
8 |
|
13 |
MAINTAINER= ports@FreeBSD.org |
9 |
MAINTAINER= ports@FreeBSD.org |
14 |
COMMENT= Generative software that evolves images/textures/patterns |
10 |
COMMENT= Generative software that evolves images/textures/patterns |
15 |
|
11 |
|
16 |
LIB_DEPENDS= boost_thread.4:${PORTSDIR}/devel/boost-libs |
12 |
LICENSE= GPLv2 |
|
|
13 |
|
14 |
LIB_DEPENDS= boost_thread:${PORTSDIR}/devel/boost-libs |
15 |
|
16 |
OPTIONS_DEFINE= DOCS |
17 |
|
17 |
|
18 |
WRKSRC= ${WRKDIR}/${PORTNAME} |
18 |
WRKSRC= ${WRKDIR}/${PORTNAME} |
19 |
|
19 |
|
20 |
USE_QT4= corelib gui moc_build qmake_build xml |
20 |
USE_QT4= corelib gui xml moc_build qmake_build |
21 |
USE_PYTHON= yes |
21 |
USE_PYTHON= yes |
22 |
USE_XORG= x11 |
22 |
HAS_CONFIGURE= yes |
23 |
GNU_CONFIGURE= yes |
23 |
CONFIGURE_ENV= QTDIR="${QT_PREFIX}" |
24 |
|
|
|
25 |
MAKE_JOBS_UNSAFE= yes |
24 |
MAKE_JOBS_UNSAFE= yes |
26 |
|
25 |
|
27 |
.include <bsd.port.pre.mk> |
26 |
MAN1= evolvotron.1 evolvotron_mutate.1 evolvotron_render.1 |
|
|
27 |
PORTDOCS= * |
28 |
PLIST_FILES= bin/evolvotron bin/evolvotron_mutate bin/evolvotron_render \ |
29 |
lib/libevolvotron.a lib/libfunction.a |
30 |
|
31 |
DESKTOP_ENTRIES="Evolvotron" "Interactive image generator" "" "${PORTNAME}" \ |
32 |
"Graphics;2DGraphics;" true |
33 |
|
34 |
.include <bsd.port.options.mk> |
28 |
|
35 |
|
29 |
post-patch: |
36 |
post-patch: |
30 |
${REINPLACE_CMD} -e 's|/bin/bash|/bin/sh|' ${WRKSRC}/configure |
37 |
@${REINPLACE_CMD} -e \ |
31 |
${REINPLACE_CMD} -e 28d ${WRKSRC}/libevolvotron/platform_specific.h |
38 |
's|/bin/bash|/bin/sh|' ${WRKSRC}/configure |
32 |
${REINPLACE_CMD} -e 30d ${WRKSRC}/libevolvotron/platform_specific.h |
39 |
@${REINPLACE_CMD} -e \ |
|
|
40 |
'/DEFINES/s|_LINUX|_BSD|' ${WRKSRC}/common.pro |
41 |
|
42 |
post-configure: |
43 |
@(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${QMAKE} ${QMAKEFLAGS} \ |
44 |
VERSION_NUMBER="${PORTVERSION}" main.pro) |
33 |
|
45 |
|
34 |
do-install: |
46 |
do-install: |
35 |
@${INSTALL_PROGRAM} ${WRKSRC}/evolvotron/evolvotron ${PREFIX}/bin |
47 |
.for i in evolvotron evolvotron_mutate evolvotron_render |
36 |
@${INSTALL_PROGRAM} ${WRKSRC}/evolvotron_mutate/evolvotron_mutate ${PREFIX}/bin |
48 |
(cd ${WRKSRC}/${i} && ${INSTALL_PROGRAM} ${i} ${PREFIX}/bin) |
37 |
@${INSTALL_PROGRAM} ${WRKSRC}/evolvotron_render/evolvotron_render ${PREFIX}/bin |
49 |
(cd ${WRKSRC}/man/man1 && ${INSTALL_MAN} ${i}.1 ${MANPREFIX}/man/man1) |
38 |
@${INSTALL_DATA} ${WRKSRC}/libevolvotron/libevolvotron.a ${PREFIX}/lib |
50 |
.endfor |
39 |
@${INSTALL_DATA} ${WRKSRC}/libfunction/libfunction.a ${PREFIX}/lib |
51 |
.for i in libevolvotron libfunction |
40 |
.if !defined(NOPORTDOCS) |
52 |
(cd ${WRKSRC}/${i} && ${INSTALL_DATA} ${i}.a ${PREFIX}/lib) |
|
|
53 |
.endfor |
54 |
.if ${PORT_OPTIONS:MDOCS} |
41 |
@${MKDIR} ${DOCSDIR} |
55 |
@${MKDIR} ${DOCSDIR} |
42 |
@${INSTALL_DATA} ${WRKSRC}/evolvotron.html ${DOCSDIR} |
56 |
(cd ${WRKSRC} && ${INSTALL_DATA} evolvotron.html ${DOCSDIR}) |
43 |
.endif |
57 |
.endif |
44 |
|
58 |
|
45 |
.include <bsd.port.post.mk> |
59 |
.include <bsd.port.mk> |