summaryrefslogtreecommitdiff
path: root/misc/celestia-kde/Makefile
blob: 33e53611fc6b2cd48ac79a73823b24f88e2f772d (plain)
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
# $NetBSD: Makefile,v 1.7 2003/12/08 14:41:40 wiz Exp $
#

.include "../../misc/celestia/Makefile.common"

PKGNAME=	${DISTNAME:S/-/-kde-/}
PKGREVISION=	4

COMMENT=	KDE frontend for free real-time 3D space simulator

DEPENDS=	celestia-${CELESTIA_VERS}:../../misc/celestia

CONFIGURE_ARGS+=	--without-gtk
CONFIGURE_ARGS+=	--with-kde

BUILD_DIRS=	${WRKSRC}/src
KDEWRKSRC=	${WRKSRC}/src/celestia/kde/data

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/src/celestia/celestia ${PREFIX}/bin/kcelestia
	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/kde/HTML/en/celestia
	${INSTALL_DATA} ${KDEWRKSRC}/index.docbook ${PREFIX}/share/doc/kde/HTML/en/celestia/index.docbook
	${INSTALL_DATA_DIR} ${PREFIX}/share/kde/applnk/Edutainment/Science
	${INSTALL_DATA} ${KDEWRKSRC}/celestia.desktop ${PREFIX}/share/kde/applnk/Edutainment/Science/celestia.desktop
	${INSTALL_DATA_DIR} ${PREFIX}/share/kde/apps/celestia/favicons
	${INSTALL_DATA} ${KDEWRKSRC}/bookmarks.xml ${PREFIX}/share/kde/apps/celestia/bookmarks.xml
	${INSTALL_DATA} ${KDEWRKSRC}/celestiaui.rc ${PREFIX}/share/kde/apps/celestia/celestiaui.rc
	${INSTALL_DATA} ${KDEWRKSRC}/celestia_200*.png ${PREFIX}/share/kde/apps/celestia/favicons
	${INSTALL_DATA} ${KDEWRKSRC}/celestiarc ${PREFIX}/share/kde/config/celestiarc
	${INSTALL_DATA} ${KDEWRKSRC}/hi16-app-celestia.png ${PREFIX}/share/kde/icons/hicolor/16x16/apps/celestia.png
	${INSTALL_DATA} ${KDEWRKSRC}/hi22-app-celestia.png ${PREFIX}/share/kde/icons/hicolor/22x22/apps/celestia.png
	${INSTALL_DATA} ${KDEWRKSRC}/hi32-app-celestia.png ${PREFIX}/share/kde/icons/hicolor/32x32/apps/celestia.png
	${INSTALL_DATA} ${KDEWRKSRC}/hi48-app-celestia.png ${PREFIX}/share/kde/icons/hicolor/48x48/apps/celestia.png
	${INSTALL_DATA} ${KDEWRKSRC}/x-celestia-script.desktop ${PREFIX}/share/kde/mimelnk/application/x-celestia-script.desktop
	${INSTALL_DATA} ${KDEWRKSRC}/celestia.protocol ${PREFIX}/share/kde/services/celestia.protocol

.include "../../x11/kdelibs3/buildlink2.mk"

.include "../../mk/bsd.pkg.mk"