52 lines
1.3 KiB
Makefile
52 lines
1.3 KiB
Makefile
# $OpenBSD: Makefile,v 1.4 2018/05/29 07:32:31 kirby Exp $
|
|
|
|
COMMENT = open source game engine based on FreeSpace 2
|
|
|
|
V = 3.8.0
|
|
DISTNAME = fs2_open_${V:S/./_/g}-source-Unix
|
|
PKGNAME = fs2open-${V}
|
|
REVISION = 0
|
|
|
|
CATEGORIES = games
|
|
|
|
HOMEPAGE = https://github.com/scp-fs2open/fs2open.github.com
|
|
|
|
MAINTAINER = Thomas Frohwein <frohwein@ymail.com>
|
|
|
|
# Volition custom license (non-commercial, not really a license)
|
|
PERMIT_PACKAGE_CDROM = selling explicitly prohibited
|
|
PERMIT_PACKAGE_FTP = no license at all
|
|
PERMIT_DISTFILES_FTP = no license at all
|
|
|
|
WANTLIB += ${COMPILER_LIBCXX} c m z
|
|
WANTLIB += SDL2 ${MODLUA_WANTLIB} openal
|
|
WANTLIB += avcodec avformat avutil jpeg swresample swscale
|
|
WANTLIB += jansson png
|
|
|
|
MASTER_SITES = https://github.com/scp-fs2open/fs2open.github.com/releases/download/release_${V:S/./_/g}/
|
|
|
|
# Remove on next update
|
|
DISTFILES = ${DISTNAME}_1{${DISTNAME}}${EXTRACT_SUFX}
|
|
|
|
# c++11
|
|
COMPILER = base-clang ports-gcc
|
|
MODULES = devel/cmake \
|
|
lang/lua
|
|
LIB_DEPENDS = audio/openal \
|
|
devel/sdl2 \
|
|
graphics/ffmpeg \
|
|
graphics/png \
|
|
devel/jansson
|
|
|
|
CONFIGURE_ARGS = -DCMAKE_INSTALL_PREFIX=${LOCALBASE}/share/fs2open \
|
|
-DCMAKE_DISABLE_FIND_PACKAGE_Doxygen:Bool=Yes
|
|
|
|
NO_TEST = Yes
|
|
|
|
WRKDIST = ${WRKDIR}/fs2open.github.com
|
|
|
|
post-install:
|
|
${SUBST_CMD} -c -m 755 ${FILESDIR}/fs2open ${PREFIX}/bin/fs2open
|
|
|
|
.include <bsd.port.mk>
|