2004-08-10 07:16:43 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.22 2004/08/10 11:16:44 xsa Exp $
|
2001-05-06 00:41:05 -04:00
|
|
|
|
|
|
|
COMMENT= "display the Earth on X11"
|
2000-05-19 09:49:35 -04:00
|
|
|
|
2002-01-07 00:33:05 -05:00
|
|
|
CATEGORIES= x11
|
|
|
|
HOMEPAGE= http://www.cs.unc.edu/~scheuerm/xglobe/
|
|
|
|
#MASTER_SITES= ${HOMEPAGE}
|
2000-06-19 08:59:15 -04:00
|
|
|
# Temporary release
|
2002-01-07 00:33:05 -05:00
|
|
|
MASTER_SITES= ftp://quatramaran.ens.fr/pub/espie/
|
|
|
|
DISTNAME= xglobe-0.5p2
|
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
|
|
|
|
|
|
|
|
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
|
|
|
|
2002-01-07 00:33:05 -05:00
|
|
|
MAKE_FLAGS= XGLOBE_DIR=${PREFIX}
|
2000-05-22 09:59:32 -04:00
|
|
|
|
2002-01-07 00:33:05 -05:00
|
|
|
FLAVORS= no_map
|
2001-06-09 15:54:21 -04:00
|
|
|
FLAVOR?=
|
2000-05-22 09:59:32 -04:00
|
|
|
.if ${FLAVOR:L:Mno_map}
|
2002-01-07 00:33:05 -05:00
|
|
|
DISTFILES= ${DISTNAME}-no-map${EXTRACT_SUFX}
|
2000-05-19 10:04:37 -04:00
|
|
|
|
|
|
|
# Kludge install for no map around
|
|
|
|
pre-install:
|
2000-05-22 09:59:32 -04:00
|
|
|
@touch ${WRKSRC}/map.bmp
|
2000-05-19 10:04:37 -04:00
|
|
|
|
2000-05-22 09:59:32 -04:00
|
|
|
post-install::
|
|
|
|
@rm ${PREFIX}/lib/xglobe/map.bmp
|
2000-05-19 10:04:37 -04:00
|
|
|
.endif
|
|
|
|
|
2000-05-19 09:49:35 -04:00
|
|
|
|
2002-01-07 00:33:05 -05:00
|
|
|
MAKE_FLAGS+= QT_INCLUDE_DIR=${MODQT_INCDIR}
|
|
|
|
MAKE_FLAGS+= QT_LIB_DIR=${MODQT_LIBDIR}
|
2000-05-22 09:59:32 -04:00
|
|
|
|
2002-09-30 11:01:37 -04:00
|
|
|
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'
|
2002-09-30 11:01:37 -04:00
|
|
|
|
2000-07-08 14:31:53 -04:00
|
|
|
# for linking against libpng
|
2002-01-07 00:33:05 -05:00
|
|
|
MAKE_FLAGS+= 'LIB_DIRS=-L$$(QT_LIB_DIR) -L$$(X11_LIB_DIR) -L$(LOCALBASE)/lib'
|
|
|
|
MAKE_FLAGS+= COPTS='${COPTS}'
|
2000-07-08 14:31:53 -04:00
|
|
|
|
2002-10-29 14:48:57 -05:00
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
2000-05-22 09:59:32 -04:00
|
|
|
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
|
2000-05-27 12:09:56 -04:00
|
|
|
${INSTALL_DATA} ${FILESDIR}/OpenBSD-markers ${PREFIX}/lib/xglobe
|
2000-05-22 09:59:32 -04:00
|
|
|
|
2002-01-07 00:33:05 -05:00
|
|
|
SUPDISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${DISTNAME}-no-map${EXTRACT_SUFX}
|
2000-05-19 09:49:35 -04:00
|
|
|
|
2002-01-07 00:33:05 -05:00
|
|
|
FAKE_FLAGS= XGLOBE_DIR=${WRKINST}${PREFIX}
|
2000-05-19 09:49:35 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|