openbsd-ports/emulators/fuse/Makefile
2010-10-24 20:58:58 +00:00

54 lines
1.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.23 2010/10/24 21:17:48 ajacoutot Exp $
COMMENT= Free Unix Spectrum Emulator
DISTNAME= fuse-0.10.0.2
REVISION= 4
CATEGORIES= emulators
HOMEPAGE= http://fuse-emulator.sourceforge.net/
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB += X11 Xext Xau Xdmcp audiofile gcrypt gpg-error pcre
WANTLIB += bz2 c m z pthread-stubs xcb glib-2.0 samplerate spectrum
WANTLIB += png xml2 ao
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=fuse-emulator/}
USE_GROFF= Yes
MODULES= devel/gettext
LIB_DEPENDS= ::devel/glib2 \
::audio/libsamplerate \
::devel/libspectrum \
::graphics/png \
::textproc/libxml \
::audio/libao
CONFIGURE_STYLE= gnu
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include/libpng" \
LDFLAGS="-L${LOCALBASE}/lib" \
LIBS="-lbz2"
CONFIGURE_ARGS= --with-libao
FLAVORS=gtk
FLAVOR?=
.if ${FLAVOR:L:Mgtk}
LIB_DEPENDS+= gdk-x11-2.0,gtk-x11-2.0::x11/gtk+2 \
gio-2.0,gmodule-2.0,gobject-2.0::devel/glib2
CONFIGURE_ARGS+= --with-gtk2
WANTLIB+= Xcomposite Xcursor Xdamage Xfixes Xi Xinerama Xrandr \
Xrender atk-1.0 cairo expat fontconfig freetype \
pango-1.0 pangocairo-1.0 pangoft2-1.0 pixman-1 \
gdk_pixbuf-2.0
.else
CONFIGURE_ARGS+= --without-gtk
WANTLIB+= ICE SM
.endif
.include <bsd.port.mk>