# New ports collection makefile for: flightgear-atlas # Date created: 16 Sep 2005 # Whom: Jean-Yves Lefort # # $FreeBSD$ # PORTNAME= flightgear-atlas PORTVERSION= 0.3.1.20090529 PORTREVISION= 6 CATEGORIES= games MASTER_SITES= http://contribs.martymac.org/FreeBSD-ports/distfiles/ \ http://freebsd.unixfreunde.de/sources/ DISTNAME= Atlas-${PORTVERSION} MAINTAINER= martymac@FreeBSD.org COMMENT= A map viewer for use with the FlightGear flight simulator BUILD_DEPENDS= ${LOCALBASE}/lib/libplibsl.a:${PORTSDIR}/x11-toolkits/plib \ ${LOCALBASE}/include/simgear/version.h:${PORTSDIR}/devel/simgear LIB_DEPENDS= png.6:${PORTSDIR}/graphics/png \ jpeg.11:${PORTSDIR}/graphics/jpeg \ curl.6:${PORTSDIR}/ftp/curl RUN_DEPENDS= ${LOCALBASE}/lib/libplibsl.a:${PORTSDIR}/x11-toolkits/plib \ ${LOCALBASE}/include/simgear/version.h:${PORTSDIR}/devel/simgear \ ${LOCALBASE}/share/FlightGear/version:${PORTSDIR}/games/flightgear-data USE_AUTOTOOLS= aclocal:111 autoheader:267 automake:111 autoconf:267 AUTOMAKE_ARGS= --add-missing GNU_CONFIGURE= yes USE_XORG= ice sm x11 xext xi xt xmu USE_GL= gl glu glut CPPFLAGS= -I${LOCALBASE}/include ${PTHREAD_CFLAGS} \ -DSG_GLUT_H='' \ -DSG_GL_H='' \ -DSTL_STRING='' LDFLAGS= -L${LOCALBASE}/lib CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" CONFIGURE_ARGS= --with-fgbase="${LOCALBASE}/share/FlightGear" post-patch: @${REINPLACE_CMD} -e 's|^base_LIBS="$$LIBS"|base_LIBS="$$LIBS ${PTHREAD_LIBS}"|' ${WRKSRC}/configure.ac @${REINPLACE_CMD} -e 's|^AC_CHECK_LIB(pthread, pthread_exit)||' ${WRKSRC}/configure.ac @${REINPLACE_CMD} -e 's|-lpthread||' ${WRKSRC}/src/Makefile.am post-install: ${INSTALL_DATA} ${WRKSRC}/src/AtlasPalette ${LOCALBASE}/share/FlightGear @${CAT} ${PKGMESSAGE} .include