openbsd-ports/x11/xglobe/Makefile

70 lines
1.7 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.58 2006/12/01 17:00:26 espie Exp $
COMMENT= "display the Earth on X11"
2000-05-19 09:49:35 -04:00
CATEGORIES= x11 geo
HOMEPAGE= http://www.cs.unc.edu/~scheuerm/xglobe/
#MASTER_SITES= ${HOMEPAGE}
# Temporary release
MASTER_SITES= ftp://quatramaran.ens.fr/pub/espie/
2006-05-29 14:01:13 -04:00
DISTNAME= xglobe-0.5p2
PKGNAME= ${DISTNAME:S/p2/p35/}
2000-05-19 09:49:35 -04:00
2000-10-09 20:40:20 -04:00
MAINTAINER= Marc Espie <espie@openbsd.org>
2000-05-19 09:49:35 -04:00
# GPL, included map is free
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
2004-12-17 10:03:17 -05:00
WANTLIB= X11 c m pthread stdc++
2000-05-19 09:49:35 -04:00
USE_X11= Yes
2004-08-10 07:16:43 -04:00
MODULES= x11/qt3
2003-02-25 05:34:02 -05:00
MODQT_MT=Yes
2000-05-19 09:49:35 -04:00
MAKE_FLAGS= XGLOBE_DIR=${PREFIX}
RUN_DEPENDS= ::geo/openbsd-developers
FLAVORS= no_map
FLAVOR?=
.if ${FLAVOR:L:Mno_map}
DISTFILES= ${DISTNAME}-no-map${EXTRACT_SUFX}
# Kludge install for no map around
pre-install:
@touch ${WRKSRC}/map.bmp
post-install::
@rm ${PREFIX}/lib/xglobe/map.bmp
.endif
2000-05-19 09:49:35 -04:00
MAKE_FLAGS+= QT_INCLUDE_DIR=${MODQT_INCDIR}
MAKE_FLAGS+= QT_LIB_DIR=${MODQT_LIBDIR}
MAKE_FLAGS+= CPP="${CXX}" LINK="${CXX}"
2003-02-25 05:34:02 -05:00
MAKE_FLAGS+= OPTIONS="${CXXFLAGS} -pthread -fno-exceptions -funroll-loops"
MAKE_FLAGS+= LFLAGS='-pthread'
MAKE_FLAGS+= LIBS='-lX11 -lqt-mt -lm'
# for linking against libpng
MAKE_FLAGS+= 'LIB_DIRS=-L$$(QT_LIB_DIR) -L$$(X11_LIB_DIR) -L$(LOCALBASE)/lib'
MAKE_FLAGS+= COPTS='${COPTS}'
2002-10-29 14:48:57 -05:00
NO_REGRESS= Yes
post-install::
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/xglobe
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/xglobe
${INSTALL_DATA} ${WRKSRC}/README.maps ${PREFIX}/share/doc/xglobe
${INSTALL_SCRIPT} ${FILESDIR}/getcloudmap ${PREFIX}/bin
ln -sf ${TRUEPREFIX}/share/markers/OpenBSD ${PREFIX}/lib/xglobe/OpenBSD-markers
SUPDISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${DISTNAME}-no-map${EXTRACT_SUFX}
2000-05-19 09:49:35 -04:00
FAKE_FLAGS= XGLOBE_DIR=${WRKINST}${PREFIX}
2000-05-19 09:49:35 -04:00
.include <bsd.port.mk>