aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/xmountains/Makefile
blob: 74746d214c868e7f06d696cb2429d50de977c9ef (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
# Created by: proff@iq.org
# $FreeBSD$

PORTNAME=   xmountains
PORTVERSION=    2.9
CATEGORIES= graphics
MASTER_SITES=   ftp://ftp.uwsg.indiana.edu/linux/debian/pool/main/x/xmountains/ \
        ftp://ftp.fi.netbsd.org/.m/mirrors1/archive.ubuntu.com/pool/universe/x/xmountains/ \
        ftp://ftp.mirrorservice.org/sites/archive.raspbian.org/raspbian/pool/main/x/xmountains/ \
        ftp://ftp.unicamp.br/pub/debian/pool/main/x/xmountains/ \
        ftp://ftp.debian.com/debian/pool/main/x/xmountains/
DISTNAME=   ${PORTNAME}_${PORTVERSION}.orig

MAINTAINER= ak@FreeBSD.org
COMMENT=    X11 based fractal landscape generator

NO_WRKSUBDIR=   yes

USE_XORG=   xbitmaps x11

MAN6=       ${PORTNAME}.6
PLIST_FILES=    bin/${PORTNAME}

CFLAGS+=    -I${LOCALBASE}/include -L${LOCALBASE}/lib

NO_STAGE=   yes
post-extract:
    @${LN} -sf ${PORTNAME}.man ${WRKSRC}/${PORTNAME}.6

do-build:
    cd ${BUILD_WRKSRC} && ${CC} ${CFLAGS} *.c -lX11 -lm -o ${PORTNAME}

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.6 ${MAN6PREFIX}/man/man6

.include <bsd.port.mk>