2000-05-22 09:59:32 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.3 2000/05/22 13:59:32 espie Exp $
|
2000-05-19 09:49:35 -04:00
|
|
|
|
|
|
|
CATEGORIES=x11
|
|
|
|
HOMEPAGE=http://wwwrzstud.rz.uni-karlsruhe.de/%7Euddn/xglobe/
|
|
|
|
MASTER_SITES=${HOMEPAGE}
|
|
|
|
DISTNAME=xglobe-0.5
|
2000-05-22 09:59:32 -04:00
|
|
|
NEED_VERSION=1.283
|
2000-05-19 09:49:35 -04:00
|
|
|
|
|
|
|
MAINTAINER=espie@cvs.openbsd.org
|
|
|
|
|
|
|
|
FAKE= Yes
|
|
|
|
|
|
|
|
# GPL, included map is free
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
|
|
|
USE_X11= Yes
|
|
|
|
|
2000-05-22 09:59:32 -04:00
|
|
|
MAKE_FLAGS=XGLOBE_DIR=${PREFIX}
|
|
|
|
MAKE_FLAGS+=QT_INCLUDE_DIR=${LOCALBASE}/include/X11/qt
|
|
|
|
MAKE_FLAGS+=QT_LIB_DIR=${LOCALBASE}/lib
|
|
|
|
|
|
|
|
|
|
|
|
FLAVORS=no_map gfx
|
2000-05-19 10:04:37 -04:00
|
|
|
FLAVOR?=
|
2000-05-22 09:59:32 -04:00
|
|
|
.if ${FLAVOR:L:Mno_map}
|
2000-05-19 10:04:37 -04:00
|
|
|
DISTFILES=${DISTNAME}-no-map${EXTRACT_SUFX}
|
|
|
|
|
|
|
|
# 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
|
|
|
LIB_DEPENDS=qt.1.45::x11/qt
|
|
|
|
|
2000-05-22 09:59:32 -04:00
|
|
|
.if ${FLAVOR:L:Mgfx}
|
|
|
|
MAKE_FLAGS+=WITH_QIMGIO=-DWITH_QIMAGEIO
|
|
|
|
MAKE_FLAGS+=LIBS='-lX11 -lqt -lm -lqimgio -lpng -lz -ljpeg'
|
|
|
|
LIB_DEPENDS+=jpeg.::graphics/jpeg
|
|
|
|
LIB_DEPENDS+=png.::graphics/png
|
|
|
|
.endif
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
SUPDISTFILES=${DISTNAME}${EXTRACT_SUFX} ${DISTNAME}-no-map${EXTRACT_SUFX}
|
2000-05-19 09:49:35 -04:00
|
|
|
|
|
|
|
FAKE_FLAGS=XGLOBE_DIR=${WRKINST}${PREFIX}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|