aboutsummaryrefslogtreecommitdiffstats
path: root/astro/stellarium/Makefile
blob: f5ac6ccf592f9dec7ebde9011e2c7921fd78f3a7 (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
# New ports collection makefile for:    stellarium
# Date created:         26 Jan 2004
# Whom:             Jean-Yves Lefort <jylefort@brutele.be>
#
# $FreeBSD$
#

PORTNAME=   stellarium
PORTVERSION=    0.8.1
PORTREVISION=   1
CATEGORIES= astro
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}

MAINTAINER= jylefort@FreeBSD.org
COMMENT=    A 3D photo-realistic sky renderer

LIB_DEPENDS=    png.5:${PORTSDIR}/graphics/png \
        freetype:${PORTSDIR}/print/freetype2

USE_GCC=    3.3+
USE_GETTEXT=    yes
USE_GL=     yes
USE_SDL=    sdl mixer
USE_X_PREFIX=   yes
GNU_CONFIGURE=  yes
USE_GMAKE=  yes
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
        LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib"

MAN1=       stellarium.1
PORTDOCS=   AUTHORS ChangeLog NEWS README TODO

DESKTOP_ENTRIES="Stellarium" \
        "View the sky" \
        "${DATADIR}/data/stellarium.ico" \
        "stellarium" \
        "" \
        false

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 500000
IGNORE=     does not build on FreeBSD 4.x
.endif

post-install:
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
.endif

.include <bsd.port.post.mk>