head	1.1;
access;
symbols
	pkgsrc-2026Q1:1.1.0.46
	pkgsrc-2026Q1-base:1.1
	pkgsrc-2025Q4:1.1.0.44
	pkgsrc-2025Q4-base:1.1
	pkgsrc-2025Q3:1.1.0.42
	pkgsrc-2025Q3-base:1.1
	pkgsrc-2025Q2:1.1.0.40
	pkgsrc-2025Q2-base:1.1
	pkgsrc-2025Q1:1.1.0.38
	pkgsrc-2025Q1-base:1.1
	pkgsrc-2024Q4:1.1.0.36
	pkgsrc-2024Q4-base:1.1
	pkgsrc-2024Q3:1.1.0.34
	pkgsrc-2024Q3-base:1.1
	pkgsrc-2024Q2:1.1.0.32
	pkgsrc-2024Q2-base:1.1
	pkgsrc-2024Q1:1.1.0.30
	pkgsrc-2024Q1-base:1.1
	pkgsrc-2023Q4:1.1.0.28
	pkgsrc-2023Q4-base:1.1
	pkgsrc-2023Q3:1.1.0.26
	pkgsrc-2023Q3-base:1.1
	pkgsrc-2023Q2:1.1.0.24
	pkgsrc-2023Q2-base:1.1
	pkgsrc-2023Q1:1.1.0.22
	pkgsrc-2023Q1-base:1.1
	pkgsrc-2022Q4:1.1.0.20
	pkgsrc-2022Q4-base:1.1
	pkgsrc-2022Q3:1.1.0.18
	pkgsrc-2022Q3-base:1.1
	pkgsrc-2022Q2:1.1.0.16
	pkgsrc-2022Q2-base:1.1
	pkgsrc-2022Q1:1.1.0.14
	pkgsrc-2022Q1-base:1.1
	pkgsrc-2021Q4:1.1.0.12
	pkgsrc-2021Q4-base:1.1
	pkgsrc-2021Q3:1.1.0.10
	pkgsrc-2021Q3-base:1.1
	pkgsrc-2021Q2:1.1.0.8
	pkgsrc-2021Q2-base:1.1
	pkgsrc-2021Q1:1.1.0.6
	pkgsrc-2021Q1-base:1.1
	pkgsrc-2020Q4:1.1.0.4
	pkgsrc-2020Q4-base:1.1
	pkgsrc-2020Q3:1.1.0.2
	pkgsrc-2020Q3-base:1.1;
locks; strict;
comment	@# @;


1.1
date	2020.07.26.05.21.20;	author dholland;	state Exp;
branches;
next	;
commitid	vx8kfVk8fqE56yhC;


desc
@@


1.1
log
@Add Endless Sky, a side-scrolling space trading game.

(Its ancestry clearly includes Elite, though I couldn't say how in any
detail.)

Alas, it does not run on my NetBSD because of opengl version issues,
but it should run on Linux and MacOS.

Be careful, it can be quite a timesuck :-)
@
text
@# $NetBSD$

#
# As of 0.9.12 the package's native build uses scons, and naturally it
# doesn't work. (It seems to compile ok, but ignores most of the
# install directives in the SConstruct script, for no obvious reason.)
#
# While the package is fairly large, the build is pretty simple and
# the SConstruct script is only 120 lines, so instead of arguing with
# scons I've transcribed the material here. We'll see if I regret this
# when it's time to update.
#
# Note: this makefile requires BSD make and is not expected to work
# outside of the context of pkgsrc.
#

DESTDIR?=
PREFIX?=/usr/local

MANDIR=		$(DESTDIR)$(PREFIX)/$(PKGMANDIR) 
DESKTOPDIR=	$(DESTDIR)$(PREFIX)/share/applications
APPDATADIR=	$(DESTDIR)$(PREFIX)/share/appdata
ICONDIR=	$(DESTDIR)$(PREFIX)/share/icons/hicolor
SHAREDIR=	$(DESTDIR)$(PREFIX)/share/games/endless-sky

all:;

.for SZ in 16 22 24 32 48 128 256 512
SIZES+=$(SZ)x$(SZ)
.endfor

install:
	$(BSD_INSTALL_DATA_DIR) $(MANDIR)/man6 $(DESKTOPDIR) $(APPDATADIR)
	$(BSD_INSTALL_DATA) endless-sky.6 $(MANDIR)/man6/
	$(BSD_INSTALL_DATA) endless-sky.desktop $(DESKTOPDIR)/
	$(BSD_INSTALL_DATA) endless-sky.appdata.xml $(APPDATADIR)/
.for SIZE in $(SIZES)
	$(BSD_INSTALL_DATA_DIR) $(ICONDIR)/$(SIZE)/apps
	$(BSD_INSTALL_DATA) icons/icon_$(SIZE).png \
		$(ICONDIR)/$(SIZE)/apps/endless-sky.png
.endfor
.for DIR in data images sounds
	$(BSD_INSTALL_DATA_DIR) $(SHAREDIR)/$(DIR)
	pax -rw -pp $(DIR) $(SHAREDIR)
.endfor
	$(BSD_INSTALL_DATA) credits.txt $(SHAREDIR)/
	$(BSD_INSTALL_DATA) keys.txt $(SHAREDIR)/

# this is handled automatically by pkgsrc infrastructure
#gtk-update-icon-cache -t $(DESTDIR)$(PREFIX)/share/icons/hicolor
#

.PHONY: all install
@
