openbsd-ports/x11/ogle_gui/Makefile
2010-07-30 12:03:08 +00:00

55 lines
1.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.27 2010/07/30 12:03:09 ajacoutot Exp $
CATEGORIES= x11
COMMENT= GUI for ogle
DISTNAME= ogle_gui-0.9.2
REVISION= 7
HOMEPAGE= http://www.dtek.chalmers.se/groups/dvd/
# Authors can be reached at dvd@dtek.chalmers.se
MASTER_SITES= ${HOMEPAGE}dist/
CONFIGURE_STYLE= gnu
# GPL
PERMIT_DISTFILES_CDROM=Yes
PERMIT_DISTFILES_FTP=Yes
PERMIT_PACKAGE_CDROM=Yes
PERMIT_PACKAGE_FTP=Yes
WANTLIB += X11 Xau Xcomposite Xcursor Xdamage Xdmcp Xext Xfixes
WANTLIB += Xi Xinerama Xrandr c expat gio-2.0 pcre pixman-1 pthread
WANTLIB += z pthread-stubs xcb dvdcontrol xml2 msgevents
LIB_DEPENDS= ::x11/ogle \
::textproc/libxml \
USE_X11= Yes
USE_LIBTOOL= Yes
FLAVORS=gtk1
FLAVOR?=
.if ${FLAVOR:L} == "gtk1"
LIB_DEPENDS+= ::devel/libglade \
::x11/gtk+
WANTLIB+= Xi gdk glib gmodule xml glade gtk
.else
LIB_DEPENDS+= ::devel/libglade2 \
::x11/gtk+2
CONFIGURE_ARGS+=--enable-gtk2
WANTLIB+= Xrender atk-1.0 fontconfig freetype glib-2.0 \
gmodule-2.0 gobject-2.0 m pango-1.0 glade-2.0 \
pangocairo-1.0 pangoft2-1.0 cairo glitz png gdk-x11-2.0 \
gdk_pixbuf-2.0 gtk-x11-2.0
.endif
MODULES= devel/gettext
CONFIGURE_ENV+= CFLAGS="-I${LOCALBASE}/include -L${LOCALBASE}/lib" \
CPPFLAGS="-I${LOCALBASE}/include -L${LOCALBASE}/lib" \
LDFLAGS="-pthread"
.include <bsd.port.mk>