mirror of
https://github.com/openbsd/ports.git
synced 2026-06-17 23:13:55 +02:00
52d58d45c4
Move to ports-gcc on gcc-arches to fix build on sparc64
44 lines
1.0 KiB
Makefile
44 lines
1.0 KiB
Makefile
COMMENT = open source, classic overhead run-and-gun game
|
|
CATEGORIES = games x11
|
|
|
|
HOMEPAGE = https://cxong.github.io/cdogs-sdl/
|
|
|
|
# GPLv2+
|
|
PERMIT_PACKAGE = Yes
|
|
|
|
WANTLIB += GL GLU SDL2 SDL2_image SDL2_mixer c m
|
|
|
|
GH_ACCOUNT = cxong
|
|
GH_PROJECT = cdogs-sdl
|
|
GH_TAGNAME = 2.1.0
|
|
|
|
MODULES = devel/cmake
|
|
|
|
# multiple definition of `smat4_lerp'
|
|
COMPILER = base-clang ports-gcc
|
|
COMPILER_LANGS = c
|
|
|
|
LIB_DEPENDS = devel/sdl2-image \
|
|
devel/sdl2-mixer
|
|
|
|
RUN_DEPENDS = devel/desktop-file-utils \
|
|
x11/gtk+4,-guic
|
|
|
|
# CDOGS_DATA_DIR must end in a slash, because it is prepended to relative paths
|
|
# in the C code
|
|
CONFIGURE_ARGS = -DCDOGS_BIN_DIR=${PREFIX}/bin \
|
|
-DCDOGS_DATA_DIR=${PREFIX}/share/cdogs-sdl/ \
|
|
-DCDOGS_DOC_DIR=${PREFIX}/share/doc/cdogs-sdl \
|
|
-DDATA_INSTALL_DIR=${PREFIX}/share/cdogs-sdl
|
|
|
|
DEBUG_PACKAGES = ${BUILD_PACKAGES}
|
|
|
|
post-build:
|
|
@cp ${WRKBUILD}/src/cdogs-sdl ${WRKSRC}/src/cdogs-sdl
|
|
@cp ${WRKBUILD}/src/cdogs-sdl-editor ${WRKSRC}/src/cdogs-sdl-editor
|
|
|
|
|
|
MODCMAKE_POLICY_VERSION_OVERRIDE = Yes
|
|
|
|
.include <bsd.port.mk>
|