55 lines
1.4 KiB
Makefile
55 lines
1.4 KiB
Makefile
|
# $OpenBSD: Makefile,v 1.1.1.1 2007/01/31 07:33:52 ajacoutot Exp $
|
||
|
|
||
|
COMMENT= "3D earth viewer with GPS support"
|
||
|
|
||
|
DISTNAME= gaia-0.1.2
|
||
|
CATEGORIES= x11 geo
|
||
|
|
||
|
EXTRACT_SUFX= .tar.bz2
|
||
|
|
||
|
HOMEPAGE= http://gaia.serezhkin.com/
|
||
|
|
||
|
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
|
||
|
|
||
|
# GPLv2
|
||
|
PERMIT_PACKAGE_CDROM= Yes
|
||
|
PERMIT_PACKAGE_FTP= Yes
|
||
|
PERMIT_DISTFILES_CDROM= Yes
|
||
|
PERMIT_DISTFILES_FTP= Yes
|
||
|
|
||
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=gaia-clean/}
|
||
|
|
||
|
WANTLIB= GL GLU X11 Xext c crypto m pthread ssl stdc++ usbhid z
|
||
|
|
||
|
USE_X11= Yes
|
||
|
NO_REGRESS= Yes
|
||
|
BUILD_DEPENDS= ::devel/scons
|
||
|
LIB_DEPENDS= SDL.>=6::devel/sdl \
|
||
|
gps.>=16::misc/gpsd \
|
||
|
curl.>=4::net/curl \
|
||
|
png.>=5::graphics/png \
|
||
|
jpeg.>=62::graphics/jpeg
|
||
|
|
||
|
pre-configure:
|
||
|
perl -pi -e 's,!!CFLAGS!!,${CFLAGS},g;' \
|
||
|
-e 's,!!CXXFLAGS!!,${CXXFLAGS},g;' \
|
||
|
-e 's,!!CC!!,${CC},g;' \
|
||
|
-e 's,!!CXX!!,${CXX},g;' \
|
||
|
-e 's,!!PREFIX!!,${PREFIX},g;' \
|
||
|
-e 's,!!LOCALBASE!!,${LOCALBASE},g;' \
|
||
|
-e 's,!!X11BASE!!,${X11BASE},g;' \
|
||
|
${WRKSRC}/SConstruct
|
||
|
|
||
|
do-build:
|
||
|
@${SETENV} ${MAKE_ENV} scons -C ${WRKSRC} \
|
||
|
prefix=${PREFIX} datadir=share/gaia gpsd=1
|
||
|
|
||
|
do-install:
|
||
|
${INSTALL_PROGRAM} ${WRKBUILD}/gaia ${PREFIX}/bin
|
||
|
${INSTALL_DATA_DIR} ${PREFIX}/share/gaia
|
||
|
${INSTALL_DATA} ${WRKBUILD}/data/font.png ${PREFIX}/share/gaia
|
||
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/gaia
|
||
|
${INSTALL_DATA} ${WRKBUILD}/README ${PREFIX}/share/doc/gaia
|
||
|
|
||
|
.include <bsd.port.mk>
|