69 lines
1.8 KiB
Makefile
69 lines
1.8 KiB
Makefile
# $OpenBSD: Makefile,v 1.10 2000/10/10 00:40:57 espie Exp $
|
|
|
|
CATEGORIES=x11
|
|
HOMEPAGE=http://wwwrzstud.rz.uni-karlsruhe.de/%7Euddn/xglobe/
|
|
#MASTER_SITES=${HOMEPAGE}
|
|
# Temporary release
|
|
MASTER_SITES=ftp://quatramaran.ens.fr/pub/espie/
|
|
DISTNAME=xglobe-0.5p1
|
|
NEED_VERSION=1.295
|
|
|
|
MAINTAINER= Marc Espie <espie@openbsd.org>
|
|
|
|
# GPL, included map is free
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
USE_X11= Yes
|
|
|
|
MAKE_FLAGS=XGLOBE_DIR=${PREFIX}
|
|
|
|
FLAVORS=no_map gfx qt2
|
|
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
|
|
|
|
|
|
.if ${FLAVOR:L:Mqt2}
|
|
LIB_DEPENDS=qt.2.:x11/qt2
|
|
MAKE_FLAGS+=QT_INCLUDE_DIR=${LOCALBASE}/include/X11/qt2
|
|
MAKE_FLAGS+=QT_LIB_DIR=${LOCALBASE}/lib/qt2
|
|
MAKE_FLAGS+=MOC=moc2
|
|
.else
|
|
MAKE_FLAGS+=QT_LIB_DIR=${LOCALBASE}/lib
|
|
LIB_DEPENDS=qt.1.45::x11/qt
|
|
MAKE_FLAGS+=QT_INCLUDE_DIR=${LOCALBASE}/include/X11/qt
|
|
. 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
|
|
.endif
|
|
|
|
# for linking against libpng
|
|
MAKE_FLAGS+='LIB_DIRS=-L$$(QT_LIB_DIR) -L$$(X11_LIB_DIR) -L$(LOCALBASE)/lib'
|
|
|
|
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
|
|
${INSTALL_DATA} ${FILESDIR}/OpenBSD-markers ${PREFIX}/lib/xglobe
|
|
|
|
SUPDISTFILES=${DISTNAME}${EXTRACT_SUFX} ${DISTNAME}-no-map${EXTRACT_SUFX}
|
|
|
|
FAKE_FLAGS=XGLOBE_DIR=${WRKINST}${PREFIX}
|
|
|
|
.include <bsd.port.mk>
|