2005-07-21 23:02:45 +02:00
|
|
|
# New ports collection makefile for: lincity-ng
|
|
|
|
# Date created: 25 June 2005
|
|
|
|
# Whom: Andrej Zverev
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= lincity-ng
|
2007-02-23 21:13:22 +01:00
|
|
|
PORTVERSION= 1.1.0
|
2007-05-19 22:36:56 +02:00
|
|
|
PORTREVISION= 1
|
2005-07-21 23:02:45 +02:00
|
|
|
CATEGORIES= games
|
2006-09-01 13:05:09 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_BERLIOS}
|
2005-07-21 23:02:45 +02:00
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
|
2005-10-03 14:55:25 +02:00
|
|
|
MAINTAINER= az@FreeBSD.org
|
2005-07-21 23:02:45 +02:00
|
|
|
COMMENT= Improved rich city simulation game for X
|
|
|
|
|
|
|
|
BUILD_DEPENDS= jam:${PORTSDIR}/devel/jam
|
2005-07-24 15:02:43 +02:00
|
|
|
LIB_DEPENDS= physfs-1.0.1:${PORTSDIR}/devel/physfs
|
2005-07-21 23:02:45 +02:00
|
|
|
|
|
|
|
USE_BZIP2= yes
|
|
|
|
USE_GCC= 3.2+
|
|
|
|
USE_SDL= sdl mixer image ttf gfx
|
2007-05-19 22:36:56 +02:00
|
|
|
USE_GL= yes
|
2005-07-23 12:41:11 +02:00
|
|
|
USE_GNOME= libxml2
|
2005-07-21 23:02:45 +02:00
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
2006-12-09 08:59:05 +01:00
|
|
|
CONFIGURE_ARGS= --with-libphysfs=${PREFIX} \
|
|
|
|
--x-libraries=${X11BASE}/lib --x-includes=${X11BASE}/include
|
2005-07-21 23:02:45 +02:00
|
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${OSVERSION} < 500000
|
2005-07-23 12:41:11 +02:00
|
|
|
pre-configure::
|
|
|
|
@${REINPLACE_CMD} -e 's|<stdint.h>|<inttypes.h>|' \
|
|
|
|
${WRKSRC}/src/gui/Filter.cpp ${WRKSRC}/src/gui/Gradient.hpp \
|
|
|
|
${WRKSRC}/src/gui/Color.hpp
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${OSVERSION} < 504000
|
|
|
|
pre-configure::
|
|
|
|
@${PATCH} ${PATCH_ARGS} < ${PATCHDIR}/extra-src-gui-Gradient.cpp
|
|
|
|
@${PATCH} ${PATCH_ARGS} < ${PATCHDIR}/extra-src-gui-PainterSDL-PainterSDL.cpp
|
2005-07-21 23:02:45 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
@(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} jam)
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
@(cd ${INSTALL_WRKSRC} && ${SETENV} ${MAKE_ENV} jam ${INSTALL_TARGET})
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|