49 lines
1.2 KiB
Makefile
49 lines
1.2 KiB
Makefile
COMMENT= platform game featuring buggers equipped with weapons
|
|
|
|
V= 0.7.5
|
|
PKGNAME= teeworlds-${V}
|
|
DISTNAME= ${PKGNAME}-src
|
|
REVISION= 0
|
|
|
|
CATEGORIES= games
|
|
|
|
HOMEPAGE= https://www.teeworlds.com
|
|
|
|
MAINTAINER= Stefan Hagen <sh+ports@codevoid.de>
|
|
|
|
SITES= https://github.com/teeworlds/teeworlds/releases/download/${V}/
|
|
# maps repo without tags/releases on https://github.com/teeworlds/teeworlds-maps
|
|
# therefore hosted as archive.
|
|
SITES.a= http://si3t.ch/pub/openbsd/distfiles/
|
|
|
|
DISTFILES.a= teeworlds-${V}-data.tar.gz{teeworlds-data.tar.gz}
|
|
|
|
# BSD-like
|
|
PERMIT_PACKAGE= Yes
|
|
|
|
WANTLIB= GL SDL2 X11 c crypto freetype m pthread ${COMPILER_LIBCXX}
|
|
WANTLIB+= wavpack z
|
|
|
|
COMPILER = base-clang ports-gcc
|
|
|
|
LIB_DEPENDS= audio/wavpack \
|
|
devel/sdl2
|
|
|
|
MODULES= devel/cmake lang/python
|
|
MODPY_RUNDEP= No
|
|
|
|
CONFIGURE_STYLE= cmake
|
|
CONFIGURE_ARGS= -DPYTHON_EXECUTABLE="${MODPY_BIN}"
|
|
|
|
NO_TEST= Yes
|
|
|
|
# Give it a chance on ppc
|
|
CXXFLAGS+= -fsigned-char
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${WRKDIST}/datasrc/maps
|
|
${INSTALL_DATA_DIR} ${WRKDIST}/datasrc/maps
|
|
${INSTALL_DATA} ${WRKDIR}/maps/* ${WRKDIST}/datasrc/maps/
|
|
${INSTALL_DATA} ${WRKDIR}/languages/* ${WRKDIST}/datasrc/languages/
|
|
|
|
.include <bsd.port.mk>
|