ebcd261201
Upstream changes: 5+ years of development; try these links: http://www.shatters.net/celestia/161changes.txt http://www.shatters.net/celestia/features/160-features.html http://www.shatters.net/celestia/151changes.txt http://www.shatters.net/celestia/150-feature-summary.html Restrictions: 1. The Lua support still does not build, and given that I had to patch it to compile at all with Lua disabled it may not work all that well this way. 2. The optional KDE (kde3) build is almost certainly broken; I will get to this in a few days if nobody beats me to it.
62 lines
1.8 KiB
Makefile
62 lines
1.8 KiB
Makefile
# $NetBSD: Makefile,v 1.56 2013/10/27 21:21:26 dholland Exp $
|
|
|
|
DISTNAME= celestia-1.6.1
|
|
CATEGORIES= misc x11
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=celestia/}
|
|
|
|
MAINTAINER= cesar_catrian@yahoo.com
|
|
HOMEPAGE= http://www.shatters.net/celestia/
|
|
COMMENT= Free real-time 3D space simulator
|
|
|
|
DISTINFO_FILE= ${.CURDIR}/../../misc/celestia/distinfo
|
|
PATCHDIR= ${.CURDIR}/../../misc/celestia/patches
|
|
|
|
USE_LANGUAGES= c c++
|
|
USE_LIBTOOL= yes
|
|
USE_PKGLOCALEDIR= yes
|
|
USE_TOOLS+= gmake pkg-config
|
|
GNU_CONFIGURE= yes
|
|
|
|
GCC_REQD+= 3.0
|
|
CXXFLAGS+= -DPKG_SYSCONFDIR="\"${PKG_SYSCONFDIR}\""
|
|
|
|
EGDIR= ${PREFIX}/share/examples/celestia
|
|
CONF_FILES= ${EGDIR}/celestia.cfg.default ${PKG_SYSCONFDIR}/celestia.cfg
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if exists(${X11BASE}/include/X11/extensions/Xinerama.h) || ${X11_TYPE} != "native"
|
|
.include "../../x11/libXinerama/buildlink3.mk"
|
|
CONFIGURE_ARGS+= --with-xinerama
|
|
.endif
|
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
|
|
.if defined(PTHREAD_TYPE) && (${PTHREAD_TYPE} == "none")
|
|
CONFIGURE_ARGS+= --disable-threading
|
|
.endif
|
|
|
|
INSTALLATION_DIRS= ${EGDIR}
|
|
|
|
|
|
# The distfile comes with binary static libs for cspice, liblua,
|
|
# liblualib, and libpng. Delete them on the assumption that we don't
|
|
# want to use binary blobs. If the build turns out to require them for
|
|
# some reason, this can be reviewed...
|
|
post-extract:
|
|
${RM} -f ${WRKSRC}/macosx/lib/*.a
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${WRKSRC}/celestia.cfg ${DESTDIR}${EGDIR}/celestia.cfg.default
|
|
|
|
.include "options.mk"
|
|
|
|
.include "../../devel/gettext-lib/buildlink3.mk"
|
|
.include "../../devel/zlib/buildlink3.mk"
|
|
.include "../../graphics/glu/buildlink3.mk"
|
|
.include "../../mk/jpeg.buildlink3.mk"
|
|
.include "../../graphics/png/buildlink3.mk"
|
|
.include "../../x11/libXmu/buildlink3.mk"
|
|
.include "../../x11/libXt/buildlink3.mk"
|
|
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|