freebsd-ports/games/lincity-ng/Makefile
Muhammad Moinur Rahman a669deada4 games/lincity-ng: Fix build with llvm16
- Pet portclippy

Sponsored by:	The FreeBSD Foundation
2023-07-21 17:41:46 +02:00

48 lines
1.1 KiB
Makefile

PORTNAME= lincity-ng
PORTVERSION= 2.0
PORTREVISION= 19
CATEGORIES= games
MASTER_SITES= BERLIOS
MAINTAINER= ports@FreeBSD.org
COMMENT= Improved rich city simulation game for X
WWW= http://lincity-ng.berlios.de
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= jam:devel/jam
LIB_DEPENDS= libphysfs.so:devel/physfs
USES= gl gnome localbase:ldflags pkgconfig sdl tar:bzip2 xorg
USE_CXXSTD= c++14
USE_GL= gl
USE_GNOME= libxml2
USE_SDL= sdl mixer image ttf gfx
USE_XORG= x11
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-libphysfs=${LOCALBASE} \
--x-libraries=${LOCALBASE}/lib --x-includes=${LOCALBASE}/include
LDFLAGS+= -lpthread
PLIST_FILES= bin/lincity-ng \
share/applications/lincity-ng.desktop \
share/pixmaps/lincity-ng.png
PORTDATA= *
PORTDOCS= *
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e 's| -O| -I${LOCALBASE}/include&|g' \
${WRKSRC}/Jamrules
do-build:
@(cd ${BUILD_WRKSRC} && ${SETENV} ${MAKE_ENV} jam -dx -j${MAKE_JOBS_NUMBER})
do-install:
@(cd ${INSTALL_WRKSRC} && ${SETENV} ${MAKE_ENV} jam -dx -sprefix=${PREFIX} -sDESTDIR=${STAGEDIR} ${INSTALL_TARGET})
.include <bsd.port.mk>